Support » Plugin: HTML Page Sitemap » Sitemap doesn’t show up after upgrading to PHP7

  • Resolved ronniem3

    (@ronniem3)


    Hi Angelo,

    I would like to make a bug report. We recently upgraded a site from PHP5.5 to PHP7 and the following errors appear:

    [Wed Feb 14 15:48:15 2018] [error] [client xxx.xxx.xxx.xxx] FastCGI: server “/php -domaincom.fpm” stderr: PHP message: PHP Warning: Illegal string of fset ‘echo’ in /var/home/userxxx/domainxxx/www/wp-content/plugins/html-sitemap/html-sitemap.php on line 60
    [Wed Feb 14 15:48:15 2018] [error] [client 208.70.247.145] FastCGI: server “/php -domaincom.fpm” stderr: PHP message: PHP Warning: Illegal string of fset ‘title_li’ in /var/home/userxxx/domainxxx/www/wp-content/plugins/html-sitemap/html-sitemap.php on line 61
    [Wed Feb 14 15:48:15 2018] [error] [client 208.70.247.145] FastCGI: server “/php -domaincom.fpm” stderr: PHP message: PHP Warning: Cannot assign an empty string to a string offset in /var/home/userxxx/domainxxx/www/wp-content/plugins/html-sitemap/html-sitemap.php on line 61
    [Wed Feb 14 15:48:15 2018] [error] [client 208.70.247.145] FastCGI: server “/php -domaincom.fpm” stderr: PHP message: PHP Fatal error: Uncaught Error: Cannot unset string offsets in /var/home/userxxx/domainxxx/www/wp-content/plugins/html-sitemap/html-sitemap.php:62

    I believe that it’s trying to unset variables that don’t exist. Would you be able to fix this? I’m guessing doing a check to see if these variables exist before using them might be the solution.

    Cheers,
    Ronnie

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Angelo Mandato

    (@amandato)

    Hello Ronnie,

    I made a version (pre release) of the plugin to fix this issue. IF you know how to manually upload plugins, please give this version a try and let me know if it fixes your warning messages.

    Link: https://downloads.wordpress.org/plugin/html-sitemap.zip

    I will be testing myself in my sandbox this weekend before I release it.

    Thanks,
    Angelo

    Got the same error. Installing your plugin solved my problem.
    May be you should consider publish a release!

    Plugin Author Angelo Mandato

    (@amandato)

    Hello @julien_gabriel. Thanks for the feedback! I also received feedback from another user as well to confirm it works. Will push out a release in the coming days.

    Thanks,
    Angelo

    Hi Angelo. Did you publish it in the meanwhile? I am testing a site locally, and I have experienced the same errors. Would be great if you could publish asap.

    Plugin Author Angelo Mandato

    (@amandato)

    Hello @heimo,

    Sorry for the delay, 1.3.2 has been released today. No more PHP 7 notice / error messages.

    Thanks,
    Angelo

    Thanks a lot. I saw it and already updated all my affected installations.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Sitemap doesn’t show up after upgrading to PHP7’ is closed to new replies.