By neville on Friday, 10 June 2016
Replies 23
Likes 0
Views 2.5K
Votes 0
Hello there,
I'm an engineering student doing an internship this summer and I was told to migrate their old joomla! 1.5 to 3.5 as well as their JEvents module.

I followed step by step the Joomla 1.5 to 2.5/3.x Migration but can't seem to make it work.
I did :
- upgrade JEvents to 2.2.9 on Joomla! 1.5 and got the latest version for the 3.5 site.
- drop all tables in the 3.5 database linked to JEvents
- i own the two database so i skipped part 3 (all boxes checked on mysql)
- no plugins so i skipped part 4 too
- my 3.5 Joomla! site is at xxx.net/v3.5 and my 1.5 one in xxx.net/v1.5
=> I changed define("NEWSITEPATH", "../v3.5");

However, when I run upgradejevents.php I get two message boxes ('message successfully sent') but 3 errors :
- Notice: Undefined index: dbprefix in /home/glecam/public_html/stage/v1.5/upgradejevents.php on line 100

- Notice: Undefined index: db in /home/glecam/public_html/stage/v1.5/upgradejevents.php on line 101

- Notice: Undefined index: db in /home/glecam/public_html/stage/v1.5/upgradejevents.php on line 106

As well as 0 _Could not find template "isis".

What did I do wrong during the process ? Do you have any ideas how to fix the problem ?

Thank you in advance for your answers and I apologize for any mistakes made during this writting.
Where is your upgradejevents.php file placed? That error means the system is not able to find the old configuration file.
·
8 years ago
·
0 Likes
·
0 Votes
·
0 Comments
·
Thank you for your quick answer, my upgradejevents.php is placed in xxx.net/v1.5/ where all joomla! directories are as well as the configuration.php
·
8 years ago
·
0 Likes
·
0 Votes
·
0 Comments
·
Let's see what happens then. Please add this code:


$config = var_dump($oldconfig);die('END');


After line 87 which says:


$config = JFile::read($oldconfig);


and you should see a prefix variable there.
·
8 years ago
·
0 Likes
·
0 Votes
·
0 Comments
·
No prefix variable there, I get a :
string(53) "/home/glecam/public_html/stage/v1.5/configuration.php" END
·
8 years ago
·
0 Likes
·
0 Votes
·
0 Comments
·
Sorry I messed it up. Please undo previous changes and apply these:

var_dump($config);die('END');


After line 87 which says:


$config = JFile::read($oldconfig);
·
8 years ago
·
0 Likes
·
0 Votes
·
0 Comments
·
This time, I get an empty text as follows :
string(1665) "" END
·
8 years ago
·
0 Likes
·
0 Votes
·
0 Comments
·
Ok, we are getting there. That means the upgrade script is not able to find your old site configuration file. Can you please check that configuration.php file exists and has proper permissions for the script to read at the path:

/home/glecam/public_html/stage/v1.5/configuration.php

?
·
8 years ago
·
0 Likes
·
0 Votes
·
0 Comments
·
Sorry, I was unavailable during the weekend.
I checked all permissions and granted them all and that didn't seem to solve the problem at all (I have even gotten an "internal server error").
·
8 years ago
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello,

Can you please enable Joomla! Maximum error reporting and try again? Do you get an error message now.

Many thanks
Tony
·
8 years ago
·
0 Likes
·
0 Votes
·
0 Comments
·
Done. I get still the same messages as when I opened this post.
Is there anything that could prevent the script from reading the configuration.php (such as .htaccess) ?
·
8 years ago
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello,

Where did you download the script from? line 100 is:

// options uses prefix and NOT dbprefix

Which is nothing. It should be from:
https://www.jevents.net/download-area/j ... -migration

And to confirm, your J3.x site is within your J1.5 site i.e.:

<!-- w -->www.mysite.com/1.5/3.x/<!-- w -->

And has been setup and is a functional Joomla! Install.

Many thanks
Tony
·
8 years ago
·
0 Likes
·
0 Votes
·
0 Comments
·
I downloaded the script from that address : https://www.jevents.net/download-area/i ... -migration as i was following the migration guide.

My 3.5 joomla! site isn't inside my 1.5.26 one, this is why I changed the define("NEWSITEPATH", "../v3.5") during the step 4 of the guide.

Thank you for your time
·
8 years ago
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello,

Providing it's on the same site it should work. Can you add:

var_dump($this->config_old);die;

After:

foreach ($lines as $line)
{
$this->getConfigField('host', $line);
$this->getConfigField('user', $line);
$this->getConfigField('password', $line);
$this->getConfigField('db', $line);
$this->getConfigField('dbprefix', $line);
}


What does that show
?
Many thanks
Tony
·
8 years ago
·
0 Likes
·
0 Votes
·
0 Comments
·
It's actually the same site at the exception that the database for 3.5 misses all JEvents ones.

After putting your code, i get a :
array(1) { ["driver"]=> string(6) "mysqli" }
·
8 years ago
·
0 Likes
·
0 Votes
·
0 Comments
·
Can you send me FTP and super user logins for both sites so I can run some tests?

Thanks
Tony
·
8 years ago
·
0 Likes
·
0 Votes
·
0 Comments
·
As I am working for a city hall, I don't think that I am able to share these with you as it contains users and and contents of the city.

Is there no other way ? (scrennshots ?)
·
8 years ago
·
0 Likes
·
0 Votes
·
0 Comments
·
Can you send me a backup of your J1.5 site with the likes of akeeba so I can try the migration locally to determine the cause?
·
8 years ago
·
0 Likes
·
0 Votes
·
0 Comments
·
I didn't get how to send files in a private message. Do I have to use html tags ?
·
8 years ago
·
0 Likes
·
0 Votes
·
0 Comments
·
There is no way to send the files in private message. You can either use an FTP account or an external service like Dropbox and provide a link to the backup file, either send them by email.
·
8 years ago
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks for the answer, where can I found Tonyp e-mail address ? (I can't access user profiles)
·
8 years ago
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post