Problem with moving opencart website to new domain/server - php

Hi i moved my opencart website to new domain and theres huge problem i cant seem to figure out, i cant see any images, and i cant see translations on a lot of text.
Website is using template.
I did all the steps correctly:
export database
import to new database
changed configuration in config.php and admin/confing.php to new database
uploaded files to new server
Site is running on new domain but i cant see any images, and i cant see translations on a lot of text.
This is new domain: https://ecogreenbags.eu/
This is old one so you can see how it should look like: https://green-bags.sk/
Database is obviously running because all products are there, i can enter admininstration, all orders are there and everything, just not images and that text. I doublechecked if there is uploaded the language folders with that translations, everything is there, FTP is EXACT CLONE of old one except changed config.php files
I have no idea where is the problem. Any ideas ? Thanks a lot

Please confirm to recheck following two variable value is correct in both config file.
\config.php and \admin\config.php
define('DIR_IMAGE', '/home/example/public_html/opencart/image/');
define('DIR_LANGUAGE', '/home/example/public_html/opencart/catalog/language/');
you may double check your correct document root path in server.
Get correct doucment root path by echo following in config file.
echo $_SERVER["DOCUMENT_ROOT"];

Double check your config.php files both in root of site and folder admin. Its most likely to be a typo in the config.php in the absolute path to images.
May also be worth checking the file permissions\ownership of the image folder\files.

Related

Xampp htdocs folder doesn't reconize when i change files

I don't know if this has been already asked, i searched almost everywhere i can think of, but i didn't find a solution.
My problem consists in:
I start xampp panel(which is saved in E disk and not the main one), i start Apache and MySQL, than i have saved in a folder called "site"(inside htdocs)some php files with more folders like: css, javas, ect.
What is happening is that every time i modify any file that is inside a folder in the folder "site", the localhost/site, doesn't recognize the change, but once i change the folder name ("site"), into something else and access it again (localhost/anothername), the exact file/files i changed are recognized and work.
If from here i try to change another file that i didn't modify before i have to rechange the name again and so on.
Thank you very much!

Upload opencart site to server

After uploading the opencart site from local machine to server I am unable to set the base url of the site.
I have uploaded all the files and database. Made changes to both the config.php and admin/config.php to reflect new domain path.
I have not done any hardcoding so there are no issues of absolute path in website.
However in all the menu items I still get the "localhost/Directory" path. Where should I make changes to update this base url path?
The change must be in database only but I dont know which table..there are hundreds of tables. :-(
Actually only the menu items are not linking properly. I am using the journal theme from themeforest if this matter.
You could possibly check for a path in PHPmyAdmin I had to update like this before using CMS's when transitioning from localhost to server and the config file didn't make the change to the database.
I solved the problem myself. I did a fresh install of opencart on the server. Uploaded and overwrite the files to the server from my machine. Deleted the fresh database and imported my database on it. Got it solved!!
Jonid Bendo's comment also work's !!
Sometimes clearing the themes cache also works.

transfering wordpress site form one localhost to another localhost

I'm trying to move wp site from localhost on my work computer to my personal computer. I have followed these steps:
Copy wp-content folder
Export database
Import database
Paste wp-content folder
Configure config.php
It had copied all the themes and plugins, but content (images, text, pages etc) doesn't display. Did I skipped something?
You shouldn't transfer the wp-content folder as a whole, wordpress won't like it and wont find any of the posts/images within it.
If you transfer over just the theme and plugins first so all the files are in place and then do the import of the database you may have more luck.
The only problem will be the images, which may go missing due to the fact that they cannot be downloaded via localhost. Sadly the only way i can think of fixing that is through going through each page and re-adding them.
If the URL was changed:
http://codex.wordpress.org/Moving_WordPress
I would recommend to check wp_config table in the database for the following entries:
option_name=’siteurl‘ or option_name=’home‘
and check if the values are correct for the new installation.

Opencart Images not displaying

Ok so i moved hosting. Everything is working great except i cant get images to show up on the site. The only place that they show up is when you are editing the product on the image tab. No images are displayed on the list of products nor on the front end.
I have no idea what is going on here. If it helps at all when i inspect elements on the list of products page the "src" is blank but has alt text. But on the front end there is just nothing, no image tag at all.
I am not really sure where to start on this one. I have tried changing the path on the
define('DIR_IMAGE', BASE_DIR.'/image/');
To the absolute path on the server to the image directory, but that didn't help.
I have tried a few things that i found on google like deleting the cache directory.
Any ideas on something anything to try to resolve this issue?
The easiest way to make sure all of your details are correct is to do a "fresh install" to generate the configuration files again. Here's what you need to do
Back up your config.php and admin/config.php files to config.backup.php
Create a new database to use (this ensures that your original remains and can be used once your configs are created)
Clear the contents of your original config.php files and make sure they are writeable
Go to http://yoursite.com/install and fill in the details for the site, including the new database details NOT THE ORIGINALS
Once install is completed, Open the config.php and admin/config.php and change the database details at the bottom to match those of the originals in config.backup.php
Delete the new database and remove the config.backup.php files if everything has successfully been restored
If it were me and you would like your site not to go down. I would simply do a search on the code base for your old domain, and more importantly do a search in mysql for instances of your old domain.
Searching your codebase is easy using grep on command line. If you are not comfortable with command line download Sublime Text editor, download your code base and use Sublime to very quickly search the entire codebase.
Use phpmyadmin to search your database and use this snippet to replace your old domain with the new one: http://www.mediacollege.com/computer/database/mysql/find-replace.html
Hope that helps
I would like to point out you should always back up your website before doing this sort of change (that includes your database), and always test on a development instance where available!

Drupal move from subdirectory

I had a drupal site completely working at www.example.com/example. I copied the files to the root folder in attempt to simply have the site held at www.example.com yet now it is asking for a new install and I have no idea why, I expected to have to make some changes, but not to be confronted with the request of a new install. I have heard it may be something to do with changing the base url but I'm not sure. Can someone please help me?
Thanks heaps
Assuming your site is on a linux based hosting, most probably your problem is divided into two parts
Problem 1) The settings file "sites/default/settings.php" is read only so when you moved the site to another directory it most probably didn't move this file because it is read only, and that was pointed out by another person
Problem 2) The second problem may be the result of enabling clean urls and not moving .htaccess file; when you moved the site to another directory you may have left out the ".htaccess". Check to see if it is moved to the new directory.
Another possibility is that you have a modified .htaccess to make the subdirectory work, in that case you may want to get a fresh ".htaccess" file from here :
http://code.google.com/p/drupalgooglecode/source/browse/trunk/.htaccess

Categories