+1 Same issue here as well.
So I did some research on my end and, for now at least, I resolved the issue of the “Warning: strpos() expects parameter 1 to be string” error by doing the following:
changed line 119 in the file package.module.nextgen_basic_album.php
from:
if (strpos($gallery_id, ‘a’) === 0) {
to:
if (strpos((string) $gallery_id, ‘a’) === 0) {
Looking forward to a proper release fixing this.
@pinballw – Thanks for sharing your work-around but in general we are not seeing this as a wide-spread issue.
@jhcrowe – What troubleshooting steps have you taken since you have seen this issue on your site?
Thanks!
– Cais.
I get the same issue. I don’t want to be editing the php file if an update comes.
Its certainly does come up, its when you try to add albums
@worchyld: If you require assistance then, as per the Forum Welcome, please post your own topic.
I cleared the cache to see if that would help and there were not any changes. I was thinking about uninstalling the plug-in but I did not want to lose all of my albums…..any thoughts?
+1 same issue. @pinballw fix worked for me.
@jhcrowe – Uninstalling and re-installing will not affect your NextGEN Gallery images, galleries, albums, etc. … provided you do re-activate it as well (*grin*).
We will be reviewing @pinballw’s work-around but you can also continue checking for conflicts with other active plugins and/or your current theme to see if there is anything there as well.
Thanks!
– Cais.
I just uninstalled the plugin and re-installed. It did not fix the error.
Could you provide the complete path to the file:
package.module.nextgen_basic_album.php
I would like to make the quick change to get things up and going.
Thanks!
The file you are looking for is located in
/wp-content/plugins/nextgen-gallery/products/photocrati_nextgen/modules/nextgen_basic_album/
Hi Cais,
have the same error after update to 2.1.43 like jhcrowe has.
Did the workaround as pinballw described.
It works, the error-message disappears, but also the line with the link(s) back to other albums are gone π
Therefore the workaround is not suitable for me. Is there any way to go back to a former version without that error? Sorry to say, I didn’t know the version before my update, shame on me π
did also a new insert into the page where the albums are display (as that helped in the older case we had), but now no changes π
best regards
Juergen
Plugin Contributor
Imagely
(@imagely)
@juergenp – Although it would still likely be best to start your own topic as this one is not providing the assistance you were looking for to find any previously published version of the plugin just look under the “Developers” menu item.
Here’s the direct link: https://wordpress.org/plugins/nextgen-gallery/developers/
Thanks!
– Cais.
Thanks Cais π
Your link was hint enough for me, now I have the older version running without the “string-error”.
My error/bug is explained above enough, so no need to open a new case π will wait until next or next-next version and monitor this thread, too.
best regards
Juergen