If CMSimple produces error messages when validating your page, what can you do?

The text of the message: 'cannot generate system identifier for general entity “PHPSESSID”'

means, that a string like &PHPSESSID= somestringhere3432423 is added to all links in your page.

This is caused by PHP Sessionhandling which is used by some plugins, for example AdvancedNews Version 1.0.0

The & in that string is validated as an error, & are expected as & to be correct

what can be done?

  1. these settings can be changed in the php.ini: The separator used in PHP generated URLs to separate arguments: Default is ”&”. set it to arg_separator.output = ”&”
  1. if you cannot modify the php.ini (for sure not possible at most hosting services) you can try to set a flag in the .htaccess file: add php_value arg_separator.output & to your .htaccess file
  1. if you cannot modify or add .htaccess-files to your webspace do this:
  • identify the script which starts sessions, find session_start();
  • add this line before session_start(); : ini_set('arg_separator.output', '&');
tips_and_tricks/getting_rid_of_phpsessionid-validating_errors.txt · Last modified: 2009/12/03 18:56 (external edit)
Webdesign: NMuD chimeric.de = chi`s home Creative Commons License Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0