It doesn’t look like a shortcode issue this time. I’m looking into it.
Thanks,
Jason
I’m having a hard time trying to reproduce this issue on my end to understand what it’s causing it in your environment. While I figure this out, please downgrade to the previous version.
Download this file to your desktop:
https://downloads.wordpress.org/plugin/wp-slimstat.4.8.5.1.zip
Unzip it and then upload its content to your server under
/wp-content/plugins/wp-slimstat/
DO NOT UNINSTALL the plugin, or you will permanently lose all your data. Just overwrite the files.
Thank you for your patience,
Jason
Hello Jason, My Firefox Developer version just updated to 70.0b2 and the site displays fine under Slimstats version 4.8.6.1. However, Google Chrome Version 76.0.3809.132 64-bit still throws the error, even using incognito. I fully cleared the cache too. The error is 100% identical, visually at least, to the shortcode problems previous.
Page inspection provides error notice as before: Failed to load resource: the server responded with a status of 500 (Internal Server Error)
HTTP 500 Internal Server Error message indicates that your controller is throwing an unhandled exception. Maybe use the debugger to see exception details and stack trace, then edit your question to include them? I hope you solve the problem!
Thank you for all the info, I’m going to try different browsers to see if it might be related to the Browscap library we use. I already use debuggers to trace errors at all levels, and I can’t get it to “break” in my sandbox. Are you using Slimstat in Client or Server mode? What caching plugin are you using? Are you using Cloudflare in front of your site? Do you have any redirects in place or custom permalink configurations?
Thanks,
Jason
I tried both the Client and Server mode, but the results are the same in Chrome. I don’t use any caching on my website builds, where it is a source of too many problems. I don’t use Cloudflare on any website builds either, because it is often undependable. There are no redirects or anything of that nature. No custom CSS either. The website is about as stock as a build gets.
As soon as I remove [slimstat f=’count-all’ w=’ip’]resolution is_not_empty &&&browser_type does_not_equal 2[/slimstat] from my footer, the website works fine.
If I remove ‘resolution is_not_empty &&&browser_type does_not_equal 2’ from the string, the website failure continues. The only way to restore the website with 4.8.6.1 active is to fully eliminate the shortcode.
These other users are saying that they use Theme My Login:
https://wordpress.org/support/topic/slimstat-theme-my-login/
Do you have this plugin installed as well?
No, don’t use any addons like that.
I was able to narrow down the problem with Theme My Login. Your situation must be different. Interesting that by removing the shortcode, the issue disappears. I’ll keep looking. In the meanwhile, please downgrade to 4.8.5.1.
Thanks,
Jason
Hi,
we just pushed the new release candidate to our Github repository:
https://github.com/slimstat/wp-slimstat/archive/master.zip
Please download this file to your desktop and unzip it. Then, using your FTP client, replace the content in
/wp-content/plugins/wp-slimstat/
with these new files. DO NOT UNINSTALL Slimstat, or you will lose all your data. Also, given the changes to the tracker, please make sure you clear your website cache to allow Slimstat to append the new shorter tracking code to your pages. Also, if you are using Slimstat to track EXTERNAL pages (outside of your WP install), please make sure to update the tracking script there with the new one you can find in Slimstat > Settings > Tracker > External Pages.
Test this new release as thoroughly as possible, and see if the issue you were experiencing still occurs.
One last thing: this is NOT the official release just yet, and even though we consider it stable enough, we recommend that you update to the OFFICIAL release, once it’s available on the WordPress repository.
Keep me posted and do not hesitate to reach out to us if you notice any issues!
Thank you for helping us improve Slimstat!
Jason
Hello Jason, Yes, the beta test works well. The error has ceased with the shortcode active. At least at this point, for the challenged website, the problem has been resolved. Thanks for your hard work!!!
Thank you for taking some time to test this new release, and for reporting back right away! Would you mind keeping this new version running for a a few days to see if there’s anything wrong with it?
Jason
After I cleared the cache later, I notice the same problem exists. Sorry, the error is not fixed. Thanks.
Ha! This is really strange. Other users are reporting that the error seems to be resolved for them. Could you send me a screenshot of the error and your Slimstat config at https://support.wp-slimstat.com ?
Thanks,
Jason
Hello,
Here’s how the website should look: https://rvlifts.com/
Here’s how it looks with Slimstats active in Chrome: https://rvlifts.com/rvlifts-slimstats-failure.jpg Page narrows and all placed images fail. Works fine as outlined above in Firefox. Same versions as detailed above. Chrome in incognito still shows errors.
I disabled Avada Fusion slider on top and the error continues.
This is the error that repeats over and over in the error log:
Stack trace:
#0 /home/rvlifts/public_html/wp-content/plugins/wp-slimstat/wp-slimstat.php(958): wp_slimstat_reports::init()
#1 /home/rvlifts/public_html/wp-includes/shortcodes.php(325): wp_slimstat::slimstat_shortcode(Array, 'resolution is_n...', 'slimstat')
#2 [internal function]: do_shortcode_tag(Array)
#3 /home/rvlifts/public_html/wp-includes/shortcodes.php(199): preg_replace_callback('/\\[(\\[?)(slimst...', 'do_shortcode_ta...', '© Copyrigh...')
#4 /home/rvlifts/public_html/wp-content/themes/Avada/templates/footer-copyright-notice.php(24): do_shortcode('© Copyrigh...')
#5 /home/rvlifts/public_html/wp-includes/template.php(724): require('/home/rvlifts/p...')
#6 /home/rvlifts/public_html/wp-includes/template.php(671): load_template('/home/rvlifts/p...', false)
#7 /home/rvlifts/public_html/wp-includes/general-template.php(168): locate_template(Array, in /home/rvlifts/public_html/wp-content/plugins/wp-slimstat/admin/view/wp-slimstat-reports.php on line 856
Short code used on footer:
© Copyright 2004-<script type="text/javascript"> document.write(new Date().getFullYear());</script> Startracks RV Lifts <span style="color: #98844f"> | </span> Hosted & Created by <a href="http://www.artiosmedia.com">Artios Media</a><span style="color: #98844f"> | </span>Unique Views: <span style="color: #98844f">[slimstat f='count-all' w='ip']resolution is_not_empty &&&browser_type does_not_equal 2[/slimstat]
All Slimstats settings are installation default, nothing is modified. Tracking Mode as Client or Server, same error results in Chrome only.
If I look at the code at line 856 as mentioned by the last line in your error here above, there’s nothing that could cause an error:
https://github.com/slimstat/wp-slimstat/blob/d35f6ec9f5e181b742c193f32849234a9d0cc0a4/admin/view/wp-slimstat-reports.php#L856
Are you sure this error is the one you get when using the latest beta? I ask because the first line in your error mentions wp-slimstat.php line 958:
https://github.com/slimstat/wp-slimstat/blob/master/wp-slimstat.php#L958
which doesn’t have a call to the init() function as your error says. Sorry, I’m just trying to understand.
Thank you,
Jason