• Hi there

    Newbie here. Have an existing website created by a colleague using WordPress, hosted with AwardSpace. I was trying to update various plugins, themes, WordPress version and PHP, but not really understanding what I was doing. Now I am unable to edit the website using WordPress, and get the following error 26 times:

    Warning: Trying to access array offset on value of type int in /srv/disk3/2832384/www/website.com/wp-content/plugins/secure-wordpress/res/inc/SwpaPlugin.php on line 242

    followed by

    Warning: Cannot modify header information – headers already sent by (output started at /srv/disk3/2832384/www/website.com/wp-content/plugins/secure-wordpress/res/inc/SwpaPlugin.php:242) in /srv/disk3/2832384/www/website.com/wp-includes/pluggable.php on line 1435

    and then

    Warning: Cannot modify header information – headers already sent by (output started at /srv/disk3/2832384/www/website.com/wp-content/plugins/secure-wordpress/res/inc/SwpaPlugin.php:242) in /srv/disk3/2832384/www/website.com/wp-includes/pluggable.php on line 1438

    Any help would be much appreciated.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Moderator threadi

    (@threadi)

    The actual error is merely a warning from the plugin “secure-wordpress”, which has not been provided for several months and is very old: https://de.wordpress.org/plugins/secure-wordpress/ – my recommendation would be to delete this plugin.

    If you no longer have access to the backend, you can remove the plugin directory via FTP. If you need help with FTP access, contact your hoster’s support.

    Thread Starter ilkleyal

    (@ilkleyal)

    Hi threadi

    Thanks for the reply, and sorry for the delay in responding. I think part of the reason for my problem was trying to use a more up-to-date version of PHP. I have found that if I revert to Version 7.4.33 then the error no longer appears. However our main webpage has buttons for 3 subpages (sure this is not the correct terminology). Prior to my attempt to update the PHP version these were working fine afaik. But now all three when clicked display “The Page You are Trying to Reach Doesn’t Exist. The author has deleted it or you’ve misspelled the URL.” But in WordPress I can see that they still exist. Would I be correct in saying that they need to be uploaded to the web host gain? And if so, how do I do that?

    Thanks

    Thread Starter ilkleyal

    (@ilkleyal)

    Hi Threadi

    Thanks for the time you have taken to help me with my problem.

    I’ve managed to get things going again. First thing is I have disabled most of the plugins in use – there were 12 and I left only PHP Compatibility Checker active. Presumably Acunetix Secure WordPress was the one you suggested that I remove. WordPress also was suggesting I activate JustFeedback, which I have done.

    To recover the lost pages I went to Settings, Permalinks, Save Changes, without actually changing anything. Google pointed me to this when I received an error “updating failed. the response is not a valid json”.

    I have tried editing our website and my changes are now working so everything looks to be good.

    I have now run Site Health, and get 5 recommended improvements: Remove inactive plugins; remove inactive themes; one or more recommended modules are missing; website does not use https; page cache is not detected but server response time is OK.

    But having now resolved my problems I think I’ll leave investigating these improvements until next week.

    Once again many thanks.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Warning: Trying to access array offset on value of type int’ is closed to new replies.