Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Moving my store to a new web host


tylerwalters

Recommended Posts

I am moving a store to host on my new web host. When I go into the store I get the following error messages:

 

Warning: session_save_path() [function.session-save-path]: Unable to access /home/tylerwwalters/imafrknninja.dreamhosters.com/osc/ in /home/glen/public_html/osc/includes/functions/sessions.php on line 148

 

Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /home/glen/public_html/osc/includes/functions/sessions.php:148) in /home/glen/public_html/osc/includes/functions/sessions.php on line 97

 

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/glen/public_html/osc/includes/functions/sessions.php:148) in /home/glen/public_html/osc/includes/functions/sessions.php on line 97

Warning Warning: The sessions directory does not exist: . Sessions will not work until this directory is created.

 

And when I log into the back office I get the following errors:

 

Warning: session_save_path() [function.session-save-path]: Unable to access /home/tylerwwalters/imafrknninja.dreamhosters.com/osc/ in /home/glen/public_html/osc/admin/includes/functions/sessions.php on line 110

 

Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /home/glen/public_html/osc/admin/includes/functions/sessions.php:110) in /home/glen/public_html/osc/admin/includes/functions/sessions.php on line 67

 

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/glen/public_html/osc/admin/includes/functions/sessions.php:110) in /home/glen/public_html/osc/admin/includes/functions/sessions.php on line 67

 

I moved all the files over and restored the database just fine. They are sitting on a test subdomain until I get it all working. I edited the two configuration files with new pathway information and database information. I changed the session directory in the back office. I don't know why it seems to be looking for /home/glen/public_html/osc/ at all. I figured once I changed that information in the two configuration files it would no longer look for that pathway.

 

I looked in the database to see if I could find anything there but I didn't see anything standing out and I didn't want to mess with it because I was afraid I would mess something up. I have searched all over the forum and the internet and tried anything I could find but I haven't been able to find my exact problem.

 

Any help would be greatly appreciated.

 

Here is my code from the configuration file:

 

// Define the webserver and path parameters

// * DIR_FS_* = Filesystem directories (local/physical)

// * DIR_WS_* = Webserver directories (virtual/URL)

define('HTTP_SERVER', 'http://imafrknninja.dreamhosters.com'); // eg, http://localhost - should not be empty for productive servers

define('HTTP_CATALOG_SERVER', 'http://imafrknninja.dreamhosters.com');

define('HTTPS_CATALOG_SERVER', '');

define('ENABLE_SSL_CATALOG', 'false'); // secure webserver for catalog module

define('DIR_FS_DOCUMENT_ROOT', '/home/tylerwwalters/imafrknninja.dreamhosters.com/osc/'); // where the pages are located on the server

define('DIR_WS_ADMIN', '/osc/admin/'); // absolute path required

define('DIR_FS_ADMIN', '/home/tylerwwalters/imafrknninja.dreamhosters.com/osc/admin/'); // absolute pate required

define('DIR_WS_CATALOG', '/osc/'); // absolute path required

define('DIR_FS_CATALOG', '/home/tylerwwalters/imafrknninja.dreamhosters.com/osc/'); // absolute path required

define('DIR_WS_IMAGES', 'images/');

define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');

define('DIR_WS_CATALOG_IMAGES', DIR_WS_CATALOG . 'images/');

define('DIR_WS_INCLUDES', 'includes/');

define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/');

define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/');

define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/');

define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/');

define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/');

define('DIR_WS_CATALOG_LANGUAGES', DIR_WS_CATALOG . 'includes/languages/');

define('DIR_FS_CATALOG_LANGUAGES', DIR_FS_CATALOG . 'includes/languages/');

define('DIR_FS_CATALOG_IMAGES', DIR_FS_CATALOG . 'images/');

define('DIR_FS_CATALOG_MODULES', DIR_FS_CATALOG . 'includes/modules/');

define('DIR_FS_BACKUP', DIR_FS_ADMIN . 'backups/');

 

and from my admin configuration file:

 

// Define the webserver and path parameters

// * DIR_FS_* = Filesystem directories (local/physical)

// * DIR_WS_* = Webserver directories (virtual/URL)

define('HTTP_SERVER', 'http://imafrknninja.dreamhosters.com'); // eg, http://localhost - should not be empty for productive servers

define('HTTPS_SERVER', ''); // eg, https://localhost - should not be empty for productive servers

define('ENABLE_SSL', false); // secure webserver for checkout procedure?

