Internal Server Error
Permalink Browser Info Environment
Smooth scrolling doesn't work for me. Links to anchors are just jumping instead of smoothly scrolling. While smoothTag.js is loaded correctly, Firebug reports an error:
"NetworkError: 500 Internal Server Error -https://.../index.php/package/smoothtag/controller/config"...
Any idea, what could be causing this?
Btw, on your demo page, smooth scrolling doesn't work for smaller screens. Anchor links are just jumping. Trying the demo on a smartphone or even resizing the width of the destop screen also shows that behavior. Is that intentionally?
Thank you,
Michael
"NetworkError: 500 Internal Server Error -https://.../index.php/package/smoothtag/controller/config"...
Any idea, what could be causing this?
Btw, on your demo page, smooth scrolling doesn't work for smaller screens. Anchor links are just jumping. Trying the demo on a smartphone or even resizing the width of the destop screen also shows that behavior. Is that intentionally?
Thank you,
Michael
Type: | Pre-Sale |
---|---|
Status: | Resolved |
Line 51 of smoothTag.js sets the min-width for enabling the effect to 960px.
As for the server error... I'm unable to reproduce...
PHP 5 or 7?
As for the server error... I'm unable to reproduce...
PHP 5 or 7?
Thanks for the information! I will try this out, as soon as i manage to get it to work.
Yes, PHP 7 here, maybe that's causing the problem...
Yes, PHP 7 here, maybe that's causing the problem...
Are you using default settings? If not can you post what you have put in on the dashboard settings for the plugin?
I will check 7.
I will check 7.
Yes, i'm using the default settings.
PHP 7 is throwing errors.
Guess I need to fix that.
Guess I need to fix that.
Yes... maybe this helps (you might have examined that already):
Maybe a namespacing issue?
{"error":{"message":"Declaration of Concrete\\Package\\SmoothTag\\Controller\\Config::get() should be compatible with Concrete\\Core\\Controller\\AbstractController::get($key = NULL, $defaultValue = NULL )"},"errors":["Declaration of Concrete\\Package\\SmoothTag\\Controller\\Config::get() should be compatible with Concrete\\Core\\Controller\\AbstractController::get($key = NULL, $defaultValue = NULL)"]}
Maybe a namespacing issue?
Its because I called the function "get" and I guess that doesn't work in PHP7.
So I renamed the function to loadSavedConfig and everything seems to be working again.
I just uploaded version 1.1 with those changes made.
If you want to update your own copy without reinstalling, just update line 52 of smooth_tag/controller.php from config::get to config::loadSavedConfig and everything should work.
So I renamed the function to loadSavedConfig and everything seems to be working again.
I just uploaded version 1.1 with those changes made.
If you want to update your own copy without reinstalling, just update line 52 of smooth_tag/controller.php from config::get to config::loadSavedConfig and everything should work.
Oh sorry, you also need to update it inside smooth_tag/controllers/config.php if your patching it manually.
Wow... you made my day! Thank you so much for your help!!
It works great now even on smartphone, since i changed the value on line 51 of smoothTag.js!
Thanks again,
Michael
It works great now even on smartphone, since i changed the value on line 51 of smoothTag.js!
Thanks again,
Michael
Anytime :) Thanks for helping me get it working in php7.
I will also find out why its giving you an error.
I will be back shortly.