On March 26, 2019 we launched new MODX Forums. Please join us at the new MODX Community Forums.
Subscribe: RSS
  • After an upgrade the webpage and the manager were not vieuwable anymore, error was:
    Parse error: syntax error, unexpected '&', expecting T_VARIABLE or '$' in /usr/home/noekde/www/htdocs/manager/includes/protect.inc.php on line 36

    I don t know what the problem is, I resolved it by editting line 36, I got rid of the ampersand, but is that safe?

     foreach ($target as $key => & $value) {
     foreach ($target as $key =>  $value) {
    [ed. note: franklos last edited this post 7 years, 10 months ago.]
    • Quote from: franklos at Dec 01, 2012, 09:06 AM
      After un upgrade the webpage and the manager were net vieuwable anymore, error was:

      PHP version installed on your server?
      • Ah version 4.4.7, good thing I did the upgrade to prepare for a move to another server which runs in 5.0.83.
        Is the adjustement safe?
        • Yes.
            Studying MODX in the desert - http://sottwell.com
            Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
            Join the Slack Community - http://modx.org