SimplePortal
Development => Bugs => Fixed or Bogus Bugs => Topic started by: CapadY on November 20, 2011, 05:43:05 AM
-
I keep on having problems with PHP-blocks, using them it will always give a syntax error.
I copied code from 2.3.3 to 2.3.4 and it gave a syntax error.
even very simple code as next will give a syntax error:
<?php
include_once("http://www.mysite.nl/chat/info.php");
?>
-
in the php block u not need the tag <?php ----- ?>
try this
include_once("http://www.mysite.nl/chat/info.php");
-
I keep on having problems with PHP-blocks, using them it will always give a syntax error.
I copied code from 2.3.3 to 2.3.4 and it gave a syntax error.
Can you please apply this change and try adding the same block again?
Subs-PortalAdmin.php
if ($result === false)
var_dump($result);
die();
if ($result === false)
Then copy the page source (HTML contents) of the page here. After that, you can take the change back.
in the php block u not need the tag <?php ----- ?>
That should not cause problems. SimplePortal will take care of opening tags.
-
I had a problem with this as well, can't remember the error but it might have been syntax. Anyway in my case it was because the test install I was running was protected with an .htpasswd setup, so SP could not get the test file it created to test the code. Once I took down the password protection it ran fine.
-
Well, it's the limitation of the implementation we have. Not sure if we can do anything about it.