Webmastersite.net
Register Log In

Upgrade errors

Comments on Upgrade errors

Jez
Forum Regular

Usergroup: Customer
Joined: Jan 19, 2007

Total Topics: 32
Total Comments: 130
Jez
Posted Aug 01, 2008 - 2:13 AM:

I got the following errors on upgrading to the current version from the last:



An error occoured at www.accommodation-uk.net/up...datetemplates=1&fromfree=0 on 2008-08-01 09:03:58. Please relay this data to support. Error #2: 'chmod() [function.chmod]: Operation not permitted' in /home/accommod/public_html/includes/commonfuncs.php on line 2624.

An error occoured at www.accommodation-uk.net/up...datetemplates=1&fromfree=0 on 2008-08-01 09:04:09. Please relay this data to support. Error #2: 'copy(templates/admin/autoupgrade.tpl) [function.copy]: failed to open stream: Permission denied' in /home/accommod/public_html/includes/filefunctions.php on line 21.

An error occoured at www.accommodation-uk.net/up...datetemplates=1&fromfree=0 on 2008-08-01 09:04:09. Please relay this data to support. Error #2: 'copy(templates/admin/bulkcategories.tpl) [function.copy]: failed to open stream: Permission denied' in /home/accommod/public_html/includes/filefunctions.php on line 21.

An error occoured at www.accommodation-uk.net/up...datetemplates=1&fromfree=0 on 2008-08-01 09:04:09. Please relay this data to support. Error #2: 'copy(templates/admin/bulkfeeds.tpl) [function.copy]: failed to open stream: Permission denied' in /home/accommod/public_html/includes/filefunctions.php on line 21.

An error occoured at www.accommodation-uk.net/up...datetemplates=1&fromfree=0 on 2008-08-01 09:04:09. Please relay this data to support. Error #2: 'copy(templates/admin/bulklinks.tpl) [function.copy]: failed to open stream: Permission denied' in /home/accommod/public_html/includes/filefunctions.php on line 21.

An error occoured at www.accommodation-uk.net/up...datetemplates=1&fromfree=0 on 2008-08-01 09:04:09. Please relay this data to support. Error #2: 'copy(templates/admin/email.tpl) [function.copy]: failed to open stream: Permission denied' in /home/accommod/public_html/includes/filefunctions.php on line 21.

An error occoured at www.accommodation-uk.net/up...datetemplates=1&fromfree=0 on 2008-08-01 09:04:09. Please relay this data to support. Error #2: 'copy(templates/admin/templatesorig.tpl) [function.copy]: failed to open stream: Permission denied' in /home/accommod/public_html/includes/filefunctions.php on line 21.

An error occoured at www.accommodation-uk.net/up...datetemplates=1&fromfree=0 on 2008-08-01 09:04:09. Please relay this data to support. Error #2: 'copy(templates/admin/upgrade1.tpl) [function.copy]: failed to open stream: Permission denied' in /home/accommod/public_html/includes/filefunctions.php on line 21.

Jez.
Jez
Forum Regular

Usergroup: Customer
Joined: Jan 19, 2007

Total Topics: 32
Total Comments: 130
Jez
Posted Aug 01, 2008 - 2:21 AM:

I forgot to add the important detail that the site is down with the following error:

Illegal template name: templates/default/main.tpl

Right at the busiest time of the year for the site sad

You can see why I would let a series of upgrades go by without upgrading to them - in case this sort of thing happens.

Please advise asap on how to fix.
Paul
developer

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

Total Topics: 61
Total Comments: 7868
Paul
Posted Aug 01, 2008 - 1:09 PM:

Why did you specify 5.0 beta 6? confused I guess I'll just ignore that and presume you're talking about beta 10...

Let's find out what you and babrees have in common. I'm guessing you're running PHP in apache mode (777 permissions)? Do you have FTP info entered at Admin -> Settings -> System? Are you sure that info is correct? If it's not entered, and you are in apache mode, there's your chmod problem.

