Jump to content

Recommended Posts

Posted

Hey,

so now my first PW site is ready to go to the production server, but something's not working.

I have set up a new database, dumped my local database and imported it.

I then copied all files to the production server, changed the db settings in the config file, made site/assets writable and emptied site/cache.

The .htaccess file is in the root folder.

The site is running, but:

I have a 

$session->redirect($page->children->first()->url); 

in the home template, which is not working (displays a 404 error).

And, even worse, I can't login to the admin page. I assume that this is somehow connected to a session error... but I can't figure out where to look.

I did a fresh install of PW on the same machine and all was good, so it must be an issue related to the transfer.

Any hints are welcome... thanks.

Posted

Maybe you try it with http://mods.pw/Z (Site Profile Exporter Module)

You have to copy a fresh PW-Installation and change the default site against your exported one. Do a normal install run and after that you are ready to go online!

Posted

Did you transfer the .htaccess ? 

I like to transfer all files within a zip & then unpack it on the server. If you're on mac, use the terminal for zipping. ( sudo zip -r zipfile.zip directory )

This way the read/write stays intact and no single file missed issues.

  • Like 1
Posted

@Martijn, I always use .tar of .tar.gz since I've learned tarring respects the permissions. Zip does that too? I have some mixed experiences using zip.

Posted

Hey,

thanks for the replies... I will give the Site Exporter Module a shot when I'm back in the office on monday.

Read/write I will have to do manually as I work on a windows machine (I know, I know... ;) )

Posted

Hm. Does not work either... the Site Exporter Module seems not to work with a multi language site (i get a ton of error messages "unknown field: name1010").

I'll keep trying to figure out how to do it.

Posted

ProfileExporter doesn't work with languages as it was created before language support.

Make sure all files get transfered, empty the session folder and cache folder.

You might want to install a fresh PW on the server, then transfer the needed site files and db. 

Posted

Still not working. Fresh install works ok, I can login as admin. Transferring the site files and db works, even the $session->redirect on the homepage. But as soon as I log out from the admin section, I can't login again and the redirect stops working. Arg.

Posted

Okay... i made some progress, sort of.

I transferred the site to a different server, and the login works now. The redirect again only worked when I was logged in... until I realized that I set the page to unpublished. Corrected that, works now.

I still have to figure out what is not working on my production server... maybe it's a php setting or something.

Posted

Ok, I think I figured out what causes the issue. Seems that the old PHP 5.2.6 on my production server messes up the encryption/hash functions, so the Password::matches() method does not work as expected (on my local machine I have 5.3.5 ...which is rather old, too, as I just realized :-[ ).

I'll try to udpate the PHP version and check again.

  • Like 2

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...