Webmastersite.net
Register Log In

'expire' variable not modified
at link submission

Comments on 'expire' variable not modified

peumus
Forum Regular

Usergroup: Customer
Joined: Aug 09, 2004
Location: Chile

Total Topics: 172
Total Comments: 462
peumus
Posted Apr 17, 2007 - 8:59 PM:

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.
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted Apr 18, 2007 - 8:41 PM:

On the add fields page, is "expiredays" listed as a setting?
peumus
Forum Regular

Usergroup: Customer
Joined: Aug 09, 2004
Location: Chile

Total Topics: 172
Total Comments: 462
peumus
Posted Apr 19, 2007 - 12:26 AM:

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.
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted Apr 20, 2007 - 1:16 PM:

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.
peumus
Forum Regular

Usergroup: Customer
Joined: Aug 09, 2004
Location: Chile

Total Topics: 172
Total Comments: 462
peumus
Posted Apr 21, 2007 - 5:54 AM:

Checking at a fresh install of ver 4.0.25 does not shows 'expiredays' variable at settings.
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted Apr 21, 2007 - 4:26 PM:

I've no idea how I invented "expiredays", expirationdefault is the setting involved.
Search thread for
Download thread as
  • 0/5
  • 1
  • 2
  • 3
  • 4
  • 5



This thread is closed, so you cannot post a reply.