Upgrading from 1.3.3 to 1.3.9r172 (SQL bug)

Please post all install related problems here. Visit this forum first for troubleshooting.

Upgrading from 1.3.3 to 1.3.9r172 (SQL bug)

Postby StudioZ on Tue Apr 01, 2008 02:45

Sorry :roll: Been a while… :wink:
While having a day off, I was trying to upgrade on a test copy of my [url]iroutier.com[/url] site (version 1.3.3) to the lastest snapshot (1.5 r115)
I ran in some SQL disparencies. To validate the bug, I installed a fresh 1.3.3 version an tried to run an upgrade to 1.5 r115.
Here's the SQL errors I got:

19__1.3.3_to_1.3.4.sql OK

19__1.3.4_to_1.3.5.sql
ERROR: Duplicate column name 'acat_overwrite' -> ALTER TABLE `phpwcms_articlecat` ADD `acat_overwrite` VARCHAR( 255 ) NOT NULL;
ERROR: Duplicate column name 'acontent_paginate_page' -> ALTER TABLE `phpwcms_articlecontent` ADD `acontent_paginate_page` INT( 5 ) UNSIGNED NOT NULL;
ERROR: Duplicate column name 'acontent_paginate_title' -> ALTER TABLE `phpwcms_articlecontent` ADD `acontent_paginate_title` VARCHAR( 255 ) NOT NULL;
ALTER TABLE `phpwcms_articlecontent` ADD INDEX ( `acontent_paginate_page` );

20__1.3.5_to_1.3.5.1.sql
ERROR: Table '133r115.phpwcms_categories' doesn't exist -> ALTER TABLE `phpwcms_categories` ADD `cat_pid` INT( 11 ) NOT NULL AFTER `cat_type`;
ERROR: Table '133r115.phpwcms_categories' doesn't exist -> ALTER TABLE `phpwcms_categories` ADD INDEX ( `cat_pid` );
ERROR: Table 'phpwcms_log' already exists -> CREATE TABLE `phpwcms_log` (
`log_id` int(11) NOT NULL auto_increment,
`log_type` varchar(255) NOT NULL,
`log_timestamp` timestamp NOT NULL,
`log_message` text NOT NULL,
`log_ip` varchar(50) NOT NULL,
`log_userid` varchar(255) NOT NULL,
PRIMARY KEY (`log_id`)
) TYPE=MyISAM;
ALTER TABLE `phpwcms_guestbook` CHANGE `guestbook_created` `guestbook_created` INT(11) NOT NULL;
ALTER TABLE `phpwcms_userlog` CHANGE `logged_change` `logged_change` INT(11) DEFAULT '0' NOT NULL;
ALTER TABLE `phpwcms_userlog` CHANGE `logged_start` `logged_start` INT(11) DEFAULT '0' NOT NULL;
ALTER TABLE `phpwcms_articlecat` CHANGE `acat_alias` `acat_alias` VARCHAR(255) NOT NULL;
ALTER TABLE `phpwcms_articlecat` DROP INDEX `acat_alias`, ADD INDEX `acat_alias` (`acat_alias`);
ERROR: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'ALTER TABLE `phpwcms_file` DROP INDEX `f_shortinfo`, ADD INDEX `f_shortinfo` (`f' at line 2 -> ALTER TABLE `phpwcms_file` DROP INDEX `f_name`, ADD INDEX `f_name` (`f_name`)
ALTER TABLE `phpwcms_file` DROP INDEX `f_shortinfo`, ADD INDEX `f_shortinfo` (`f_shortinfo`);

