Topic Closed
DVWG
11 Posts

Hi. I'm trying to migrate my website from one server to another.

Firstly I tried the export feature, downloaded the zip file thus created, installed Typesetter on my new server, logged and used the Revert feature.  I was asked for FPT login, If I enter incorrect details, I get a login error but if I enter correct details, when I click continue, nothing at all happens.

Instead I tried the manual way detailed in the documentation - rename data folder in the new install and copy data folder and themes across from old server to new.  This vaguely worked but not really.  I get an error telling me my browser in unsupported, my theme (or any theme) is absent, Photos from the galleries flunk on a 404 and worst of all, I can't log in!

If anyone has a clue what might have gone wrong I'd love to know! The old site is http://dvwg.orgfree.com and the new one is http://www.dvwg.org.uk/

Thanks!

10 months ago#11176

juergen
1.4K Posts
51.3K Downloads
16 Plugins
design, web development & visual effects

Hmm...

Have you also tried to copy the whole site to the new host?

 

edit: and which error do you get when the login fails?

Edited: 10 months ago#11179

DVWG
11 Posts

Hi. I was just going on to try to log in and check the exact error message and it appears my new hosts have inexplicably deleted the whole site.  Yes I did try copying the whole site across and will try that again.

I'm thinking back to the old host and just redirect the .org.uk domain name!

10 months ago#11180

DVWG
11 Posts

OK so I've reuploaded the site

Same issue with the theme (or lack of) and login

The error on login is "Oops, that didn't work, please try again. (Data Not Saved)"

It also comes up with:

Browser Warning

The browser you are using is not fully supported. Please upgrade to one of these more modern browsers.

FirefoxChromeSafariExplorer

Javascript is required to access site administration.

It appears that you are using an incompatible browser. Make sure you're using a modern browser like Mozilla FireFox or Google Chrome and have javascript enabled.

10 months ago#11181

juergen
1.4K Posts
51.3K Downloads
16 Plugins
design, web development & visual effects

Don't know what exactly happens here, but when I visit http://www.dvwg.org.uk, crucial parts in the output are mission, like jQuery and the theme stlyesheet.

You could try to change /gpconfig.php to enable debugging

find the line

define('gpdebug',false);

and change it to

define('gpdebug',true);

or check the Apache error.log if you can access it.

 

 

 

10 months ago#11185

DVWG
11 Posts

Hi Juergen

I've enabled debugging but didn't find any useful info (or not useful to me anyhow!)

I have now wiped the site and reinstalled typesetter. I then extracted the zip file from the previous site export on my local machine and uploaded the contents via FTP. I reset the write access to the data folder and now the site looks like it should.  However, I still get the same "Oops, that didn't work, please try again. (Data Not Saved)" error if I try to log in.  I even tried copying the users.php from the fresh install over the one uploaded from the zip.  That didn't help either!  I have reinstated the one from the zip currently

I also seem to get random "Session expired (timeout)" errors. Any ideas?

Thanks for your continued support!

Cheers

Nick

10 months ago#11189

juergen
1.4K Posts
51.3K Downloads
16 Plugins
design, web development & visual effects

Still looks as if PHP cannot write in the /data directory

Have you tried 777 permissions (to /data and all files and subdirectories)?

 

edit: you can revert gpdebug back to false. The deprecation notices in the message area derive from the Event Calendar plugin - should be adapted to PHP 7+ some time but for now, they're only notices -  not related to the current issues.

Edited: 10 months ago#11192

DVWG
11 Posts

Hi. Solved!

It was not the folders but the individual files therein which I found to have different permissions on the old and new sites.  Having batch corrected these, the site now works, login and all!

Thanks for all your help!

Regards

Nick

10 months ago#11193

DVWG
11 Posts

OK, I thought I was out of the woods with this one.

The site now works fine on the new server.  Our only problem now is that when I upload a new image to a gallery, no thumbnail is created.  I copied all the old images and thumbnails across using FTP and they work fine but if I upload via the Typesetter gallery page, no thumbnails are generated.

All files have 666 permissions and folders 777 permissions.

Example gallery at dvwg.org.uk/test

Any ideas why this might be, anyone?

10 months ago#11203

juergen
1.4K Posts
51.3K Downloads
16 Plugins
design, web development & visual effects

Probably missing PHP GD library.

Or, (unlinkely) too little php memory to process the images.
The latter typically only occurs with little RAM (let's say 24 MB) and large images (> 8 MPixel)

10 months ago#11204

DVWG
11 Posts

Hello once again Juergen and thanks again for your help.

It seems that my new hosts' default php version is 7.2. Reverting to php-v5.6 corrects the problem with thumbnail generation.  I am fine with this for now but my hosts tell me that support for 5.x wil be dropped soon. ls the reason for this likely to be linked to typesetter, or to my hosts, as I shall need to address the matter in the medium term.

Regards

Nick

10 months ago#11205

juergen
1.4K Posts
51.3K Downloads
16 Plugins
design, web development & visual effects

When you add the following lines to template.php (at the top but after the <?php start tag), it will tell you if the GD library is available, and some detailed info in case it is.

if( \gp\tool::LoggedIn() ){
  $gd_info = is_callable('gd_info')) ? gd_info() : 'unavailable';
  msg('gd_info = ' . pre($gd_info));
}

The message will only show up when you're logged in to Typesetter.
I believe your new host doesn't have GD installed.

Edited: 10 months ago#11206

DVWG
11 Posts

You're very good at this!

I added the lines to template.php, loaded the site, copied the output.  Then I logged into cPanel on my hosts and updated from PHP 5.6 to PHP 7.2 and refreshed the site


PHP 5.6
gd_info =
array(
   [GD Version] => (string)bundled (2.1.0 compatible)
   [FreeType Support] => (boolean)true
   [FreeType Linkage] => (string)with freetype
   [T1Lib Support] => (boolean)true
   [GIF Read Support] => (boolean)true
   [GIF Create Support] => (boolean)true
   [JPEG Support] => (boolean)true
   [PNG Support] => (boolean)true
   [WBMP Support] => (boolean)true
   [XPM Support] => (boolean)true
   [XBM Support] => (boolean)true
   [WebP Support] => (boolean)true
   [JIS-mapped Japanese Font Support] => (boolean)false
)

PHP 7.2
gd_info =
(string)unavailable[/CODE]


QED!

I'll email my hosts and politely request implementation.

Cheers

Nick

10 months ago#11207

Topic Closed

 

News

Typesetter 5.1
8/12/2017

Typesetter 5.0.1 is now available for download. 5.1 includes bug fixes, UI/UX improvements, ... Read More

Over 8 Times Faster Than Wordpress
5/3/2016

We've known for a long time that Typesetter is fast. It's something we take pride ... Read More

More News

creisi productions

Dienstleistungen von creisi productions, Luzern (Schweiz): * Konzeption, Planung und Erstellung Ihres Internet-Auftritts * Betreuung und Aktualisierung/Pflege Ihrer Website * ...

Find out more about our Provider Spotlight

Log In

  Register