define('HTTP_COOKIE_DOMAIN', 'imafrknninja.dreamhosters.com');

define('HTTPS_COOKIE_DOMAIN', '');

define('HTTP_COOKIE_PATH', '/osc/');

define('HTTPS_COOKIE_PATH', '');

define('DIR_WS_HTTP_CATALOG', '/osc/');

define('DIR_WS_HTTPS_CATALOG', '');

define('DIR_WS_IMAGES', 'images/');

define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');

define('DIR_WS_INCLUDES', 'includes/');

define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/');

define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/');

define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/');

define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/');

define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/');

 

define('DIR_WS_DOWNLOAD_PUBLIC', 'pub/');

define('DIR_FS_CATALOG', '/home/tylerwwalters/imafrknninja.dreamhosters.com/osc/');

define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');

define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');

Link to comment
Share on other sites

hmmm, interesting.....

 

 

im a noob at this but i think the problem might be with the configuration settings that were installed when you first set up osc.

 

in the instructions it says to delete or rename the install folder after installation of osc so im assuming you can still reinstall osc with the same file again.

 

first, back up your catalog and files...

 

what you want to do is download the same version of osc (unless the install folder is renamed, or if u are like me, have a fresh backup of osc) and take the install folder out of the archive and drop it into your catalog folder. then go into the install folder and click the install.php file and follow the instructions.

 

you might want to read the installation instructions in the manual first as it may contain important information.

 

 

i am not sure if this will help you but i assumed that i would have to do this when i eventually upload my prototype store onto my server.

Link to comment
Share on other sites

jlynskey, I actually didn't do the original install. I am doing all of this for a client. OSC was originally installed by someone else for them and I have just recently taken over. The install folder was deleted after he installed it. If I do a fresh install can I backup more customer and sales information? This is primarily what my client wants to preserve.

 

 

 

Well, I reuploaded some files and got things working a little better but still not working. Now I don't have any errors displayed at the top of the storefront anymore BUT it won't recognize the products. It shows a few on the store front page but when I try to click on one of the product names I get a page saying it doesn't exist. If I try to add to cart I get:

 

New Products

Displaying 1 to 6 (of 24 new products)

 

 

Error!

 

Unable to determine the page link!

 

When I try to go to one of the categories it just reloads the front page.

 

You can see all of these errors at http://imafrknninja.dreamhosters.com/osc/ if you want to take a look.

 

In the back office I still get some errors on the top of the page:

 

Warning: include(includes/languages/english/) [function.include]: failed to open stream: No such file or directory in /home/tylerwwalters/imafrknninja.dreamhosters.com/osc/admin/includes/application_top.php on line 155

 

Warning: include() [function.include]: Failed opening 'includes/languages/english/' for inclusion (include_path='.:/usr/local/php5/lib/php:/usr/local/lib/php') in /home/tylerwwalters/imafrknninja.dreamhosters.com/osc/admin/includes/application_top.php on line 155

 

Any help would be greatly appreciated. I can't launch the new site I am working on until I get this all set up and working.

Link to comment
Share on other sites

I've been to your site and all looks good... You obviously fixed it, can you give me a idea of what you did?

 

Thanks!

 

Jim

 

You can see all of these errors at http://imafrknninja.dreamhosters.com/osc/ if you want to take a look.

 

In the back office I still get some errors on the top of the page:

 

 

 

Any help would be greatly appreciated. I can't launch the new site I am working on until I get this all set up and working.

Link to comment
Share on other sites

I've been to your site and all looks good... You obviously fixed it, can you give me a idea of what you did?

 

Thanks!

 

Jim

 

Hmm, I actually haven't even done anything with it since I posted that. I am out of ideas so I have waiting to see if I get a response here while I start over from scratch on another test site. It is still not working at all for me. When you visited the site did you try to click on one of the products? I still get a product doesn't exist message when I do that. Also, did you try clicking on the category names? When I do that nothing happens. The address in the top bar changes but the page stays the same.

 

I also still have my errors in the back office. I am very curious if these problems did not occur on your computer. That would mean I am looking in totally the wrong area for the problem because in that case it is something to do with me and my computer not the website.

Link to comment
Share on other sites

as far as the customer data, i believe it is located in the mysql database. if the site was originally on a different server (chances are it probably was), then all that data would be stored there. in order to back up that data (if you still have access to it), you need to download a copy of the mysql database stored on that server through the sites admin located on the old server. if that wasnt done, and you no longer have access to that server, than it might not be possible to get that data back. you might have to contact the old server about that one.

 

