Webmastersite.net
Register Log In

Template "loss" through upgrade, etc

Comments on Template "loss" through upgrade, etc

Jenny
Forum Regular

Usergroup: Customer
Joined: May 11, 2003

Total Topics: 64
Total Comments: 199
Jenny
Posted Mar 17, 2009 - 6:56 PM:

Strange thing - I spent the past week or so doing major maintentance and setting up a new template. This afternoon I ran the autoupgrade and suddenly the whole page is back to the previous layout.
Or actually, the wrapper is back to the previous version, the main page is back to the standard template, displaylinks is empty and so are most other template files and the stylesheet is not loaded in wrapper.

help confused
Paul
developer

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

Total Topics: 61
Total Comments: 7868
Paul
Posted Mar 18, 2009 - 2:44 PM:

If you ran the upgrade schema on the "Advanced Options" page, that would have all templates reverted to the default on the next upgrade... but I removed the option a few versions ago after someone else used it.

It's impossible for the script to revert a template to a version which is "previous" but not standard since that data isn't stored -- that would have to be a browser cache issue or a hosting backup restoration.

Templates appearing empty might just have a permissions problem if you're in apache mode without suPHP. www.link-lounge.com/templat...s/default/displaylinks.tpl appears fine though.

Tell me if the files exist and are blank, exist non-blank with bad permissions, or don't exist.
Jenny
Forum Regular

Usergroup: Customer
Joined: May 11, 2003

Total Topics: 64
Total Comments: 199
Jenny
Posted Mar 18, 2009 - 3:30 PM:

Paul wrote:
If you ran the upgrade schema on the "Advanced Options" page, that would have all templates reverted to the default on the next upgrade... but I removed the option a few versions ago after someone else used it.


Nope, used the one on the front page.

Paul wrote:
It's impossible for the script to revert a template to a version which is "previous" but not standard since that data isn't stored -- that would have to be a browser cache issue or a hosting backup restoration.


IMPOSSIBLE - that's what I figured and why I was so confused last night confused Hosting backup restoration - have to look into that. Find it strange though that only selected templates are reverted to the previous version (i.e. wrapper, linkbit), other templates are untouched (like all custom templates) and others are wiped.
ETA: new observation: calling a custom template called "updates" from the drop-down in the templates manager is actually pulling up another custom template called "guidelines" - but it's still called "/updates.tpl" on the submit button below the textarea, the stylesheet is called "default.tpl"...

Paul wrote:
Templates appearing empty might just have a permissions problem if you're in apache mode without suPHP. www.link-lounge.com/templat...s/default/displaylinks.tpl appears fine though.

Tell me if the files exist and are blank, exist non-blank with bad permissions, or don't exist.


Bad permissions or non-existing templates I've had before and they always cause error messages. The templates are just empty, but I can load them just fine through the website or the template manager. displaylinks.tpl I had just reverted back to the standard through admin, because I was looking for a link. But it was empty last night after the upgrade.


Is there any way to undo an upgrade???


BTW, I recently switched to the SEO friendly URLs - works frin for some categories, i.e. "Fan Sites" shows up as http://www.link-lounge.com/fan_sites/, but others show up with their category ID, i.e. http://www.link-lounge.com/67/
I haven't been able to make out a pattern...
Paul
developer

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

Total Topics: 61
Total Comments: 7868
Paul
Posted Mar 19, 2009 - 12:54 PM:

It sounds like upgrade errors happen to you often, which means I need to see it to figure out what it is about the server setup: scripts.webmastersite.net/w...tom=yes&TID=upgradeservice

There's no backup if you didn't make one. I could possibly have it write a backup during upgrade, but whatever makes your upgrade not work would likely make your backup not work too, and you'd have to remember to delete it or put it in a non-web-accessible directory... so there doesn't seem to be much point.

Any category name with special characters uses the id instead of name, unless you use a rewrite scheme that includes {CATID} ({REWRITEPATH}-{CATID}/{PAGE}.html).
Jenny
Forum Regular

Usergroup: Customer
Joined: May 11, 2003

Total Topics: 64
Total Comments: 199
Jenny
Posted Mar 29, 2009 - 1:58 AM:

So, I went back into admin today with the best intentions of re-doing the templates. But first I clicked the auto-upgrade - and now I can't access anything anymore. I get a 403 error for the whole thing. I tried to manually upgrade, then checked all permissions ... nothing.
I'm gonna set up an FTP account for you and fill out that form.
(I didn't overwrite the templates, but at this point, that doesn't really matter.)

FYI, I moved to a new server a few weeks ago, the other upgrade errors happened on the old server.
Paul
developer

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

Total Topics: 61
Total Comments: 7868
Paul
Posted Mar 29, 2009 - 7:20 AM:

The 403 error is the .htaccess file -- SEO URL rewriting. 403s are always .htaccess or chmod, but since you're in cgi/suphp mode it'll always be .htaccess.

