We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 10076
    • 1,024 Posts
    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) {
    to
     foreach ($target as $key =>  $value) {
    [ed. note: franklos last edited this post 12 years ago.]
      • 36416
      • 589 Posts
      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?
        • 10076
        • 1,024 Posts
        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?
          • 28042 ☆ A M B ☆
          • 24,524 Posts
          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