jez wrote:
Illegal template name: templates/default/main.tpl


The security precaution added in 4.1.58 and 5.0 beta 10 seemed to cause issues with the 'view email logs' in the admin panel on some servers even though it's flawless on localhost, so I removed it from 4.1.58 in an update a few hours after the original release. Due to the nature of betas, no immediate beta updates are planned. You can open classes/template.php and delete the line
if (strstr($file, '../') || substr_count($file, '/') > 1) die("Illegal template name: ". strip_tags($file));
. Haven't seen anything on the front page like that on any server though. Are you running something like the custom template anywhere hack?

jez wrote:
You can see why I would let a series of upgrades go by without upgrading to them - in case this sort of thing happens.


It's not especially sane to use beta versions on highly critical sites, anyhow. I'm sticking with the 4.1 series for the customer downloads area for now, for example... and for this support forum (though that'll change shortly).

I recall you commissioned the level-based selector, a hefty new feature which was bound to introduce bugs and so couldn't go in the 4.1 series. If your site's stability is that important though, you can't ask for the cutting edge at the same time -- you have to wait a few months longer for new features than the adventurous do.

By the way, upgrading once a month or every 2 or 3 months is just fine if there are no security updates involved and you don't mind the bugs that your version has (in the case of these betas, there are of course tons of major bugs -- so many that I don't list the fixes, since any beta can be presumed to have dozens of fixes). I do frequent releases for the sake of the people who do want their pet bug that 1% of users care about fixed now. It's when you wait a year or three that the upgrade becomes much, much harder.

I'll consider ways I can mark updates with different priorities.

You're also free to test each update on a replicated version of the site before applying it to the live site if you feel that's warranted. Design your upgrade procedures to fit your needs.
Paul
developer

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

Total Topics: 61
Total Comments: 7868
Paul
Posted Aug 01, 2008 - 3:49 PM:

Added a release priorities indicator system:
Low priority
Normal priority
High priority
Critical priority
Jez
Forum Regular

Usergroup: Customer
Joined: Jan 19, 2007

Total Topics: 32
Total Comments: 130
Jez
Posted Aug 01, 2008 - 4:10 PM:

Paul,

I can't seem to login to the admin to change anything:

Illegal template name: templates/default/admin/password.tpl

You have the current user and pass if you want to take a look.

Jez.
Paul
developer

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

Total Topics: 61
Total Comments: 7868
Paul
Posted Aug 01, 2008 - 4:21 PM:

You should open classes/template.php with a text editor or your FTP client, not with the admin panel. Or email me and I'll email you the file to upload.
Jez
Forum Regular

Usergroup: Customer
Joined: Jan 19, 2007

Total Topics: 32
Total Comments: 130
Jez
Posted Aug 02, 2008 - 3:59 AM:

Paul, I deleted the line and uploaded but nothing still. What else can I try?
babrees
Expert

Usergroup: Customer
Joined: Aug 19, 2005
Location: England

Total Topics: 391
Total Comments: 1303
babrees
Posted Aug 02, 2008 - 6:50 AM:

Jez wrote:
Paul, I deleted the line and uploaded but nothing still. What else can I try?


You could try downloading the latest version (beta 11) and manually upload the files (excluding your templates) and then run upgrade.php.
Jez
Forum Regular

Usergroup: Customer
Joined: Jan 19, 2007

Total Topics: 32
Total Comments: 130
Jez
Posted Aug 02, 2008 - 7:09 AM:

Thanks - I'd be scared that I would lose some of the changes that I paid Paul to make. Hopefully Paul has another solution but I suspect that it will come to this.
Paul
developer

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

Total Topics: 61
Total Comments: 7868
Paul
#10 - Quote - Permalink
Posted Aug 02, 2008 - 9:10 AM:

