Displaying items by tag: RS Firewall
When you log into your Joomla Administration Panel, under the RSFirewall Control Panel Module, do you see that your RSFirewall and Joomla Version Status indicators show an error? Mine did too!
I was able to fix it but at the moment I do not understand "WHY" what I fixed caused the problem.
When you first run the system check, it tells you that you need to "fix" the php directives within the Server Configuration section. It will tell you to click a button and the system will attempt to fix the directives that show errors by creating a php.ini file in the root of your site. Well, it does this just fine. However to clear the errors, you must then copy the php.ini file to your Administrative folder. Now, I have installed RSFirewall on hundreds of websites and have only gotten this error that you see to the right, twice.
With a little troubleshooting, I was able to narrow the problem down to this line of code in the php.ini file of the administrator folder.
Remove from php.ini file from the administrator folder only: allow_url_fopen=Off
Now, why does this work? I do not know, but if you delete both php.ini files from both the root and admin folders, this error clears right up. So with testing, I added them both back and then started to systematically delete one line at a time. I narrowed it down to that one line of code in that one file in the admin folder. I hope this helps anyone with a similiar issue.
This problem rests with the RS Firewall Active Scanner for the Administrator Section under the Firewall Configuration section.
For an immediate (but temporary) fix would be to uncheck the Active Scanner for the admin section. But, this leaves you vunerable. So, I do not recommend this for a long-term fix. So with a little playing around, here is the long-term solution for the problem.
Here is what I did to fix it.
- I accessed the black/white list feature and added my IP address to the white list.
- I then created an exception with the below following settings.
- Exception Type: component
- Use Reg Expressions: no
- Match: com_content
- Skip PHP protections: yes
- Skip SQL protections: yes
- Skip JS protections: NO
- Skip Upload protections: yes
- Reason: Allow
- Published: Yes
This has fixed my problem. Now a couple of things to keep in mind.
- Unless you have a static IP address, your IP address will eventually change. However, the only time this will matter is in months from now and you access a page and save it and this happens all over again. You might need to check and update your IP address.
- Sometimes your editor within Joomla blocks scripts as well as the user filter settings. You need to make sure that your filter settings as well as your editor settings allows for you to make direct (raw) html code posts within your Joomla Content Pages.
I hope this helps.
So you logged into your Joomla Website, saw your control panel RS Firewall Update message and saw the following or something close to it:
You then went to update your Joomla Version from 2.5.9 to 2.5.11 and you got the error message:
The PHP allow_url_fopen setting is disabled. This setting must be enabled for the updater to work.
If you had setup your RS Firewall correctly you should have a php.ini in your root folder AND in your administrator folder. Either case, just rename your php.ini to php.old and then attempt the Joomla update. This will enable you to update to Joomla 2.5.11 or beyond. Once the update is completed, go back and rename php.old to php.ini and then update your RS Firewall to the latest version.