Sometimes figuring out the source of an error is as easy as doing a Google search on the message being shown instead of what should be shown. In other situations that isn’t the case. We recently had someone contact us for Joomla support that had a website where the website’s menu had disappeared and for most pages of the website they were getting a message that “You are not authorised to view this resource.” instead of the page’s content.
If you were to Google that message you get a lot of results with a lot of different possible resolutions. One of the first results is for a slightly different message (with an additional sentence after that one) and there were eighteen possible causes listed for the issue in that result.
In this situation, looking at what was shown in the PHP error log (and was shown when the display of errors was turned on) made it look like the problem could have been caused by the PHP version being used. The version of PHP in use was version 7, which considering that the Joomla and the installed extensions where several years out of date, could cause errors to occur. It would appear that web host had automatically changed to that version and lowering the version back down to PHP 5.6 got the website working again.
PHP 5.6 is supported with security updates until the end of next year, so moving to a newer version isn’t necessary yet.
While extensions may still have issues with the newer version of PHP, Joomla introduced official support for PHP 7 with Joomla 3.5, which was released in March of last year. Considering that numerous security fixes have been released since that version, you should already have upgraded Joomla to a newer version than that.
Dude you are a lifesaver. i am a joomla novice and i thought i would be in big trouble since i knew nothing about the error. there are thousands of forums where people give different replies, but im glad i found your site quickly.
this worked perfect.
Thank you very much.
I transferred my website from one domain which ran php 5.6 to a new domain which ran PhP 7.0 and the site did not display menus. The Admin page could not even receive the same configurations in the joomla configuration.php file. All links displayed the error message shown above. I searched everywhere but didn’t find a solution till i got to this blog. I downgraded the PhP version to 5.6 and everything now works fine.
Bang on the target. I had the same problem and reverting the php version back to 5.6 made all the difference.
Thanks a lot!
Thanks Much!!! This worked for me..MC God bless
how to revert back to php verion 5.6.
Thank you very very much. you are the best. I was in big trouble and with your guide i can solve my problem.
Thank you very much again.
olá muito obrigado, vi vários fóruns mesmo e custei a me lembrar que era a versão do php