vonkanehoffen
Member
Posted 1 year ago #
Hi,
Just thought I'd post a fix for this:
Change line 348 of fancybox.php to:
$mfbfwadmin = add_submenu_page('options-general.php', 'Fancybox for WordPress Options', 'Fancybox for WP', 'edit_plugins', 'fancybox-for-wordpress', 'mfbfw_options_page');
In debug mode, it was throwing an annoying "has_cap is depreciated" error, so I changed the "10" to "edit_plugins".
Hope that helps someone!
Thanks moskis for an excellent plugin :)
http://wordpress.org/extend/plugins/fancybox-for-wordpress/
José Pardilla
Member
Posted 1 year ago #
Thanks for the fix, I'll implement it in next version.
Nice Hotfix. I like to mention another WordPress 3.1 debugging mode & FB-WP 2.7.5 notice in my FRONTEND (Twenty Ten 1.2):
Undefined variable: loadAtFooter in /wp-content/plugins/fancybox-for-wordpress/fancybox.php on line 199
I'm not a PHP-Coder, so I don't risk to post some maybe false code of mine here.
juandavidhern
Member
Posted 11 months ago #
I did the same and it's showin the same notice 'Undefined variable: loadAtFooter in /'
any suggestion?
@juandavidhern: Once I checked the 'Footer' checkbox in the settings, the undefined variable error disappeared.
I still get the has_cap error though, but I assume this is because a new version was never released?
@vonkanehoffen: Thanks for the fix! :)