Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: update.php error  (Read 9896 times)

0 Members and 1 Guest are viewing this topic.

spuri

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 37
update.php error
« on: July 29, 2004, 11:27:24 pm »

1.3.0 -> 1.3.1 win2k server IIS 5
I get this error message after I uploaded all files (excl config... & install...)
Fatal error: Maximum execution time of 30 seconds exceeded in D:\ftproot\fotoweb.hu\www\fotoalbum\update.php on line 257

I tried to reupload but still the same :(
« Last Edit: July 30, 2004, 05:24:46 pm by Nibbler »
Logged
"What is the difference between genius and stupidity? Genius has limits." Albert Einstein.

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: upload.php error
« Reply #1 on: July 30, 2004, 08:02:43 am »

please post a link to your page.

GauGau
Logged

Nibbler

  • Guest
Re: upload.php error
« Reply #2 on: July 30, 2004, 05:26:29 pm »

I changed the topic to read update.php rather than upload.php, makes things less confusing that way. ;)
Logged

spuri

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 37
Re: update.php error
« Reply #3 on: August 02, 2004, 12:37:45 am »

thanks for the topic chanege, it was my mistake

this is where I get error
http://totalweb.hu/fotoalbum/ update.php
but I downloaded to localhost (files+mysql) than update.php run successfully than I uploaded the database to the server
Logged
"What is the difference between genius and stupidity? Genius has limits." Albert Einstein.

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: update.php error
« Reply #4 on: August 02, 2004, 08:36:12 am »

is your issue solved then?

GauGau
Logged

spuri

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 37
Re: update.php error
« Reply #5 on: August 02, 2004, 05:37:24 pm »

mostly

is there an an.sql file witch contains the 1.3.0.-> 1.3.1 changes ?
or is there other way to check my database if its 1.3.1 or not ?
Logged
"What is the difference between genius and stupidity? Genius has limits." Albert Einstein.

Nibbler

  • Guest
Re: update.php error
« Reply #6 on: August 02, 2004, 06:02:24 pm »

update.sql contains all the db changes, the version number is on the config page, and in an html comment at the bottom of every page.
Logged

spuri

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 37
Re: update.php error
« Reply #7 on: September 13, 2004, 12:17:14 am »

this problem is back - win2003server

Fatal error: Maximum execution time of 50 seconds exceeded in D:\ftproot\fotoweb\www\fotoalbum\update.php on line 257

why???
Logged
"What is the difference between genius and stupidity? Genius has limits." Albert Einstein.

spuri

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 37
Re: update.php error
« Reply #8 on: September 13, 2004, 12:20:50 am »

ok - I see this is a php.ini setting 50sec for me  - and it would need more  :o

so i can see only one chance -  may i split the update.php into 2-3 parts?

thx
spuri
Logged
"What is the difference between genius and stupidity? Genius has limits." Albert Einstein.

Nibbler

  • Guest
Re: update.php error
« Reply #9 on: September 13, 2004, 12:23:08 am »

Running update.php shouldn't take anywhere near 50 seconds. You can open the update.sql, find/replace CPG_ and change it to your actual prefix set during install. Then save it and import it using phpmyadmin.
Logged

kegobeer

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 4637
  • Beer - it does a body good!
    • The Kazebeer Family Website
Re: update.php error
« Reply #10 on: September 13, 2004, 12:35:18 am »

This is most certainly either a server misconfiguration issue, an example of using outdated versions of php and mysql, or a combination of all three.  What versions of php and mysql are you running?
Logged
Do not send me a private message unless I ask for one.  Make your post public so everyone can benefit.

There are no stupid questions
But there are a LOT of inquisitive idiots

spuri

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 37
Re: update.php error
« Reply #11 on: September 14, 2004, 12:10:48 am »

PHP Version 4.3.7
MYSQL - Client API version  3.23.49 

prefic was cpg130_ I renamed this back to cpg_ /changed in db and config.inc.php/
but still getting error
Fatal error: Maximum execution time of 50 seconds exceeded in D:\ftproot\fotoweb.hu\www\fotoalbum\update.php on line 257
Logged
"What is the difference between genius and stupidity? Genius has limits." Albert Einstein.

spuri

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 37
Re: update.php error
« Reply #12 on: September 14, 2004, 12:14:47 am »

probably the server jail system kills my update.php because it uses too much cpu...
if i split the update.php into 2-3 parts, should this solve ?
Logged
"What is the difference between genius and stupidity? Genius has limits." Albert Einstein.

Nibbler

  • Guest
Re: update.php error
« Reply #13 on: September 14, 2004, 12:39:54 am »

Do what I suggested, import the modified sql file a few lines at a time.
Logged

spuri

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 37
Re: update.php error
« Reply #14 on: September 14, 2004, 08:10:05 am »

so if i run coppermine1.3.2\sql\update.sql /in parts/ - I get my db updated ?!  ::)
Logged
"What is the difference between genius and stupidity? Genius has limits." Albert Einstein.

spuri

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 37
Re: update.php error
« Reply #15 on: September 14, 2004, 09:55:59 pm »

my host has MySQL 4.1.2-alpha-nt

and I get error if I try to run update.sql   :-[  :\'(

SQL-query:
ALTER TABLE `CPG_filetypes` DROP INDEX `EXTENSION` ,
ADD PRIMARY KEY ( `extension` )

MySQL said:  
#1091 - Can't DROP 'EXTENSION'; check that column/key exists
-----------------------------------------------------------------------------------------

ok i tested which mod needed and which not
now it looks ok
« Last Edit: September 14, 2004, 10:26:11 pm by spuri »
Logged
"What is the difference between genius and stupidity? Genius has limits." Albert Einstein.

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: update.php error
« Reply #16 on: September 15, 2004, 07:53:43 am »

The error means the column isn't there anymore. It's save to ignore this error and continue with the rest of the sql file. It appears you didn't rename the CPG_ bits in all queries though with the extension you're actually using. This is case-sensitive, mind you.

Joachim
Logged
Pages: [1]   Go Up
 

Page created in 0.02 seconds with 15 queries.