21__1.3.5_to_1.5.sql
ALTER TABLE `phpwcms_articlecat` ADD `acat_archive` INT( 1 ) NOT NULL DEFAULT '0';
ALTER TABLE `phpwcms_articlecat` ADD INDEX ( `acat_archive` );
ALTER TABLE `phpwcms_article` ADD `article_archive_status` INT( 1 ) NOT NULL DEFAULT '1';
ALTER TABLE `phpwcms_article` ADD INDEX ( `article_archive_status` );
ALTER TABLE `phpwcms_articlecontent` ADD `acontent_category` VARCHAR( 255 ) NOT NULL;
ALTER TABLE `phpwcms_file` CHANGE `f_cat` `f_cat` VARCHAR( 255 ) NOT NULL;
ALTER TABLE `phpwcms_file` CHANGE `f_changed` `f_changed` INT NOT NULL DEFAULT '0';
ALTER TABLE `phpwcms_file` CHANGE `f_created` `f_created` INT NOT NULL DEFAULT '0';
ALTER TABLE `phpwcms_file` DROP `f_log`;
ALTER TABLE `phpwcms_file` CHANGE `f_longinfo` `f_longinfo` TEXT NOT NULL;
ALTER TABLE `phpwcms_file` ADD `f_copyright` VARCHAR( 255 ) NOT NULL;
ALTER TABLE `phpwcms_file` ADD `f_tags` VARCHAR( 255 ) NOT NULL;
ALTER TABLE `phpwcms_file` CHANGE `f_size` `f_size` INT( 15 ) UNSIGNED NOT NULL DEFAULT '0';
ERROR: Table '133r115.phpwcms_calendar' doesn't exist -> ALTER TABLE `phpwcms_calendar` ADD `calendar_lang` VARCHAR( 255 ) NOT NULL;
ERROR: Table '133r115.phpwcms_calendar' doesn't exist -> ALTER TABLE `phpwcms_calendar` ADD INDEX ( `calendar_lang` );
ALTER TABLE `phpwcms_file` ADD `f_granted` INT NOT NULL DEFAULT '0';
ALTER TABLE `phpwcms_file` ADD INDEX ( `f_granted` );
ALTER TABLE `phpwcms_articlecontent` ADD `acontent_granted` INT NOT NULL DEFAULT '0';
ALTER TABLE `phpwcms_articlecontent` ADD INDEX ( `acontent_granted` );
ERROR: Table '133r115.phpwcms_calendar' doesn't exist -> ALTER TABLE `phpwcms_calendar` ADD `calendar_teaser` TEXT NOT NULL AFTER `calendar_where`;

Hope this may help Oliver to pinpoint/fix the SQL for upcoming versions so we can easily catch up on his work…

Cheers,

Yves
Last edited by StudioZ on Mon May 12, 2008 14:41, edited 1 time in total.
Image
PhpWCMS Evangelist, -- Running phpWCMS 1.4.1, r304 -> Great Version!!!!
User avatar
StudioZ
 
Posts: 774
Joined: Fri May 28, 2004 17:57
Location: Québec, Canada

Re: Upgrading from 1.3.3 to 1.5 r115 (SQL bug)

Postby StudioZ on Wed Apr 02, 2008 20:52

No one else faced this problem?
Anyone? :roll:
Image
PhpWCMS Evangelist, -- Running phpWCMS 1.4.1, r304 -> Great Version!!!!
User avatar
StudioZ
 
Posts: 774
Joined: Fri May 28, 2004 17:57
Location: Québec, Canada

Re: Upgrading from 1.3.3 to 1.5 r115 (SQL bug)

Postby jscholtysik on Wed Apr 02, 2008 21:04

Hi Yves,


