"Warning: Illegal string offset" in Wordpress

Everything concerning the Wordpress/Joomla/Drupal plugins
Post Reply
User avatar
Jijel
Posts: 10
Joined: Sun Dec 09, 2007 12:17 pm
Contact:

Hi all,

after uploading a ggpkg file to Wordpress ( 4.9.5 with ggpkg plugin 1.4.5) I'm getting lots of "Warning: Illegal string offset" warnings referring to ggpkg-import.php in the media library entries for ggpkgs. As far as I can tell the warnings have something to do with how metadata is imported from the pkges. The files still work but it is pretty annoying because the messages take up a lot of space. This also happens with the ggpkg test files. The only thing that appears to be broken (if due to this error I'm nopt 100% sure) is setting a master pano via the settings.

Is there a way to get rid of the warnings?

Kind regards,

Chris
User avatar
Hopki
Gnome
Posts: 13004
Joined: Thu Jan 10, 2008 3:16 pm
Location: Layer de la Haye, Essex UK
Contact:

Hi Chris,
I have raised a bug report for this.
Regards,
Hopki
Garden Gnome Support
If you send an e-mail to support please send a link to the forum post for reference.
support@ggnome.com
https://ggnome.com/wiki/documentation/
User avatar
Jijel
Posts: 10
Joined: Sun Dec 09, 2007 12:17 pm
Contact:

Thanks. I'll add a screenshot, maybe it helps.

Screenshot
Screenshot
2018-04-30.png (204.22 KiB) Viewed 17151 times
Kind regards,

Christian
User avatar
Hopki
Gnome
Posts: 13004
Joined: Thu Jan 10, 2008 3:16 pm
Location: Layer de la Haye, Essex UK
Contact:

HI Christian,
The plugin has been updated but is still 1.4.5. Please remove the one from your Wordpress site and install the new one.
Let me know how you get on.
Regards,
Hopki
Garden Gnome Support
If you send an e-mail to support please send a link to the forum post for reference.
support@ggnome.com
https://ggnome.com/wiki/documentation/
User avatar
Jijel
Posts: 10
Joined: Sun Dec 09, 2007 12:17 pm
Contact:

Hi Hopki,

thanks for looking into the issue. Unfortunately the Problem persists.

I deleted the old plugin, installed the new one (from https://ggnome.com/ggpkg). Uploaded a pano: "Warning: Illegal string offset 'file' in /homepages/12/d65739805/htdocs/4wolf/wp-content/plugins/ggpkg-import/ggpkg-import.php on line 586".

Kind regards,

Christian
User avatar
Hopki
Gnome
Posts: 13004
Joined: Thu Jan 10, 2008 3:16 pm
Location: Layer de la Haye, Essex UK
Contact:

Hi,
Iv tested this with a standard build of Wordpress and the plugin and GGPKG is working ok.
When did the start?
Did you do an update with other plugins in your Wordpress site?
Not sure how far we got with this but did you send me your ggpkg, if not can you.
Regards,
Hopki
Garden Gnome Support
If you send an e-mail to support please send a link to the forum post for reference.
support@ggnome.com
https://ggnome.com/wiki/documentation/
User avatar
Jijel
Posts: 10
Joined: Sun Dec 09, 2007 12:17 pm
Contact:

I just found the source of the problem: Themes. Apparently some themes do something the ggpkg-plugin doesn't like. "Graphene" for example produces the error for me.

Kind regards,

Christian
User avatar
Hopki
Gnome
Posts: 13004
Joined: Thu Jan 10, 2008 3:16 pm
Location: Layer de la Haye, Essex UK
Contact:

Hi Christian,
Thanks for finding this, I will add this to the know issues list.
Cheers,
Hopki
Garden Gnome Support
If you send an e-mail to support please send a link to the forum post for reference.
support@ggnome.com
https://ggnome.com/wiki/documentation/
KAB_NL
Posts: 10
Joined: Tue Apr 21, 2009 12:18 pm
Location: St. John's, Newfoundland and Labrador, Canada
Contact:

Has there been any progress on this issue?
I have had no problems until I upgraded my Server's PHP from 5.4 to 7.1
Now I am getting multiple media library warnings on import; examples follow:

Warning: Illegal string offset 'file' in /home3/qlinear/public_html/360panos/wp-content/plugins/ggpkg-import/ggpkg-import.php on line 586
Warning: Illegal string offset 'thumb' in /home3/qlinear/public_html/360panos/wp-content/plugins/ggpkg-import/ggpkg-import.php on line 587
Warning: Illegal string offset 'mime-type' in /home3/qlinear/public_html/360panos/wp-content/plugins/ggpkg-import/ggpkg-import.php on line 588
Warning: Illegal string offset 'width' in /home3/qlinear/public_html/360panos/wp-content/plugins/ggpkg-import/ggpkg-import.php on line 591
Warning: Illegal string offset 'height' in /home3/qlinear/public_html/360panos/wp-content/plugins/ggpkg-import/ggpkg-import.php on line 592
Warning: Illegal string offset 'sizes' in /home3/qlinear/public_html/360panos/wp-content/plugins/ggpkg-import/ggpkg-import.php on line 602

I have not tried to revert to the previous PHP version since WordPress is telling me that I need to be running 7.+ for security reasons. I have several sites on the same server that are benefitting from the PHP upgrade with no issues. Only one site is using the Ggpkg Plugin. I was just getting geared up to update this site and now this :( . Any suggestions??

Thanks
Newfoundland Panoramas
Q-Linear Ltd (Imaging and Panoramas)
https://nlpanos.qlinearimaging.com/
http://360panos.qlinearimaging.com/
KAB_NL
Posts: 10
Joined: Tue Apr 21, 2009 12:18 pm
Location: St. John's, Newfoundland and Labrador, Canada
Contact:

So I went back to PHP 5.6 and the problem stopped. When I get some time I'll test the effect of my plugins and theme.
Newfoundland Panoramas
Q-Linear Ltd (Imaging and Panoramas)
https://nlpanos.qlinearimaging.com/
http://360panos.qlinearimaging.com/
User avatar
thomas
Chief Gnome
Posts: 2611
Joined: Fri Sep 01, 2006 3:56 pm
Location: Vienna, Austria
Contact:

Please install the latest version 1.4.6 of the Wordpress plugin that fixes this issue.
MfG, Thomas
User avatar
edgar_ali
Posts: 160
Joined: Wed May 03, 2017 12:00 pm
Location: Autralia
Contact:

Thomas:

Thanks for the update..

just a quick question: To update the plugin I had download the version 1.4.6, then deactivate and delete the previous version, then installed and activate the version 1.4.6.

Is there another way of doing this like all the other plugins in Wordpress, that they update without the need of deactivating and deleting previous versions?...

Or I am doing something that is not right?
User avatar
thomas
Chief Gnome
Posts: 2611
Joined: Fri Sep 01, 2006 3:56 pm
Location: Vienna, Austria
Contact:

you can just replace the files on the server.
MfG, Thomas
Post Reply