Fatal error: Call-time pass-by-reference has been removed

Avatar
  • Answered
I just tried to log into the admin panel of my site but when I go to http://example.com/wp-admin I get the following error message:

Fatal error: Call-time pass-by-reference has been removed in /home/userna5/public_html/example.com/wp-content/themes/gymbase_custom/nav-menu-dropdown-walker.php on line 18

can't acces my site or my WP admin i have no clue what to do!
Avatar
JacobIMH
Hello, and sorry for the issues! Your server's default PHP version was recently upgraded to PHP 5.4 to enforce better security across the server. Somethings have been deprecated in this newer version, and it looks like one of your theme's files was trying to use such a feature. I've gone ahead and resolved this for your by setting your account back to PHP 5.3 as the default. In the future if you run into similar problems you can always change the PHP version in cPanel or even run multiple versions of PHP on your account in the event that some of your directories require a specific version of PHP to function properly. Please let us know if you're still having any issues at all. - Jacob