DrunkMunki
Forum Replies Created
-
thanks Jacob, everything is working now!
amazing support for such a popular plugin ??ok i did as you said and now i get the error:
Fatal error: Call to undefined function wppa_user_create_html() in /home/site/public_html/wp-content/plugins/wp-photo-album-plus/wppa-upload-widget.php on line 45
Yeah, Dion did test it with the widgets.
if you make the changes and give me the update files and i confirm it works on my system, and you run a test on yours without issues i believe it will be fine as Dion seems to know what he’s doing.Response from Dion the BridgeDD author:
I was just able to duplicate your problem. If I placed the “top ten” widget in the BridgeDD sidebar, I got a blank screen with the exact error message you received.
After doing some code sniffing, the “wppa” plugin is not loading all its accessory PHP scripts in the admin panel. When you place a widget in the BridgeDD sidebar, BridgeDD PRO immediately executes the widget in order to generate its output and export the output to phpBB. Since the accessory files containing the required functions have not been loaded, you are receiving the error.
There are two solutions to this issue. One is to not place “wppa” widgets in the BridgeDD sidebar. The other is to have the “wppa” author change his plugin to load those accessory functions globally during initialization — or to add include_once() calls to load the accessory scripts in the widgets themselves. For example, making the following change in the “top ten” widget solves the problem in that widget:
function widget($args, $instance) { global $wpdb; global $wppa_opt; global $wppa; include_once(dirname(__FILE__) . '/wppa-links.php'); include_once(dirname(__FILE__) . '/wppa-styles.php'); include_once(dirname(__FILE__) . '/wppa-functions.php'); include_once(dirname(__FILE__) . '/wppa-thumbnails.php'); $wppa['in_widget'] = 'topten';
ok, but whenever i enable the widgets i get the Call to undefined function error.
if i disable the plugin, everything else works.