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: ERROR !!!! Help me !!!!  (Read 2192 times)

0 Members and 1 Guest are viewing this topic.

totoki

  • Coppermine newbie
  • Offline Offline
  • Posts: 1
ERROR !!!! Help me !!!!
« on: June 04, 2004, 08:35:15 pm »

I get an error everytime i want to call the install.php


Parse error: parse error in /srv/www/htdocs/web37/html/photo/install.php on line 430

using confixx... apache1.3 ........

the part in the install.php is quite weird:

...

// ------------------------- SQL QUERIES TO CREATE TABLES ------------------ //
function create_tables()
{
    global $HTTP_POST_VARS, $HTTP_SERVER_VARS, $errors;

    $PHP_SELF = $HTTP_SERVER_VARS['PHP_SELF'];
    $gallery_dir = strtr(dirname($PHP_SELF), '\\', '/');
    $gallery_url_prefix = 'http://' . $HTTP_SERVER_VARS['HTTP_HOST'] . $gallery_dir . (substr($gallery_dir, -1) == '/' ? '' : '/');

    $db_schema = 'sql/schema.sql';
    $sql_query = fread(fopen($db_schema, 'r'), filesize($db_schema));

reate_tables()
<- this is line 430. the line where my error is caused!!!!!
    global $HTTP_POST_VARS, $HTTP_SERVER_VARS, $errors;

    $PHP_SELF = $HTTP_SERVER_VARS['PHP_SELF'];
    $gallery_dir = strtr(dirname($PHP_SELF), '\\', '/');
    $gallery_url_prefix = 'http://' . $HTTP_SERVER_VARS['HTTP_HOST'] . $gallery_dir . (substr($gallery_dir, -1) == '/' ? '' : '/');

    $db_schema = 'sql/schema.sql';
 ...
Logged

Casper

  • VIP
  • Coppermine addict
  • ***
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 5231
Re: ERROR !!!! Help me !!!!
« Reply #1 on: June 04, 2004, 08:47:38 pm »

It looks like your file is corrupt.  It also looks like the 1.3beta4 version, which is out of date, and unsupported.
It is not recommended you install this version.  Wait just a couple more days for the stable 1.3 release, or change to version 1.2.1.
Logged
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here
Pages: [1]   Go Up
 

Page created in 0.017 seconds with 14 queries.