@spaterson1 thanks for your message, and apologies for the inconvenience. We do all our development and testing with WP_DEBUG on.
I’ll try to re-produce the notice on my dev environment and hopefully would be able to push a quick fix. I’ll keep you posted.
We can’t manage to re-produce it locally, can you please confirm if you activated the account? or is this happens right after plugin activation, without signing with RatingWidget account? If you can write your actions step-by-step it would help me to try and reproduce it. Thanks
Hi @spaterson1,
Could you please tell us the OS on which PHP is running?
Also, please tell us the version of PHP your server is running.
Thanks
Hi Guys,
Thanks for the replies. Before installing on production I was testing on a local WAMP install which I use for making WordPress Plugins. PHP 5.5.12 Apache 2.4.9 on Win 7. This setup caused the above error.
I posted this here to help so you make the plugin better, but I don’t have time to reinstall the plugin the debug, sorry.
Thanks,
Scott
Edit. And yes this happened without signing into your service.
Great! Seems like it’s a Windows issue due to folders slash differences “/” vs “\”. Our next release should have it fixed.
I’m sure you are busy – but I would really appreciate if you could give it a try when we release it.
Thanks for the reply. Sure ill be happy to test on next release.
As a side note, I don’t think its slash issue, but please test – http://www.wampserver.com/en/
Hi @spaterson1, we just released the fixed version. Would appreciate if you can give it a try. Thanks!
A lot less errors, but still a few caught with the Debug Bar (https://ww.wp.xz.cn/plugins/debug-bar/)
NOTICE: C:\wamp\www\wp_development\wp-content\plugins\rating-widget\rating-widget.php:2077 – Use of undefined constant WP_RW__SITE_PLAN – assumed ‘WP_RW__SITE_PLAN’
require_once(‘C:\wamp\www\wp_development\wp-admin\admin-header.php’), do_action(‘admin_head’), call_user_func_array, RatingWidgetPlugin->rw_admin_menu_icon_css, rw_require_view, require(‘C:\wamp\www\wp_development\wp-content\plugins\rating-widget\view\pages\admin\menu-item.php’), RatingWidgetPlugin->_rw_setup_extension, RatingWidgetPlugin->_rw_potential
NOTICE: C:\wamp\www\wp_development\wp-content\plugins\rating-widget\rating-widget.php:2089 – Trying to get property of non-object
require_once(‘C:\wamp\www\wp_development\wp-admin\admin-header.php’), do_action(‘admin_head’), call_user_func_array, RatingWidgetPlugin->rw_admin_menu_icon_css, rw_require_view, require(‘C:\wamp\www\wp_development\wp-content\plugins\rating-widget\view\pages\admin\menu-item.php’), RatingWidgetPlugin->_rw_setup_extension, RatingWidgetPlugin->_rw_check_if_done
Hope that helps!
Thanks,
Scott
Wow! That’s so wired. We tested it on Windows and no errors/warnings/notices on our end. Probably you have some very specific stack that cause this to happen. Sorry for that.