01486: $EnableGUIButtons = 1; causes Internal server error
$EnableGUIButtons= 1; causes Internal server error
I am using the latest pmwiki version and already made some changes but when
$EnableGUIButtons is enabled, editing a page always return HTTP ERROR 500.
At first I thought it had something to do with my modifications but I've extracted a new copy of pmwiki and set it to enabled as well and it still throws that error.
No, it is not a known bug, a standard 2.3.16 installation works fine with
$EnableGUIButtons. What does the PHP error log say? If you upgraded from an earlier version, I'd triple-check if pmwiki.php and all files in the scripts/ directory have been fully updated, as well as those in the directory pub/guiedit/. A 500 error may appear if there is a syntax error in some file, for example forgetting the semicolon after
or after a button definition. See Troubleshooting#track-errors on how to track this. The other possibility is a call to an undefined function which might happen if you have both new and old files in the scripts/ directory, or if your PHP has some function disabled. In both cases there may be some indication in the PHP error log. I'd also check the file permissions - some servers show Error 500 if your files have too lax, or too restrictive permissions. --Petko
$EnableGUIButtons = 1;
Thanks for confirming. For PmWiki 2.3.18, I wrote a replacement function for json_encode() that should correctly output the edit buttons, and the other core helper functions (table of contents, CustomSyntax). --Petko