Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Settings not sticking

Quote Reply
Settings not sticking
Greetings:

I've run into a strange problem where I set the build backup option (in setup/build) resets itself to 'yes'. When I change it back to 'no' and save it, it shows 'no' however the next day it shows 'yes' again.

I there somewhere where these settings are saved?

Thanks,

Clint
--------------------------
http://AffiliatesDirectory.com
The Affiliate Programs Directory
Quote Reply
Re: [Clint] Settings not sticking In reply to
Hi,

I don't believe there is any code that will change it back without asking you (or you doing it). It almost sounds like you have a plugin that is changing it for some reason.

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] Settings not sticking In reply to
Thanks.

Maybe Pagebuilder as it hooks into nph-build at every build .... just a guess. I love these little nuancesCrazy

Cheers,

Clint.
--------------------------
http://AffiliatesDirectory.com
The Affiliate Programs Directory
Quote Reply
Re: [Clint] Settings not sticking In reply to
Hi,

You could try running this in SSH:

Code:
cd /path/to/glinks/admin
grep -r 'build_use_backup' .

I would expect to see something like:

Code:
./nph-build.cgi: if (! $CFG->{build_use_backup}) {
./Links/Config.pm: $self->set('build_use_backup', 1, $overwrite);
./Links/Config/Data.pm: 'build_use_backup' => '1',
./templates/admin/compiled/setup_build.html.compiled: <td class="option">build_use_backup</td>
./templates/admin/compiled/setup_build.html.compiled: <input type="radio" value="1" name="build_use_backup" id="bub1" };
./templates/admin/compiled/setup_build.html.compiled:if ($self->_get_var(q{cfg_build_use_backup}, { escape => 0, strict => 0, merge => 0 })) {
./templates/admin/compiled/setup_build.html.compiled: <input type="radio" value="0" name="build_use_backup" id="bub0" };
./templates/admin/compiled/setup_build.html.compiled:unless ($self->_get_var(q{cfg_build_use_backup}, { escape => 0, strict => 0, merge => 0 })) {
./templates/admin/setup_build.html: <td class="option">build_use_backup</td>
./templates/admin/setup_build.html: <input type="radio" value="1" name="build_use_backup" id="bub1" <%if cfg_build_use_backup%>checked="checked" <%endif%>/><label for="bub1">Yes</label>
./templates/admin/setup_build.html: <input type="radio" value="0" name="build_use_backup" id="bub0" <%ifnot cfg_build_use_backup%>checked="checked" <%endif%>/><label for="bub0">No</label>

If you see more, then that could be where your issue lies.

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] Settings not sticking In reply to
Thanks Andy,

I see mine differs from above in respect of these 2 statements.

Links/Config.pm: $self->set('build_use_backup', 1, $overwrite);
Links/Config/Data.pm: 'build_use_backup' => '0',

Could herein lie the problem as I note both your values are 1?

Cheers,

Clint
--------------------------
http://AffiliatesDirectory.com
The Affiliate Programs Directory
Quote Reply
Re: [Clint] Settings not sticking In reply to
Hi,

Mmm that all looks fine.

Mine is set to 1, as I don't do builds on that site (so I've never bothered to disable backups, as I do SQL backups of all my stuff)

This one is fine as well, unless of course you are doing a reset on the config values (which is where that gets called);

Code:
$self->set('build_use_backup', 1, $overwrite);

Gotta admit, I'm a bit baffled!

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!