Hi,
I’m trying to configure it to display the menu but so far all it does is break the site, see:
If you think you can fix it great, below is the admin.
David
We use cookies to allow login, checkout, and analyze site traffic. By continuing to use this website, you consent to the use of cookies in accordance with our cookie policy.
OnPoint Plugins
Hi David,
Looking at your site, it turns out one of your WPML plugins is swapping the standard
WP_Post
object with their ownWPML_LS_Menu_Item
object during retrieval of your menu items. Because our plugin expects menu items to be of the standard type, the following error was being thrown:I was able to remove the strict type checking in our plugin for this particular use case and the page and widget are now loading.
I have also added this change directly to our plugin, which will go out with the next release.
Have a great night!
David Henry
Thanks for that, WPML is a pretty major plugin. The issue is still there when switching language, see:
David
David Henry
I’ve disabled the plugin so we can work on the website but feel free to enable it to test.
OnPoint Plugins
Hi David,
I’ve reactivated the plugin and looked at both provided pages and I don’t see the widget on the page, nor do I see any errors. It’s likely the page was saved when our plugin was deactivate, which would remove the widget.
Looking at your error log, I see a ton of errors from other plugins but nothing related to our plugin. The most prominent error I see is being thrown inside “yootheme”:
I’m afraid the theme editor won’t let me see the file in question, so I can’t offer more information on the origin of the error.
/usr/www/users/colmcc/live/wp-content/themes/yootheme/vendor/yootheme/builder-wordpress/elements/module/element.php
To allow you to continue to work, maybe you can create a test page which has the widget and the error, so we can investigate further. Also, if you can send us the contents of the above file, we can likely point you in right direction of fixed that error.
Have a great weekend!
David Henry
Thanks for checking, I’ve re-enabled everything and see the error again.
OnPoint Plugins
Hi David,
Looking at your log, it appears the error is being caused by a call within one of your theme files.
Because there are no direct calls to any methods within our plugin, I can’t determine the cause from the logs. Most likely there is a call within the theme file which uses a filter the widget taps into. Since this could be 1 of about 60 filters, I would need more information to determine a fix.
If you are able to send me the contents of the file in question, I can certainly take a look and will likely be able to either patch the theme file or adjust our plugin in some way to allow the your theme and our plugin to work together.
/usr/www/users/colmcc/live/wp-content/themes/yootheme/vendor/yootheme/builder-wordpress/elements/module/element.php
Have a great rest of your weekend!
OnPoint Plugins
I forget to mention, if you prefer to send me FTP access, I can also see the file in question that way.