The question is how you got that .htaccess file. When I keep everything as you have it and just press enter on the SEO page, it generates a valid .htaccess file that looks different from the one you had. You had:

RewriteEngine on
RewriteBase /

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_URI} !(.+)\.(.+)
RewriteCond %{REQUEST_URI} !(.*)/$
RewriteRule ^(.*)$ $1/ [L,R=301]



RewriteRule ^admin/?$ admin/index.php

RewriteRule ^members/([0-9]+)\.html?$ memberlist.php?rewritten=1&page=$1
RewriteRule ^members/([-_/\+A-Za-z0-9]+)-([0-9]+)-trader\.html?$ trader.php?rewritten=1&id=$2
RewriteRule ^members/([-_/\+A-Za-z0-9]+)-([0-9]+)\.html?$ memberlist.php?rewritten=1&action=profile&id=$2
RewriteRule ^members/?$ memberlist.php?rewritten=1
RewriteRule ^help/?$ help.php?rewritten=1
RewriteRule ^help/([-_/\+A-Za-z0-9]+)/?$ help.php?rewritten=1&action=showcat&name=$1
RewriteRule ^help/([-_/\+A-Za-z0-9]+)/([-_/\+A-Za-z0-9]+)-([0-9]+)\.html?$ help.php?rewritten=1&action=showitem&id=$3


RewriteRule ^tags/([a-zA-Z0-9]+)/?$ search.php?rewritten=1&filled=1&action=filter&whichtype=links&tagscondition=like&tagssearch=|$1|

RewriteRule ^([-_/\+A-Za-z0-9]+)/vote-([-_/\+A-Za-z0-9]+)-([0-9]+)\.html?$ vote.php?rewritten=1&id=$3&categorypath=$1&linktitle=$2
RewriteRule ^([-_/\+A-Za-z0-9]+)/email-([-_/\+A-Za-z0-9]+)-([0-9]+)\.html?$ email.php?rewritten=1&id=$3&categorypath=$1&linktitle=$2
RewriteRule ^thread/([0-9]+)/{PAGE}/?$ comments.php?rewritten=1&id=$1&
RewriteRule ^thread/([0-9]+)/([0-9]+)/?$ comments.php?rewritten=1&id=$1&page=$2
RewriteRule ^thread/([0-9]+)/?$ comments.php?rewritten=1&id=$1
RewriteRule ^([0-9]+)/?$ index.php?rewritten=1&action=displaycat&catid=$1
RewriteRule ^([0-9]+)/([0-9]+)/?$ index.php?rewritten=1&action=displaycat&catid=$1&page=$2
RewriteRule ^([0-9]+)/sp([0-9]+).htm$ index.php?rewritten=1&action=displaycat&catname=$1&subpage=$2
RewriteRule ^([-_/\+A-Za-z0-9]+)/?$ index.php?rewritten=1&action=displaycat&catname=$1
RewriteRule ^([-_/\+A-Za-z0-9]+)/([0-9]+)/?$ index.php?rewritten=1&action=displaycat&catname=$1&page=$2

order allow,deny
deny from 203.160.1.44
deny from 209.68.139.150
allow from all


WSN generates:
Options +FollowSymlinks
RewriteEngine on
RewriteBase /

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_URI} !(.+)\.(.+)
RewriteCond %{REQUEST_URI} !(.*)/$
RewriteRule ^(.*)$ $1/ [L,R=301]



RewriteRule ^admin/?$ admin/index.php

RewriteRule ^members/([0-9]+)\.html?$ memberlist.php?rewritten=1&page=$1
RewriteRule ^members/([-_/\+A-Za-z0-9]+)-([0-9]+)-trader\.html?$ trader.php?rewritten=1&id=$2
RewriteRule ^members/([-_/\+A-Za-z0-9]+)-([0-9]+)\.html?$ memberlist.php?rewritten=1&action=profile&id=$2
RewriteRule ^members/?$ memberlist.php?rewritten=1
RewriteRule ^help/?$ help.php?rewritten=1
RewriteRule ^help/([-_/\+A-Za-z0-9]+)/?$ help.php?rewritten=1&action=showcat&name=$1
RewriteRule ^help/([-_/\+A-Za-z0-9]+)/([-_/\+A-Za-z0-9]+)-([0-9]+)\.html?$ help.php?rewritten=1&action=showitem&id=$3


RewriteRule ^tags/([a-zA-Z0-9]+)/?$ search.php?rewritten=1&filled=1&action=filter&whichtype=links&tagscondition=like&tagssearch=|$1|

