PDA

View Full Version : Syntax error when upgrading to 1.7.1


mikekim
02-04-2008, 06:18 AM
I tried upgrading from v1.6 to 1.7.1. I followed every step in the guide and I get this error when trying to open ...admin/install.php

Parse error: syntax error, unexpected $end in /home/mikekim/domains/mumuki.com/public_html/admin/install.php on line 140

What could be wrong?

austriaka
02-04-2008, 09:02 AM
did you change anything in install.php code?

Dkozikowski
02-04-2008, 12:51 PM
If you did not change anything, it's likely the file upload was corrupted.

Upload the file again in plain text mode.

mikekim
02-04-2008, 02:30 PM
install.php was not modified. I reuploaded the file and now I get a different error...

ie("MySQL Error: ". mysql_error()); // Add display order mysql_query("ALTER TABLE `{$prefix}config` ADD `display_order` ENUM('default', 'reversed') NOT NULL DEFAULT 'default'")or die("MySQL Error: ". mysql_error()); // Add admin thumb sharpening mysql_query("ALTER TABLE `{$prefix}config` ADD `thumb_sharpening` VARCHAR(1) DEFAULT '0'")or die("MySQL Error: ". mysql_error()); // Add display sort by mysql_query("ALTER TABLE `{$prefix}config` ADD `display_sort_by` VARCHAR(150) NOT NULL DEFAULT 'datetime' AFTER `display_order`")or die("MySQL Error: ". mysql_error()); // Dorop comment_dsbl mysql_query("ALTER TABLE `{$prefix}config` DROP `comment_dsbl`")or die("MySQL Error: ". mysql_error()); // Update thumbnail path mysql_query("UPDATE `{$prefix}config` SET `thumbnailpath` = '../thumbnails/'")or die("MySQL Error: ". mysql_error()); // Update version mysql_query("INSERT INTO `{$prefix}version` (version) VALUES ($newversion)")or die("MySQL Error: ". mysql_error()); $create_status[$lang_create_update_to." ".$newversion] = $lang_updated; } return $create_status; } function UpgradeTo171($prefix, $newversion) { global $lang_updated, $lang_create_update_to; $create_status[null] = null; // Update version mysql_query("INSERT INTO `{$prefix}version` (version) VALUES ($newversion)")or die("MySQL Error: ". mysql_error()); $create_status[$lang_create_update_to." ".$newversion] = $lang_updated; return $create_status; } ?>
Fatal error: Cannot redeclare show_username_password() (previously declared in /home/mikekim/domains/mumuki.com/public_html/includes/create_tables.php:24) in /home/mikekim/domains/mumuki.com/public_html/admin/install/install_functions.php on line 993

Maybe the files were not uploaded correctly?
The only thing I modified from the original files was pixelpost.php in the includes folder. Obviously, I changed the database info. And I changed the filename from pixelpost-sample.php to pixelpost.php.

EDIT: I reuploaded de whole includes folder and it seems to be working now. Apparently something was not uploaded correctly.Thanks for the help!

Dennis
02-04-2008, 05:54 PM
Sure thing, we love to help users who help themselves.