I had exactly the same problem. I tried the update on my webserver and on my local machine, both times the same results... :-(

I restored my backup and have now the "old" 1.3.5 again on my webserver... :roll:


Joachim
********************************************************
Was wir alleine nicht schaffen, das schaffen wir dann zusammen... oder auch nicht
********************************************************
User avatar
jscholtysik
 
Posts: 847
Joined: Fri Jan 07, 2005 12:55
Location: Munich

Re: Upgrading from 1.3.3 to 1.5 r115 (SQL bug)

Postby StudioZ on Wed Apr 02, 2008 21:14

Thank you for confirming Joachim :arrow:
jscholtysik wrote:Hi Yves,
I had exactly the same problem. I tried the update on my webserver and on my local machine, both times the same results... :-(
I restored my backup and have now the "old" 1.3.5 again on my webserver... :roll:
Joachim
Image
PhpWCMS Evangelist, -- Running phpWCMS 1.4.1, r304 -> Great Version!!!!
User avatar
StudioZ
 
Posts: 774
Joined: Fri May 28, 2004 17:57
Location: Québec, Canada

Re: Upgrading from 1.3.3 to 1.5 r115 (SQL bug)

Postby DF6IH on Thu Apr 03, 2008 07:50

why not adding:

Code: Select all
-
-- Tabellenstruktur für Tabelle `phpwcms_calendar`
--

CREATE TABLE `phpwcms_calendar` (
  `calendar_id` int(11) NOT NULL auto_increment,
  `calendar_created` datetime NOT NULL default '0000-00-00 00:00:00',
  `calendar_changed` datetime NOT NULL default '0000-00-00 00:00:00',
  `calendar_status` int(1) NOT NULL default '0',
  `calendar_start` datetime NOT NULL default '0000-00-00 00:00:00',
  `calendar_end` datetime NOT NULL default '0000-00-00 00:00:00',
  `calendar_allday` int(1) NOT NULL default '0',
  `calendar_range` int(1) NOT NULL default '0',
  `calendar_range_start` date NOT NULL default '0000-00-00',
  `calendar_range_end` date NOT NULL default '0000-00-00',
  `calendar_title` varchar(255) NOT NULL default '',
  `calendar_where` varchar(255) NOT NULL default '',
  `calendar_text` mediumtext NOT NULL,
  `calendar_tag` varchar(255) NOT NULL default '',
  `calendar_object` longtext NOT NULL,
  `calendar_refid` int(11) NOT NULL default '0',
  PRIMARY KEY  (`calendar_id`),
  KEY `calendar_status` (`calendar_status`),
  KEY `calendar_start` (`calendar_start`),
  KEY `calendar_end` (`calendar_end`),
  KEY `calendar_tag` (`calendar_tag`),
  KEY `calendar_refid` (`calendar_refid`),
  KEY `calendar_range` (`calendar_range`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;


and redoing the setup ? :mrgreen:

Didn't try, but if this calendar is right things should go well
http://www.phpwcms-docu.de/download-dev-versions.phtml --> playing 309
http://jgbm.de/bensheim_2009.phtmlWir haben uns getroffen und die Freude am CMS ist wieder steil gestiegen, Bilder folgen !!
How to code my own Module? -> http://jgbm.de/Module-creation-guide-1.phtml
User avatar
DF6IH
 
Posts: 2644
Joined: Mon Jan 10, 2005 17:10
Location: Hoffenheim (fast)

Re: Upgrading from 1.3.3 to 1.5 r115 (SQL bug)

Postby StudioZ on Fri Apr 04, 2008 00:23

DF6IH, thanks for your suggestion…
Although… I did tried this at first but there is more than this… :roll:
There is the also the "phpwcms_categories' doesn't exist" to fix and some altering to fix in the source to make sure everyone can easily upgrade to the latest revision(s) 8)

Cheers,

Yves
Image
PhpWCMS Evangelist, -- Running phpWCMS 1.4.1, r304 -> Great Version!!!!
User avatar
StudioZ
 
Posts: 774
Joined: Fri May 28, 2004 17:57
Location: Québec, Canada

Re: Upgrading from 1.3.3 to 1.5 r115 (SQL bug)

Postby Oliver Georgi on Fri Apr 04, 2008 07:42

r115 is no official release and was not recommend for public update even you know what you do! A default install does not fail.

And r115 is not supported!

Oliver
Oliver Georgi | phpwcms Developer
Hegerplatz 7, 06846 Dessau, Germany
phpwcms | webverbund.de | LinkedIn | XING | Hot stuff
User avatar
Oliver Georgi
Site Admin
 
Posts: 6319
Joined: Fri Oct 03, 2003 20:22
Location: Dessau

Re: Upgrading from 1.3.3 to 1.5 r115 (SQL bug)

Postby Oliver Georgi on Fri Apr 04, 2008 07:46

And hey - where is the problem to make an own upgrade sql that solves your problem based on the error messages in combination with default dump and give it back...

Oliver
Oliver Georgi | phpwcms Developer
Hegerplatz 7, 06846 Dessau, Germany
phpwcms | webverbund.de | LinkedIn | XING | Hot stuff
User avatar
Oliver Georgi
Site Admin
 
Posts: 6319
Joined: Fri Oct 03, 2003 20:22
Location: Dessau

Re: Upgrading from 1.3.3 to 1.5 r115 (SQL bug)

Postby claus on Fri Apr 04, 2008 09:08

Oliver Georgi wrote:r115 is no official release and was not recommend for public update

We will become very unhappy when trying to start any kind of support for these interim solutions. As far as I can understand this whole procedure with SVNs it's a sneaking into Master's Kitchen only and nothing else. Until no official "go" is uttered we have to handle all these aforementioned "problems"...
So OG is right while asking
Oliver Georgi wrote:....make an own upgrade sql that solves your problem based on the error messages in combination with default dump and give it back...

This for sure will be of some help :wink:
Nevertheless I personally would really like to be able to "get the whole picture"... of what's going on in this kitchen :oops:
The following (and the previous) wouldn't have happened if there had been a GURM!
update process in progress 90% - Please stand by.. don't hit any key. Hold your breath ... until the day when pigs can fly ...
User avatar
claus
 
Posts: 2733
Joined: Mon Jan 10, 2005 16:29
Location: germany / outdoor

Re: Upgrading from 1.3.3 to 1.5 r115 (SQL bug)

Postby Cipolla on Fri Apr 04, 2008 12:50

Oliver,

r115 is no official release and was not recommend for public update even you know what you do! A default install does not fail.


First of all, i can understand your point of view, but Yves posting was for my understanding only a hint for debugging. It wasn´t a "Hey Oliver, help me to get things work, there are many problems"

On the other hand i don´t know if it is a good idea to discuss bugs or unclear things relating the "kitchen preview" in a posting placed here and there in this forum. Ok, now one should keep those things to himself, but maybe a "BETA AREA" in this forum could be a good idea to talk about previews or unsupported updates.

I believe there are many newbees here which are very insecured because of those treads regarding phpWcms bugs in previews.

Just wanted to throw in my two cents.
...
User avatar
Cipolla
 
Posts: 303
Joined: Sat Feb 16, 2008 19:39
Location: Muppet Show

Re: Upgrading from 1.3.3 to 1.5 r115 (SQL bug)

Postby StudioZ on Sat Apr 05, 2008 01:00

Oliver Georgi wrote:And hey - where is the problem to make an own upgrade sql
that solves your problem based on the error messages in combination with default dump and give it back...
Oliver

Oliver by no means I wanted to upset you and/or critic your work :shock: :shock: :shock:
In fact, what I seen in r115 is very promising and I was willing to beta test it live.
Maybe you should relax a bit Oliver :?: You seem to be a bit on the edge :wink:
Just like Cipolla understood it… I just wanted to bring to your attention these SQL things that
will need to be debug at some point before you go too far with other SQL upgrades.
These fixes could be done by myself or anyone else here who can find the time for it.
Right now I am really not sure when I'll be able to spend time on this like I did before
when fixing the SQL upgrades to go from 1.2.6 to 1.3.3 but… hmmm… we'll have to see…

Take it easy Oliver :wink: 8)

Yves
Image
PhpWCMS Evangelist, -- Running phpWCMS 1.4.1, r304 -> Great Version!!!!
User avatar
StudioZ
 
Posts: 774
Joined: Fri May 28, 2004 17:57
Location: Québec, Canada

Re: Upgrading from 1.3.3 to 1.5 r115 (SQL bug)

Postby pepe on Sat Apr 05, 2008 10:37

Hi Yves,

i think, the best is, to see those new revisions as experimental versions. And so i did.
After 4 trials to make an update... and failed 4 times... i decided to make only fresh installations with it.

And that's, what works very well.

So i can find out, what's new, what's working ond where Oliver is juggeling.
It's a little bit like "looking over my neighbors fence" :lol:

And a second aspect of all those installations, i can see, that something is going on with phpwcms ... :lol: :P :lol:
mfG pepe

Image

Natürlich lese ich hier immer noch mit (ist ja nicht mehr so viel), gespannt darauf, was noch kommen wird... und wann!
Denn phpwcms ist - nach wie vor - für den Benutzer ein TOP CMS, welches einen Vergleich nicht scheuen muß!

phpWCMS Installation + Quick-Start + Tuning | some Replacement-Tags | free-X templates (4.000 downloads/1.anno)
User avatar
pepe
 
Posts: 2876
Joined: Mon Jan 19, 2004 12:46
Location: Mülheim-Ruhr, Germany

[SOLVED] Upgrading from 1.3.3 to 1.3.9r172 (SQL bug)

Postby StudioZ on Mon May 12, 2008 14:35

SOLVED, at :
viewtopic.php?f=1&t=17163

Cheers,

Yves
Image
PhpWCMS Evangelist, -- Running phpWCMS 1.4.1, r304 -> Great Version!!!!
User avatar
StudioZ
 
Posts: 774
Joined: Fri May 28, 2004 17:57
Location: Québec, Canada


Return to phpwcms Installation Troubleshooting English

Who is online

Users browsing this forum: Alexa [Bot] and 0 guests