mract
Forum Replies Created
-
Forum: Plugins
In reply to: [Premium Addons for Elementor] Premium TestimonialSounds great, thanks for the awesome plugin and fast support ??
Once updated feel free to mark this as resolved and we will update the plugin once the new update is available.Still trying to find a solution to this problem.. Jacob’s suggestion to look for unquoted strings didn’t help since this error references a specific WordPress function..
PHP Warning: Use of undefined constant STYLESHEETPATH – assumed ‘STYLESHEETPATH’ (this will throw an Error in a future version of PHP) in /public_html/wp-includes/template.php on line 634
Full Function
function locate_template($template_names, $load = false, $require_once = true ) { $located = ''; foreach ( (array) $template_names as $template_name ) { if ( !$template_name ) continue; if ( file_exists(STYLESHEETPATH . '/' . $template_name)) { $located = STYLESHEETPATH . '/' . $template_name; break; } elseif ( file_exists(TEMPLATEPATH . '/' . $template_name) ) { $located = TEMPLATEPATH . '/' . $template_name; break; } elseif ( file_exists( ABSPATH . WPINC . '/theme-compat/' . $template_name ) ) { $located = ABSPATH . WPINC . '/theme-compat/' . $template_name; break; } } if ( $load && '' != $located ) load_template( $located, $require_once ); return $located; }
Line 634:
if ( file_exists(STYLESHEETPATH . '/' . $template_name)) { $located = STYLESHEETPATH . '/' . $template_name; break; }
- This reply was modified 6 years, 7 months ago by mract. Reason: Updated info
I’m using quoted strings though in all my functions I’ve created and it’s referencing the file “template.php” not my functions.php?
I have the most recent version of WordPress and it’s referencing the error on line 634 and 637 of this file: https://developer.www.ads-software.com/reference/functions/locate_template/
I’m not certain what I’m supposed to change when it’s using the latest version and the error log is reporting this error every second?
[13-Jul-2018 18:20:44 UTC] PHP Warning: Use of undefined constant STYLESHEETPATH - assumed 'STYLESHEETPATH' (this will throw an Error in a future version of PHP) in /public_html/wp-includes/template.php on line 634 [13-Jul-2018 18:20:44 UTC] PHP Warning: Use of undefined constant TEMPLATEPATH - assumed 'TEMPLATEPATH' (this will throw an Error in a future version of PHP) in /public_html/wp-includes/template.php on line 637
Hey Andy,
Fantastic find, I added a script to my functions.php to remove any Query Strings as GTMetrix was flagging them, after removing that script everything restored.
Thanks tons for the great quick support and the awesome plugin!
Hey BearlyDoug, I believe it does conflict with the past version of “The Event Calendar Pro” as well as I did attempt to revert the plugin.
Regarding “rw Quick Page and Post Redirects” I’m uncertain if the bug exists in the past version, we didn’t try reverting that.
To re-create the bug we experienced:
– Create a Calendar event
– Attempt to set the date & time to a future date
– Attempt to Save Draft / Publish, when attempting this you’ll notice the event is saved/published but the Calendar date will show Today and the time will show blank.You’ll likely also find instead of returning to the Event you had published/saved it redirects instead to the homepage.
Hey BearlyDoug, this is with “The Event Calendar Pro” (version 4.4.26)
Temporary Fix:
When in the page “/admin.php?page=redirect-options” I was able to check “tribe_events” and Hide meta box for following Post Type.It seems to not loop and break the date when I’ve done this, hopefully this helps track down the bug.
Forum: Plugins
In reply to: [The Events Calendar] Unable to create events after latest updateAfter researching further I noticed the plugin “rw Quick Page and Post Redirects” is conflicting with your plugin. I’m not sure if its their plugin or yours causing the bug.
Plugin may be conflicting: https://www.ads-software.com/plugins/rw-quick-page-and-post-redirects/
Forum: Plugins
In reply to: [The Events Calendar] Unable to create events after latest updateHey Ed,
Could you please advise us in regards to the Free “Events Calendar” plugin as the issue exists if we have the Pro enabled or not.
Pro support is not available to us as we are using the Non Profit License so Free support is the only support you provide. We would appreciate your assistance in helping us sort out this problem.