PhileCMS / Sundown-Parser-Plugin

Replace the default parser in Phile with the PHP-Sundown (C parser for Markdown)
MIT License
0 stars 0 forks source link

Getting Warning with Tables #1

Open bzerangue opened 10 years ago

bzerangue commented 10 years ago

When I turn on the option for tables...

'tables' => true,

I got the following error...

Warning: Sundown\Render\HTML::tableCell() expects parameter 2 to be long, string given in /Users/username/Desktop/PhileSite/lib/Phile/Parser/Sundown.php on line 24

james2doyle commented 10 years ago

Can you put the markdown code?

bzerangue commented 10 years ago

It's the default theme index page (the one that comes with Phile) On Jan 29, 2014 8:11 AM, "James Doyle" notifications@github.com wrote:

Can you put the markdown code?

— Reply to this email directly or view it on GitHubhttps://github.com/PhileCMS/Sundown-Parser-Plugin/issues/1#issuecomment-33587157 .

bzerangue commented 10 years ago

Here's the RAW Markdown Code...

index.md

trlsmax commented 9 years ago

Any update ? I got the same error with the latest dev version of PhileCMS

james2doyle commented 9 years ago

I'll look into this

james2doyle commented 9 years ago

Hey there. I'm not getting that error.

Have you installed Sundown properly? Does it show up when you run <?php phpinfo(); ?>?

If you have installed PHP from the command line, you can also run php -m and see if sundown is in the list.

james2doyle commented 9 years ago

I've added a new check to see if sundown is installed. Test it again and see if you get the error.

trlsmax commented 9 years ago

Hello, sundown is enabled and show up in <?php phpinfo(); ?> checkout the new code but the got the same error.

[2] Sundown\Render\HTML::tableCell() expects parameter 2 to be long, string given in /home/max/www/tinyastro/plugins/phile/sundown/Classes/Parser.php on line 38 [2] (Exception-Wiki)
Exception thrown in file /home/max/www/tinyastro/plugins/phile/errorHandler/Classes/Development.php on line 32.
james2doyle commented 9 years ago

Hmmm. What version of PHP are you using?

trlsmax commented 9 years ago

PHP Version 5.5.9-1ubuntu4.5, FPM/FastCGI, nginx/1.4.6, php-sundown/0.3.11, sundown/1.16.0

james2doyle commented 9 years ago

I think you two will have to do some more in depth testing. I am not able to re-create the errors you are having.

Is it possible that Sundown was not compiled against the correct version of PHP? The error that is coming up is a Sundown error, so unless a clear reason culprit in Phile pops up, this may be a lost cause.

Have you tried using Sundown outside of Phile?

trlsmax commented 9 years ago

I will try to test sundown outside Phile. Thanks