• I’m trying to find a gallery to use. I installed Envira Gallery and after adding some photos I get these warnings on the page…
    dkapphotography.com

    this is the errors:

    Warning: Only the first byte will be assigned to the string offset in /srv/disk5/3598884/www/dkapphotography.com/wp-includes/class.wp-scripts.php on line 492

    Warning: Only the first byte will be assigned to the string offset in /srv/disk5/3598884/www/dkapphotography.com/wp-includes/class.wp-scripts.php on line 492

    Warning: Only the first byte will be assigned to the string offset in /srv/disk5/3598884/www/dkapphotography.com/wp-includes/class.wp-scripts.php on line 492

    Main Gallery

    How do I fix this problem?

    • This topic was modified 3 years, 11 months ago by wine4all.

    The page I need help with: [log in to see the link]

Viewing 12 replies - 1 through 12 (of 12 total)
  • These are not errors, they are warnings.
    Causes could include :
    – outdated plugins,
    – outdated wordpress core,
    – outdated PHP version on the server,
    – plugin or theme conflicts,

    Thread Starter wine4all

    (@wine4all)

    I just set up this account yesterday. Everything is updated.
    I will remove Envira and try another gallery app that works. Also tried Modula and it has problems too.

    Can you recommend any gallery app?

    I use Modula most of the time.

    The warning is most likely coming from your php version.
    Your host likely updated to PHP 8 from 7.x

    Personally, I would just leave it, these are pretty common. The plugin author will update at some point, or let them know.
    https://plugintests.com/plugins/wporg/envira-gallery-lite/latest

    Thread Starter wine4all

    (@wine4all)

    Thank you. I’ll change the PHP to an older one and see if that helps.

    I can also go back to Modula but it would not remove title text from images even after I removed them in settings. Seems like all the photo Galleries are not that good from my experience.

    > Thank you. I’ll change the PHP to an older one and see if that helps.

    Why?
    Recommend not doing this.

    I assume you have have disabled front-end warnings from displaying from php?

    The likelyhood of security implications coming from a warning is far less than downgrading your php version.

    Thread Starter wine4all

    (@wine4all)

    just changed PHP to the default which is 7.3.25 and now the warnings are gone.

    Again, not recommended.

    Thread Starter wine4all

    (@wine4all)

    Turns out that the gallery doesn’t work with PHP 8. So going to the default PHP 7.3.25 solved the problem. The warnings are gone off the page.

    Thanks

    You should really just convert back to php8, then turn off your Warnings and Notices :
    https://aristath.github.io/blog/wp-hide-php-errors

    Thanks, @corrinarusso so much for your comment and the directing to the aristath blog. That worked for me. I kept PHP version 8 and the warning (same as the guy who posted this) which was displaying on my main page is now gone!

    @mcpat1993
    Great!
    Not sure why the OP wasn’t just doing the same – going back and forth on this thread took longer than solving the problem!

    @corrinarusso I wasn’t understanding that part either. They don’t come up with new versions of PHP for the fun of it. For me the choice was clear – I, too, have a site where everything is brand new, and if there’s a tool that relies on a legacy PHP version, I’d prioritize something that is being actively maintained.

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Envira gallery errors’ is closed to new replies.