Forums / Cotonti / Support / Trouble upgrading to cotonti with new seditio files?

foxhound
#1 2010-01-24 00:24
I was giving it a new try to see if I could manage to convert my current Seditio website to cotonti but since Seditio has been upgraded lately I think it is causing some issues.

I want to execute the upgrade-seditio12x-to-seditio125.php but everytime I do I get this error:

Warning: require_once(/xtemplate.php) [function.require-once]: failed to open stream: No such file or directory in /home/armaholi/public_html/testers/armaholictest/system/functions.php on line 4969

Fatal error: require_once() [function.require]: Failed opening required '/xtemplate.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/armaholi/public_html/testers/armaholictest/system/functions.php on line 4969


I already have all cotonti files installed but have replaced the database.mysql.php in system with the one from seditio 1.21 (as described here: http://www.seditio.by/page.php?al=migration_from_seditio_to_cotonti) Its in Russian but I am using a translater and Kort assured me this measure works.

Anyone knows what to do? Can I only convert to Cotonti using the seditio 1.25 beta file? And if so, where to get it as it was removed from neochrome.

Added 1 hour 30 minutes later:

Does it matter the Cotonti version installed is the latest? When applying the seditio patch should I go back first to lets say 0.0.3?
<img src="http://www.armaholic.com/datas/thumbs/green-sea-battalion-uniforms-version-03-preview_4.jpg" alt="green-sea-battalion-uniforms-version-03-" />
This post was edited by foxhound (2010-01-25 08:03, 14 years ago)
Trustmaster
#2 2010-01-24 02:09
Those error messages are caused by some variables missing in the datas/config.php:
$cfg['system_dir'] = './system';
Please check datas/config-sample.php for reference and update your config.

foxhound:
Does it matter the Cotonti version installed is the latest? When applying the seditio patch should I go back first to lets say 0.0.3?
You can use files from the latest package. Patching order is important for SQL database only. Normally the SQL upgrade sequence is: 121 => 125 (via that php script) => 0.0.1 => 0.0.2 => 0.0.3 => 0.0.4 => 0.0.5 => 0.0.6 => 0.6.1 => 0.6.2 => 0.6.3. This is related to SQL. You also need sql/patch-0.6.txt when updating from 0.0.5 to 0.0.6:
Copy it to your Cotonti root as patch.php and run in a web browser.
May the Source be with you!
tensh
#3 2010-01-24 02:38
I'd like to ask two questions, I'm also in the middle of migration:

1. After migration I don't see forum activity icons, what might be wrong?
2. It's not that related to migration per se, but I don't like the preview from markitup: it just takes the body of my site, and the preview doesn't look like it should. If there was any means to insert a div into this preview iframe, it would be great.
Trustmaster
#4 2010-01-24 16:44
tensh:
After migration I don't see forum activity icons, what might be wrong?
That's normal if there has been no new posts in your forums for last 7 days.

tensh:
It's not that related to migration per se, but I don't like the preview from markitup: it just takes the body of my site, and the preview doesn't look like it should. If there was any means to insert a div into this preview iframe, it would be great.
You mean something like
<div class="preview">
Preview text here
</class>
Yes, it sounds quite reasonable, I'll add a ticket for 0.6.6.
May the Source be with you!
tensh
#5 2010-01-24 17:49
Hmm, it didn't help: if the message is short, the div reaches only a part of iframe. I digged into the problem deeper: an iframe is considered a separate html page. The whole css stylesheet must be different from the one used on a site, or the iframe must have "body" tags that can have a css class assigned. So not a div, but a body with css class.

echo $style.'<body class="preview">'.sed_post_parse(sed_parse($text)).'</body>';

Now it works. :)
Trustmaster
#6 2010-01-24 17:56
Thanks, this is how we'll do it.
May the Source be with you!
foxhound
#7 2010-01-24 23:26
# Trustmaster : Those error messages are caused by some variables missing in the datas/config.php:
$cfg['system_dir'] = './system';
Please check datas/config-sample.php for reference and update your config.


I am using the config_sample.php as my standard config.php (renamed of course and edited with all necassary info).
So, I double checked with a backup of the original config_sample.php and that part you mention is there as how it should be.
<img src="http://www.armaholic.com/datas/thumbs/green-sea-battalion-uniforms-version-03-preview_4.jpg" alt="green-sea-battalion-uniforms-version-03-" />
Trustmaster
#8 2010-01-25 00:00
And do you still get
Warning: require_once(/xtemplate.php) [function.require-once]: failed to open stream: No such file or directory in /home/armaholi/public_html/testers/armaholictest/system/functions.php on line 4969
That line in functions.php is
require_once $cfg['system_dir'].'/xtemplate.php';
So, this variable seems to be empty. In upgrade-seditio...php the inclusion order is
require_once './datas/config.php';
require_once($cfg['system_dir'].'/functions.php');
Which is weird because functions.php wouldn't be included in this case at all! Is your script from Seditio package? Please check if you have latest Cotonti files.
May the Source be with you!
foxhound
#9 2010-01-25 00:06
The script from seditio I am using is this one:
Upgrade from 121 to 125/126

I should have the latest Cotonti files as a while back I updated to 0.6.5 manually and after that I did not get any messages to update anymore in the admin panel.
But, just to be sure I will download the complete 0.6.5 package and install that. I will be back to let you know if that fixed it.


[edit
Sorry I mean 0.6.5, I have that one

Added 43 minutes later:

Update:
I have replaced all files with the one from the package announced on the homepage and when I extracted that package I noticed in the package is also a file called:
upgrade-seditio12x-to-seditio125.php


So, I after I succesfully applied that patch I used also the one which I downloaded from the neochrome website and now the same error as posted in my first post comes up so I guess there is a problem with that new version of the update script.
<img src="http://www.armaholic.com/datas/thumbs/green-sea-battalion-uniforms-version-03-preview_4.jpg" alt="green-sea-battalion-uniforms-version-03-" />
This post was edited by foxhound (2010-01-25 00:56, 14 years ago)
Trustmaster
#10 2010-01-25 01:31
Now it's clear. You see, Seditio v125 (and 126 of course) was released many months later than Cotonti 0.0.1, which was derived from v125beta3. That's why the file shipped with Cotonti is different. So you need either use the file from Cotonti package (if upgrading to Cotonti from v121), or don't apply this patch at all if you upgrade from v125/126.
May the Source be with you!
foxhound
#11 2010-01-25 17:22
Yep, I see.
Thanks a lot for your help, I appreciate it :)
<img src="http://www.armaholic.com/datas/thumbs/green-sea-battalion-uniforms-version-03-preview_4.jpg" alt="green-sea-battalion-uniforms-version-03-" />