as far as the products and descriptions, i believe they are stored in mysql as well (or maybe some of that info). the images are stored in the images folder though. there is a module contribution though that allows you to export and backup a data file that contains all the catalog information.

 

http://www.oscommerce.com/community/contributions,500

 

 

the worst case scenario, you might have to re stock the catalog all over again.

 

well, sorry if i couldnt be much of a help, im new at this myself.

Link to comment
Share on other sites

strange???

 

 

i was just looking through the catelog on your site and the products are showing up now. i was getting the same product doesn't exist message, but for some reason, i am not getting that now.

 

strange.

 

well, its looking good. hope it works out.

Link to comment
Share on other sites

strange???

 

 

i was just looking through the catelog on your site and the products are showing up now. i was getting the same product doesn't exist message, but for some reason, i am not getting that now.

 

strange.

 

well, its looking good. hope it works out.

 

I appreciate the feedback. It is still not working for me. This is bizarre. I don't know why it seems to be working sometimes and not others. I have still not seen it working correctly but you are the second person to tell me you saw it working right.

 

I haven't changed anything so I can't be causing it to go back and forth. As far as the database is concerned, I already backed up and then restored the database on the new site. I know the store recognizes the database at least because it will give me a missing database error when it is not there BUT it isn't getting the information off of the database correctly. I have looked through the database via phpmyadmin and confirmed the database is the same on both servers. It just isn't getting the information out of the database correctly. Or I guess from the sound of it it only sometimes is doing it correctly.

Link to comment
Share on other sites

Error!

 

Unable to determine the page link!

 

When I try to go to one of the categories it just reloads the front page.

 

Log in to your osc admin panel >>Configuration>>My Store-- "Use Search-Engine Safe URLs" -> FALSE

Link to comment
Share on other sites

Log in to your osc admin panel >>Configuration>>My Store-- "Use Search-Engine Safe URLs" -> FALSE

 

Thanks for the suggestion. I actually already had that setting set to False, unfortunately.

 

 

I decided to try something different and I installed a brand new oscommerce store then I imported all my data from my old store into the brand new database using phpmyadmin. It worked! All of the products are there. I don't have the same errors coming up that I did. Categories are working fine.

 

BUT I have run into a new problem. When I click Add to Cart on a product I get the following:

 

Warning: payment::include(includes/languages/english/modules/payment/authorizenet.php) [payment.include]: failed to open stream: No such file or directory in /home/phoenixpc/appliedmotor.dreamhosters.com/catalog/includes/classes/payment.php on line 38

 

Warning: payment::include() [function.include]: Failed opening 'includes/languages/english/modules/payment/authorizenet.php' for inclusion (include_path='.:/usr/local/php5/lib/php:/usr/local/lib/php') in /home/phoenixpc/appliedmotor.dreamhosters.com/catalog/includes/classes/payment.php on line 38

 

Warning: payment::include(includes/modules/payment/authorizenet.php) [payment.include]: failed to open stream: No such file or directory in /home/phoenixpc/appliedmotor.dreamhosters.com/catalog/includes/classes/payment.php on line 39

 

Warning: payment::include() [function.include]: Failed opening 'includes/modules/payment/authorizenet.php' for inclusion (include_path='.:/usr/local/php5/lib/php:/usr/local/lib/php') in /home/phoenixpc/appliedmotor.dreamhosters.com/catalog/includes/classes/payment.php on line 39

 

Fatal error: Class 'authorizenet' not found in /home/phoenixpc/appliedmotor.dreamhosters.com/catalog/includes/classes/payment.php on line 41

 

This seems like a totally unrelated error and I think I have seen some other people on the forums mentioning a problem with the payment module so I am going to go look around and see if I can find a solution. I just wanted to make this post to let everyone know where things are standing for me now.

 

If you want to take a look at the site now you can see it at http://appliedmotor.dreamhosters.com/catalog/ . It is on a different site because it was my new test store that I got to work. I was trying to keep them very separate.

 

Thanks again for everyone taking the time to read my problems and offer solutions.

 

Oh, and if you happen to know what to do about this new problem feel free to reply here, haha.

Link to comment
Share on other sites

Alright, everything seems to be working fine now. To solve that last problem in case someone reads this and has the same issue, all I had to do was install the Authorize.net Credit Card AIM under payment modules. Not sure why that was a problem but it seems to have solved it.

 

I am not experiencing any problems at the moment. I am just happy that it is working now.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...