Paul, What can be the cause of the variable 'expire' not being modified at link submission ?
It has being working correctly since some time ago: at suggestlink.tpl I had <input type="hidden" name="expire" value="7"> , this way {LINKEXPIREDAYS} variable of the submitted links was automatically a assigned to 7 days to expiration.
Now it doesn't work, and the expiration days is 0 for the submitted link.
I have checked changing the Default Days to Expiration at link settings without effect, the submited link is always maintaining the value of {LINKEXPIREDAYS} to 0.
Strangely editing the link I can change expire value correctly, but not at submitting.
I also have checked a test default installation of the last version and this is working correctly, but my upgraded customized installation is not.
I have 'expiretime' and 'expirecookie' same as the actual versions, 'expiredays' does not appear.
Comparing at phpmyadmin _links table has the following main difference:
At my installation: 'filefiled' variable has type varchar(255), Not Null, no default value At the most recent version we have 'filefiled' variable has type tinyint(1), Null, default value is 0
I have changed the Type, Null and Default value of 'filefiled' to the most recent values and the problem seems to be solved.
Maybe upgrade should modify the values of this variable, as I see that version 3.3.4 has this values.
The links table can't have any relation to the default days to expiration, since it's a setting (and the type differences are just a small performance hit). It's the settings table. Not sure how upgrade.php could miss it but if it's not listed there use your add fields page to add a new setting (invisible) named expiredays.
Comments on 'expire' variable not modified
Forum Regular
Usergroup: Customer
Joined: Aug 09, 2004
Location: Chile
Total Topics: 172
Total Comments: 462
Paul,
What can be the cause of the variable 'expire' not being modified at link submission ?
It has being working correctly since some time ago: at suggestlink.tpl I had <input type="hidden" name="expire" value="7"> , this way {LINKEXPIREDAYS} variable of the submitted links was automatically a assigned to 7 days to expiration.
Now it doesn't work, and the expiration days is 0 for the submitted link.
I have checked changing the Default Days to Expiration at link settings
without effect, the submited link is always maintaining the value of {LINKEXPIREDAYS} to 0.
Strangely editing the link I can change expire value correctly, but not at submitting.
I also have checked a test default installation of the last version and this is working correctly, but my upgraded customized installation is not.
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
On the add fields page, is "expiredays" listed as a setting?
Forum Regular
Usergroup: Customer
Joined: Aug 09, 2004
Location: Chile
Total Topics: 172
Total Comments: 462
I have 'expiretime' and 'expirecookie' same as the actual versions,
'expiredays' does not appear.
Comparing at phpmyadmin _links table has the following main difference:
At my installation:
'filefiled' variable has type varchar(255), Not Null, no default value
At the most recent version we have
'filefiled' variable has type tinyint(1), Null, default value is 0
I have changed the Type, Null and Default value of 'filefiled' to the most recent values and the problem seems to be solved.
Maybe upgrade should modify the values of this variable, as I see that version 3.3.4 has this values.
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
The links table can't have any relation to the default days to expiration, since it's a setting (and the type differences are just a small performance hit). It's the settings table. Not sure how upgrade.php could miss it but if it's not listed there use your add fields page to add a new setting (invisible) named expiredays.
Forum Regular
Usergroup: Customer
Joined: Aug 09, 2004
Location: Chile
Total Topics: 172
Total Comments: 462
Checking at a fresh install of ver 4.0.25 does not shows 'expiredays' variable at settings.
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
I've no idea how I invented "expiredays", expirationdefault is the setting involved.