<![CDATA[ Upgrade to 1.0.7 error on line 36 protect.inc.php - My Forums]]> https://forums.modx.com/thread/?thread=80822 <![CDATA[Re: Upgrade to 1.0.7 error on line 36 protect.inc.php]]> https://forums.modx.com/thread/80822/upgrade-to-1-0-7-error-on-line-36-protect-inc-php#dis-post-445301 sottwell Dec 01, 2012, 05:21 AM https://forums.modx.com/thread/80822/upgrade-to-1-0-7-error-on-line-36-protect-inc-php#dis-post-445301 <![CDATA[Re: Upgrade to 1.0.7 error on line 36 protect.inc.php]]> https://forums.modx.com/thread/80822/upgrade-to-1-0-7-error-on-line-36-protect-inc-php#dis-post-445300 Is the adjustement safe?]]> franklos Dec 01, 2012, 04:29 AM https://forums.modx.com/thread/80822/upgrade-to-1-0-7-error-on-line-36-protect-inc-php#dis-post-445300 <![CDATA[Re: Upgrade to 1.0.7 error on line 36 protect.inc.php]]> https://forums.modx.com/thread/80822/upgrade-to-1-0-7-error-on-line-36-protect-inc-php#dis-post-445298 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?]]>
danilocuculic Dec 01, 2012, 04:03 AM https://forums.modx.com/thread/80822/upgrade-to-1-0-7-error-on-line-36-protect-inc-php#dis-post-445298
<![CDATA[Upgrade to 1.0.7 error on line 36 protect.inc.php]]> https://forums.modx.com/thread/80822/upgrade-to-1-0-7-error-on-line-36-protect-inc-php#dis-post-445294
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) {
]]>
franklos Dec 01, 2012, 03:06 AM https://forums.modx.com/thread/80822/upgrade-to-1-0-7-error-on-line-36-protect-inc-php#dis-post-445294