#1 2014-06-17 14:13:32

mrGarvin
Member
Registered: 2014-02-03
Posts: 8

Problem moving site from one computer to another

Hi guys.

I'm having trouble moving my installation between computers. Every time I try to move the site by copying all the files and replacing the database I get behavioral problems. Often having to do with languages.

In my latest attempt I tried to move the whole shebang from my iMac to my Macbook and ending up with two problems:

1. The charset seems to change...or rather all specific letters like the swedish Å Ä Ö gets messed up. But the charset on the page and the collation/encoding in the database are the exact same (and the data in the databases are identical).

2. I get 5 messages about PHP errors on top of every page. The message is

Message: Undefined offset: 7
Filename: Libraries/Pages.php
Line Number: 232

And this is what it looks like:
example of errors

I have updated the languages, done all the system tools check and even tried re-saving the pages/articles.

The navigation works, and the pages show up, but with the faults described above.

The environment on both my computers are the same. MAMP version 2.05

What should I look for, or is my approach not doable? (that is replacing all the files on the server and replacing all the tables in the database with the originals from the working computer)

Last edited by mrGarvin (2014-06-17 14:19:59)

Offline

#2 2014-06-17 16:18:15

mrGarvin
Member
Registered: 2014-02-03
Posts: 8

Re: Problem moving site from one computer to another

UPDATE: I have now tried to do a fresh install. Everything looks fine, but when I import the data from the other computer I get the errors back.

There must be something going wrong with the export from the database I guess...but the info look identical when I look inside the structure and the data of the two databases.

I am using Sequel Pro as the database viewer/tool.

This makes me nervous about going public and moving the system to the actual site.

Last edited by mrGarvin (2014-06-17 16:19:30)

Offline

#3 2014-06-19 03:05:01

ukyo
Community Manager
From: Marmaris - Turkey
Registered: 2010-05-19
Posts: 734
Website

Re: Problem moving site from one computer to another

Normally my work procedure is : work on local machine and when website done for production upload website to host.

- Make a database backup
- Install database to host
- Upload files to host (change database settings for host)

and until now from ionize 0.9.3, i don't have a problem like you said. I think you missing something. Check your database encoding and check error logs please.


<ion:ukyo from="Turkey" />
Ionize CMS Türkçe Dil Çeviri Dosyaları | My Github Repositories
Please send your first message to a forum section, not forum users or administration.

Offline

#4 2014-06-24 11:53:03

mrGarvin
Member
Registered: 2014-02-03
Posts: 8

Re: Problem moving site from one computer to another

I will have a new go at it, but can't see where I go wrong since I use the same procedure when creating a new site. The database encoding should be the same (and seems to be so). But will try with an other way to export....

I'll be back as someone said :-)

Offline

#5 2014-07-09 12:35:05

Michel-Ange
Ionize Core Team
From: Paris, France
Registered: 2010-03-22
Posts: 927
Website

Re: Problem moving site from one computer to another

Did you tried to execute the URL correction tool ?

I looks like your language table and your URL table are inconsistent.

Pages cannot find the URL supposed to be linked to this language. Strange.


Inspiration & Innovation : Websites by Partikule, Agence Web Paris

Offline

#6 2014-08-07 09:59:35

mrGarvin
Member
Registered: 2014-02-03
Posts: 8

Re: Problem moving site from one computer to another

Hi Michel-Ange.

Yes, I've tried every correction tool there is in the system. Updated the languages and so on... I really can't find the problem. Could something in the content be screwing up the encoding when I import the database? But is sounds unlikely since it works fine in the original installation.

Offline

#7 2014-12-11 16:26:46

KoniRus34
Member
From: Italy - Russia
Registered: 2014-12-11
Posts: 8

Re: Problem moving site from one computer to another

I think it's caused by your PHP version... in my case 5.3.3 ...

Last edited by KoniRus34 (2014-12-11 16:27:04)

Offline

#8 2015-02-12 11:49:06

KoniRus34
Member
From: Italy - Russia
Registered: 2014-12-11
Posts: 8

Re: Problem moving site from one computer to another

I solve this problem in file libraries/Pages.php (row 233?) with @

$url = ($index !== FALSE) ? @$page_url_path[$index] : '';

Offline

What's Ionize ?

Ionize is an Open Source Content Management System created by webdesigners for webdesigners.

Created and maintained by Partikule and Toopixel, Ionize wants to be the easiest and most powerful CMS.

Can I help ?

Because talent is nothing without involvement, we are looking for motivated coders and webdesigners to join the project team.

Resources

Website : ionizecms.com
Documentation : doc.ionizecms.com

Development : Ionize on GitHub
Translations : Ionize Translations