You can't get the same message if you removed that line. This means you weren't able to remove the line. Presumably your FTP client isn't able to save the changes because it doesn't own the file -- this will happen in apache mode without suexec. Delete the file and reupload it. If you can't delete it either, and you can't get to the chmod utility, ask your host to chmod or delete the file for you. You should also ask your web host to use suPHP so that you can edit your files and so you don't have to enter FTP info.

5.0 Beta 11 has all of the features 5.0 Beta 10 has, nothing removed, no need to worry about losing changes. You won't be able to upload files manually (at least until after deleting them) for the same reason you can't edit files manually, though, so you'll want to deal with the one file instead of with hundreds.

Attached Files:
Jez
Forum Regular

Usergroup: Customer
Joined: Jan 19, 2007

Total Topics: 32
Total Comments: 130
Jez
#11 - Quote - Permalink
Posted Aug 02, 2008 - 10:07 AM:

Ok, thanks for the template file. I did delete the line - I don't really understand why thta didn't work (even though you explained it!)



I got the following message:



If you are not the administrator of this site, please report this page to the administrator. If you are the administrator, please pay careful attention: You have a parse error in your template templates/default/main.tpl (or perhaps in your header or footer) which you need to repair before this page can be displayed correctly. The error is picked up on by php at line 1894 of the output.Line #1889:
Line #1890:
Line #1891:
Line #1892:
Line #1893:
Line #1894:

[Load this template in your template editor]

Note that the line of the output is not necessarily the same line number in your template... just look for a similar looking area. The source of your error is probably not on line 1894 itself, but most likely a line or two before it. Check your code carefully for syntax mistakes. If you cannot recognize one, copy and paste this output into a thread on the support forum.
Now outputing the page without any conditional or php sections evaluated:
<"text/javascript" src="http://www.accommodation-uk.net/javascriptheader.php"> onload="load()" onunload="GUnload()">



You can see the error on www.accommodation-uk.net
Paul
developer

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

Total Topics: 61
Total Comments: 7868
Paul
#12 - Quote - Permalink
Posted Aug 03, 2008 - 11:52 AM:

So what's around that stat counter code? Try taking the stat counter out.
Jez
Forum Regular

Usergroup: Customer
Joined: Jan 19, 2007

Total Topics: 32
Total Comments: 130
Jez
#13 - Quote - Permalink
Posted Aug 03, 2008 - 12:09 PM:

I did and it gave a new javascript error
hai
Forum Regular

Usergroup: Customer
Joined: Apr 03, 2007
Location: NY & PA

Total Topics: 94
Total Comments: 339
hai
#14 - Quote - Permalink
Posted Aug 03, 2008 - 1:20 PM:

Not sure if this is your problem, but when viewing the source of the page I noticed your StatCounter code shows -

<"text/javascript" language="javascript"> in 2 places try changing to -

<script type="text/javascript" language="javascript">
Jez
Forum Regular

Usergroup: Customer
Joined: Jan 19, 2007

Total Topics: 32
Total Comments: 130
Jez
#15 - Quote - Permalink
Posted Aug 03, 2008 - 1:28 PM:

OK, I have removed the statcounter code.



This is what I get without it:



If you are not the administrator of this site, please report this page to the administrator. If you are the administrator, please pay careful attention: You have a parse error in your template templates/default/main.tpl (or perhaps in your header or footer) which you need to repair before this page can be displayed correctly. The error is picked up on by php at line 1886 of the output.Line #1881:
Line #1882: </body>
Line #1883: </html>
Line #1884:
Line #1885:
Line #1886:

[Load this template in your template editor]

Note that the line of the output is not necessarily the same line number in your template... just look for a similar looking area. The source of your error is probably not on line 1886 itself, but most likely a line or two before it. Check your code carefully for syntax mistakes. If you cannot recognize one, copy and paste this output into a thread on the support forum.
Now outputing the page without any conditional or php sections evaluated:
<"text/javascript" src="http://www.accommodation-uk.net/javascriptheader.php"> onload="load()" onunload="GUnload()">
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.