Site logo

Archived topic

500 Internal server error

10 replies · Started by Alec on May 18, 2021

Viewing posts 1–11 of 11

Hi,
I’m hoping someone can shed some light on the problem I’m having.

On my old site I have the “GP_hooks” and have a <script> in the wp_head section.
It has always worked great.

On the new site I have “Elements” and when I install the <script> in the wp_head, I get a 500 server error.

I hope I explained that clear.
Thank you

Hi Alec,

Error 500 is typically a server error strictly and should be unrelated to the theme.

Does it happen when you add any code or just some specific code?

Hi Leo,
I used the same code as before that works fine on the main site.
I get the error on the new site.

Since it's not theme related to the Elements, then I will reach out to the script support as well.

I didn't know if I needed to add anything additional to the beginning or end of the script since I have never used the Elements.

Thanks

The code added in GP Hooks should be exactly the same as using a hook element.

What happens if you just add some simple texts instead of a script?

Hi Leo,
I added simple text and used entire site as location.
It shows up on all pages just fine in the head.

I just get the error when I add the script that starts and ends with <script> - </script>

Thanks

Hmm that case the script itself is likely the issue.

I'm going to contact the script people and ask.
I use the same one on the main site.
The only difference is the tracking number for the new site.

I will post a reply if I get a solution.

Thanks Leo

I'm starting to think it might be a server issue of some kind.
Even if I add the Google Analytics script I get the same error.

I would say so too.

Maybe your server has some setting that's not allowing scripts to be added.

Worth checking with your hosting support.

Hi Leo,
I found out from my host that the ModSecurity was turned on.
They told me how to turn it off and we are good.

Thanks for your great support.
I will mark this as resolved.

Thanks again

Glad to hear and thanks for reporting back :)

This archived topic is closed to new replies.