RewriteRule ^([-_/\+A-Za-z0-9]+)/vote-([-_/\+A-Za-z0-9]+)-([0-9]+)\.html?$ vote.php?rewritten=1&id=$3&categorypath=$1&linktitle=$2
RewriteRule ^([-_/\+A-Za-z0-9]+)/email-([-_/\+A-Za-z0-9]+)-([0-9]+)\.html?$ email.php?rewritten=1&id=$3&categorypath=$1&linktitle=$2
RewriteRule ^thread/([0-9]+)/{PAGE}/?$ comments.php?rewritten=1&id=$1&
RewriteRule ^thread/([0-9]+)/([0-9]+)/?$ comments.php?rewritten=1&id=$1&page=$2
RewriteRule ^thread/([0-9]+)/?$ comments.php?rewritten=1&id=$1
RewriteRule ^([0-9]+)/?$ index.php?rewritten=1&action=displaycat&catid=$1
RewriteRule ^([0-9]+)/([0-9]+)/?$ index.php?rewritten=1&action=displaycat&catid=$1&page=$2
RewriteRule ^([0-9]+)/sp([0-9]+).htm$ index.php?rewritten=1&action=displaycat&catname=$1&subpage=$2
RewriteRule ^([-_/\+A-Za-z0-9]+)/?$ index.php?rewritten=1&action=displaycat&catname=$1
RewriteRule ^([-_/\+A-Za-z0-9]+)/([0-9]+)/?$ index.php?rewritten=1&action=displaycat&catname=$1&page=$2

order allow,deny
deny from 203.160.1.44
deny from 209.68.139.150
allow from all


What you had looks like what you'd get if you took the legacy htaccess.txt file that ships and went through manually tweaking it. Though if you'd done that, surely the error would've been present before upgrade at the time you did it. Anyhow I'll stop shipping an htaccess.txt since it doesn't serve any purpose anymore except to be potentially confusing.

I see you have both a 'default' and a 'linklounge' template set. Are you intentionally allowing people a choice between the two? Are you sure you haven't been confusing the two?

Did you restore a backup of your templates, or is there supposed to be something wrong with the templates that I should be able to see now? The 'linklongue' ones look highly customized.

Will see what an upgrade does when I release 5.0.42 tomorrow.
Paul
developer

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

Total Topics: 61
Total Comments: 7868
Paul
Posted Mar 29, 2009 - 7:27 AM:

Jenny wrote:
So, I went back into admin today with the best intentions of re-doing the templates.


This bit implies that you don't think your templates are customized. To clarify, here's a screenshot (which looks quite customized). So I'm not clear on what has been lost.

Attached Files:
Jenny
Forum Regular

Usergroup: Customer
Joined: May 11, 2003

Total Topics: 64
Total Comments: 199
Jenny
Posted Mar 30, 2009 - 9:21 AM:

okay, by now I am COMPLETELY confused, but I am glad that it seems to be working okay now.
I didn't even remember that I had two different template sets. There was a reason and I think it had something to do with the old errors that I used to get when the permissions for the templates changed on their own. But that's so long ago, I should just delete that one set.
Thanks so much Paul, I guess from an outside perspective it's easier to spot these things than when you're looking at them every day :-)
I'm gonna run the next auto-upgrade in a second, let's see what happens...
Paul
developer

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

Total Topics: 61
Total Comments: 7868
Paul
Posted Mar 30, 2009 - 12:02 PM:

Your template sets do have a minor problem in that they didn't get properly upgraded from their original version, so they got out of sync and are showing as 'customized' despite your not actually having customized them. And some others show as customized even though they're still exactly the same... I think that means you uploaded them via FTP in binary instead of ascii from a Windows desktop. I'm reverting a bunch of those to standard so that your upgrades will be simpler.
Paul
developer

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

Total Topics: 61
Total Comments: 7868
Paul
#10 - Quote - Permalink
Posted Mar 30, 2009 - 12:04 PM:

I see both template sets had several blank templates (reverted those now). The question is how those templates got blanked, and how the others failed to update.

But anyhow, everything looks good now.
Jenny
Forum Regular

Usergroup: Customer
Joined: May 11, 2003

Total Topics: 64
Total Comments: 199
Jenny
#11 - Quote - Permalink
Posted Mar 30, 2009 - 1:14 PM:

Thanks so much Paul, I really appreciate it. Now I got something to do tonight when I get home wink

BTW, haven't been working (at home) with Windows in over a year (and I'm so happy grin) What are you using? Linux? Can't tell from your screenshot.
Paul
developer

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

Total Topics: 61
Total Comments: 7868
Paul
#12 - Quote - Permalink
Posted Apr 01, 2009 - 6:26 AM:

Linux, yes. It's Kubuntu 8.10, running KDE 4.1. Seems like Kubuntu is the only distro that likes my hardware these days.

Let me tell you, though, avoid KDE 4.1 at all costs. I hear 4.2 is good, and 3.5 was good, but here in 4.1 I can't even zip a directory anymore without looking up the command line (ark reports "that feature is not implemented yet, sorry"). Luckily 9.04 will be here soon and should release me from this torment.
Search thread for
Download thread as
  • 0/5
  • 1
  • 2
  • 3
  • 4
  • 5



Sorry, you don't have permission to post posts. Log in, or register if you haven't yet.