Jump to content

Archived

This topic is now archived and is closed to further replies.

miratrix

Global setting won't save?

Recommended Posts

miratrix    0
miratrix

Hi,

I'm trying to update some javascript in the header of my site using the Global Setting panel. After hitting save the "saving" overlay pops up and constantly loops. With no end. The javascript doesn't save to the header.

 

Any ideas what could cause this?

Share this post


Link to post
Share on other sites
Danny    1,327
Danny

Hi,

 

When you say you're trying to update some javascript in your header, what are you actually referring to?

 

All custom javascript should be added to Wordpress Admin Dashboard > PageLines > Site Options > Custom Code > Header Scripts.

 

If you have made changes to the header.php file, then I recommend you remove these changes. Editing the core files is not recommended or supported.


Please search our forums, before posting!

Share this post


Link to post
Share on other sites
miratrix    0
miratrix

Hi Danny

The changes where in Wordpress Admin Dashboard > PageLines > Site Options > Custom Code > Header Scripts not to the actual files. Basically it won't save.

Share this post


Link to post
Share on other sites
Danny    1,327
Danny

If you encounter the continuous spinning wheel of death then its likely caused by the javascript you're adding or a plugin you have installed. Try disabling your plugins and then add the js again and see if you get the cswod.


Please search our forums, before posting!

Share this post


Link to post
Share on other sites
Danny    1,327
Danny

Yes, except for pagelines-sections plugin.


Please search our forums, before posting!

Share this post


Link to post
Share on other sites
Danny    1,327
Danny

OK, then the issue is the code itself, I assume that your settings are saving perfectly before you add this code ?

If so, can you add the code you're trying to add, to our pastie service so I we can check this ourselves.

 

http://paste.pagelines.com/


Please search our forums, before posting!

Share this post


Link to post
Share on other sites
miratrix    0
miratrix

Saving fine until I add the script. Just added it there.

Share this post


Link to post
Share on other sites
Rob    547
Rob

Can you provide a link to your pastebin page?  Thanks.


Former PageLines Moderator, Food Expert and Raconteur

Share this post


Link to post
Share on other sites
Danny    1,327
Danny

Ive just added all scripts code to the Header Scripts area and it saved without any issue. Therefore, you must have something else causing the issue.

Can you provide a link to the site in question, enable PL debug mode and take a screenshot of your settings page where you're adding the script please.


Please search our forums, before posting!

Share this post


Link to post
Share on other sites
Danny    1,327
Danny

OK, looking at your debug issue, this may be related to your server, you will need to contact your host and ask them to resolve the following:

 

PHP Magic Quotes gpc : Yes (bad)

 

You should also ask them to upgrade your PHP to version 5.4 or greater if possible.

 

Once the above have been completed, see if this resolves your issue.


Please search our forums, before posting!

Share this post


Link to post
Share on other sites
miratrix    0
miratrix

Cheers! I'll let you know how I get on.

Share this post


Link to post
Share on other sites
miratrix    0
miratrix

I've updated the version of php. The hosting company are asking for the steps to recreate: PHP Magic Quotes gpc : Yes (bad), I'm guessing that's what they mean?

Share this post


Link to post
Share on other sites
James B    436
James B

Hi there, Magic quotes were removed as of PHP 5.4, so if you've upgraded to 5.4 that error message won't apply anymore.


Kindly search the forum and read the documentation before posting. It will help you resolve many issues.

For CSS help be sure to check out W3Schools first and be sure to download FireBug for FireFox for troubleshooting.

James B

Share this post


Link to post
Share on other sites
miratrix    0
miratrix

I'm still getting the same problem, the upgrade has fixed it.

Share this post


Link to post
Share on other sites
Danny    1,327
Danny

Your still getting the same problem but the upgrade fixed it ?

 

If you mean't hasn't fixed it, then I recommend you disable all active plugins except for DMS Pro Tools and see if this resolves your issue. The problem could be the javascript itself.

 

Try changing other global settings with the JavaScript removed and see if your settings save.


Please search our forums, before posting!

Share this post


Link to post
Share on other sites
miratrix    0
miratrix

Yeh, sorry. It didn't fix it.

 

Global setting will save when I'm not trying to enter the mixpanel JavaScript.

Share this post


Link to post
Share on other sites
Danny    1,327
Danny

So your Global settings are saving without any issue. However, they don't save when you add that snippet of JavaScript ?

If that is the case then its likely either an issue with the JavaScript or a conflict between DMS and that snippet of code.


Please search our forums, before posting!

Share this post


Link to post
Share on other sites

×