Quantcast
Channel: Topic Tag: error | WordPress.org
Viewing all articles
Browse latest Browse all 31588

gallantfish on "[Plugin: Lightbox Plus ColorBox] Undefined variable missing argument"

$
0
0

I don't remember the error, whether it was undefined variable or missing argument, or undefined value in object… but In my case, version 2.6, I found out the problem is a typo on the conditionals.

The use_forpost and use_forpage values are checked for existence EVEN if their parent use_perpage parent option is not selected, trowing an error. It seems like the author recycled the use_forpage piece of code to make the use_perpage piece of code, or confused the variable names, or I'm just breaking it for when I eventually need them selected, but it works for me now.

In line 182, Instead of

if ((isset($lightboxPlusOptions['use_forpage']) && $lightboxPlusOptions['use_forpage'] == '1') || (isset($lightboxPlusOptions['use_forpost']) && $lightboxPlusOptions['use_forpost'] == '1')) {

change it to

if ((isset($lightboxPlusOptions['use_perpage']) && $lightboxPlusOptions['use_forpage'] == '1') || (isset($lightboxPlusOptions['use_perpage']) && $lightboxPlusOptions['use_forpost'] == '1')) {

Or just CHECK the parent post/page option so the children options show, UN-CHECK the child page and post options and then un-check the parent again, and save.

http://wordpress.org/plugins/lightbox-plus/


Viewing all articles
Browse latest Browse all 31588

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>