Im running wordpress woocommerce website on localhost via Wamp Server. The media library once worked fine but right now, every time I upload a new picture, the thumbnail doesn't show but when I open the url of the file location, the picture shows well.
I tried deactivating all the plugins but the issue is still the same.
I also tried other solutions like reuploading my .htaccess but its not working.
Please help me out.
Click on Inspect Element and check if the path of your images are correct or not. If there something wrong with the path of the images, then fix with inserting the images into the folder C:\wamp\www.
This way your Wampserver will find the images.
Step 1 Login to Wordpress Backend
Step 2 Go to > Settings > General Settings
Step 3 Supply WordPress Address (URL) & Site Address (URL) to your local website URL i.e. http://localhost:8080/furniture and Save changes
Step 4 Go to > Settings > Permalink Settings scroll down to Product permalinks and select Shop base and Save changes
Hard refresh and Test your product page it should have to work normally.
If above solution is not working for you then you can disable all plugin and use default theme might be incompatible plugin or incorrect file permissions are the primary causes here as I have seen you're not able to see Grid View properly.
Related
I just uploaded a wordpress site using filezilla to a live server. Everything is ok except for the images. All image links are broken. I then reuploaded the whole upload folder but nothing changed. I also checked the file and folder permissions set to the upload folder and found it to be 777. Any help is appreciated.
First, make a backup of your website (files and database)
Then, install this plugin.
After installing the plugin, look for "Tools > Search & Replace" in the Wordpress admin menu.
In the "Search for" form, enter localhost/127.0.0.1. In the "Replace with" form, enter your new domainname.
I faced a similar kind of issue when i hosted my wordpress website from localhost to live url.. The images were not loading since all of them were having localhost links..
So I did the following to solve the issue:-
Opened the database and edited table wp_options - set the 'siteurl' and 'home' rows value to your live server URL.
Open your wordpress panel and install plugin - Velvet and activate it.
Go to tools section of wordpress -> click "update urls", and the plugin page will open.
Enter your old url (it may be your localhost, or any old domain where your site was previously hosted) and new url (your live server URL).
Check all the checkboxes below it, and hit the "Update URLs NOW" button.
Optional: If you used elementor to develop some of your pages, go to Elementor section of wordpress -> Tools -> "Replace url" tab, and repeat step 4 instructions here.
After doing this, 95% of the images of my site were fixed, but however logo and slider images were still not fixed.. So for that I had to go to "customize theme" option and re-select the logo and slider images..
Done.
Give website name:
Have you update permalink??
So we have a dedicated server and we installed a single instance of Wordpress on this URL (using URL as example): AnytownBoatTours.com. Started themes and plugins etc... and the owner said the URL needs to be the other way around: BoatToursAnytown.com.
So, we pointed the new domain to existing instance of WordPress (since they are on the same dedicated server), and then I followed wordpress instructions by going into Settings -> General and changed both the Wordpress Address (URL) and Site Address (URL) to BoatToursAnytown.com (with no "/" at ending on either).
So, everything appears to be fine. The Wordpress site seems to have accepted the URL change and I've logged in and made changes to the home page and theme. Then I came across a weird error with sub pages I'd created before the switch. The error occurs in all pages except the home page. When I click on any of the pages except home and edit them, when I hit update or preview buttons, the preview goes to a 404 message. I thought that is weird so I started looking around.
I discovered that the content directory is still pointing back to the old URL. The Wp-config Location is: D:\Websites\AnytownBoatTours.com/wp-config.php and the Content Directory is: D:\Websites\AnytownBoatTours.com/wp-content
So obviously the change in General Settings didn't work. I was hoping someone could help me figure how to go from here.
Thank you
Update your permalinks even if it's not changing them, you just need to click the save. Settings > Permalinks and press Save Changes. This will more then likely fix the issue as I had to do it when I recently migrated a clients site.
I was in the middle of migrating a local WP site to a live server and came across a problem.
I edited my WP config file and uploaded it along with the rest of the WP files. I also uploaded the mysql database through phpMyAdmin.
Once i tried to test the site i got an error message "The page isn't redirecting properly". I then, mistakenly, logged in to the admin area and in the Settings > General tab I deleted the localhost part of the URL. Now I'm unable to log back in to the WP admin area.
EDIT
To clarify, my major problem is that i can no longer log in to the wp admin area because of something I've done. The steps i took to get to this point were:
Backed up WP using the BackUpWordpress plugin
Edited back up wp-config file with define('WP_HOME','http://example.com'); define('WP_SITEURL','http://example.com');
Created mySQL database through DreamHost
Changed database info in wp-config file
Uploaded wp files (not including mySQL backup) to my url using Filezilla
Imported mySQL database backup to DreamHost
I then checked the site from my browser, an error message said too many redirects occurred
From the wp admin area i went to Settings > General and deleted the localhost part of the url that was displayed.
I believe it's due to the previous step I'm now unable to access the wp admin area at all.
I need a way of getting back into the admin area
You can also edit those options within phpMyAdmin. Go to wp_options and locate siteurl and home. Make sure the URL matches your site URL.
You can also edit the site URL in your wp-config.php.
Add these lines somewhere above the /* That's all, stop editing! Happy blogging. */ line.
define('WP_HOME','http://my-site.com');
define('WP_SITEURL','http://my-site.com');
This should overwrite your database settings.
I believe the problem is that studiomed.co.uk is permanently redirected (301) to www.studiomed.co.uk and www.studiomed.co.uk is permanently redirected (301) to studiomed.co.uk
Login to your Dreamhost account go to Domains->Manage Domains and choose one of the three options there are in "Do you want the www in your URL?".
After that use an ftp program to download the .htaccess file that exists in your root installation of wordpress and open it with your favorite editor. Check if you have any kind of redirection in the .htaccess file.
Which version of WordPress do you use?
Can you list the plugins you are using?
Have you gone through the basic WordPress troubleshooting steps?
flush any caching plugins you might be running, as well as server
and/or browser caches.
deactivate all plugins to see if this resolves the problem. If this
works, re-activate the plugins one by one until you find the
problematic plugin(s). Sometimes, an apparently inactive plugin can
still cause problems.
If you can't get into your admin dashboard,
try resetting the plugins folder by FTP or PhpMyAdmin (read
http://codex.wordpress.org/FAQ_Troubleshooting#How_to_deactivate_all_plugins_when_not_able_to_access_the_administrative_menus.3F
if you need help).
switch to the Twenty Eleven theme (depends on your WordPress version) to rule out any theme-specific problems.
If you can't log in to change themes, you can remove the theme folders via FTP so the only one is twentyeleven. That will force your site to use it.
manual upgrade. When all else fails, download a fresh copy of the latest.zip file to your computer, and use that to copy up. You may need to delete the wp-admin and wp-includes folders on your server. Read the Manual Update directions first: http://codex.wordpress.org/Updating_WordPress#Manual_Update
check the Master List to see if you're experiencing a known issue
Login to your wordpress dashboard (wp-admin) and go to Settings->Permalinks, select Default and save changes.
Update all urls(path) using this querys then check:--
Use this querys for change all urls(path) for db then check
UPDATE wp_options SET option_value = replace(option_value, 'http://live_ste_path.com', 'http://localhost/local_site_path') WHERE option_name = 'home' OR option_name = 'siteurl';
UPDATE wp_posts SET post_content = replace(post_content, 'http://live_ste_path.com', 'http://localhost/local_site_path');
UPDATE wp_postmeta SET meta_value = replace(meta_value,'http://live_ste_path.com','http://localhost/local_site_path')`
[WSOD RESOLVED]
Since I could not find any solution to my problem by googling around, a crucial tracking info I finally found in WP error logs. So I would recommend to inspect logs before spending to much time looking for a proper answer by google.
After migration from an old web host to a new one, in my multisite environment all sites were working. Also, I was able to administer all subsites - but one! Trying wp-admin login to that site led me to fatal white screen. Without any message or any indication about the reason. And the culprit was corrupted file /public_html/subsite-x/wp-admin/admin.php. I really could not understand how that happened, just might suppose it appeared somehow while transferring files (FTP) from old host to a new one.
Ok I didn't see this anywhere and Google isn't helping it keeps directing me how to create a folder.
So my issue is this, I have a login page that I'm trying to test. When I hit f12 to show the page in a browser (on my localhost) some how dreamweaver is creating a new folder within a folder and placing the file I just saved in a completely different folder in there and renaming the file with random characters.
so in effect it is doing this :
file name is login.php, folder location is admin, so my page should show as this in the url
admin/login.php
but instead it is showing this
Mysite/Mysite/admin/KOyilwoe.php
is is actually creating these folders as well so it is showing in my dreamweaver folder structure as
Mysite/Mysite/Mysite/admin/KOyilwoe.php
Of course when it does this it breaks all links to images and any connections I'm trying to make to the database.
I am using Dreamweaver CS4 does anyone know why it would do this? I have tested many sites before on my localhost and never had this issue until this website. Is this possibly a setting in dreamweaver itself or would a javascript be causing it? I did try removing the javascript and it was still creating the new folders.
So I posted a similar question on Adobe's forums and they responded with this and yes it does fix the issue.
Dreamweaver creates a temporary page. It's created specifically for previewing.
You "should" be able to turn it off in the preferences...
Edit > Preferences >select Preview In Browser > uncheck the "Preview using temporary file" checkbox
EDIT: OOps, forgot the Preview In Browser selection.
I am developing a wordpress site. I uploaded the files(wordpress) to my live host. So my new live url site for my wordpress like this sample url http://mywordpress.com/, the display seems to be fine, but when I start browsing the menus page will be redirected to my local server, instead of http://mywordpress.com/about-us/ it went to my localhost like http://localhost/mywordpress/about-us
So when I checked the page source all the links including the stylesheet is link to my local. even though I use this code
<link href="<?php bloginfo('stylesheet_url'); ?>" rel="stylesheet" type="text/css" media="all" />
Its kinda weird... but anyone knows how to configure this?
It sounds to me like your database may be using old values for your url's.
For a quick solution that may or may not solve your issue, try http://www.velvetblues.com/web-development-blog/wordpress-plugin-update-urls/ . It's a great plugin. If not... here are my bullet proof instructions for transferring from local to online.
I've migrated from local to online hundreds of times and I think most tutorials on wordpress migration are overly complex. Here's my method (assuming you already have a fresh wordpress installation and database)
Go to phpMyAdmin for your local server and export your database (but not as a file)... just get the straight SQL text and copy it.
Paste that code into dreamweaver, text editor, coda or any plaintext word processor that can do a search and replace. Then search for "http://MyOldWordpressUrl.com/wordpress" (make sure there is NO slash after the final directory) and replace with "http://MyNewWordpressUrl.com/wordpress". Obviously don't include the quotation marks. Make sure your old wordpress URL is correct. You can double check in admin -> general settings.
Get into your control panel for your online hosting and go to the database for your new wordpress install (this should be a brand new installation where you haven't yet created any posts or input any data-- just what wordpress gives you). Export the database and save it as a file (just in case). Now drop all the tables. Click YES when it asks you if you're sure. Then click on the SQL icon (should be in the upper left hand corner of the left sidebar). This should open a new window. Now paste in your code from step 2 and click GO.
Transfer your theme folder via FTP.
Right now you should go to the new wordpress install's wp-admin. Your same User Name and password will apply. Go to "add a post" and add any image from your computer... wait for it to upload, now delete it. This step is to have the server create the uploads folder to be 100% certain is registered by wordpress and set to the correct permissions. I've wasted hours before by transferring the uploads folder directly by FTP, so don't do it.
Step 5 created an uploads folder in FTP, now you can drag and drop the contents of your uploads folder (ie 2008, 2009, 2010, 2011 + subfolders) into the uploads folder. There should be nothing in it except an empty folder (because you deleted that file in step 5), so it's fine to overwrite if it warns you.
The only remaining step is to transfer your plugins. You can do it via FTP, although it's probably faster to add them directly through the Wordpress admin via "add plugin" and search + install.
Oh yeah, now go to permalink settings and click "default", update, then choose whatever you want-- you need to refresh permalinks to.
That's foolproof... but you have to be somewhat familiar/confident using PHP myadmin. Although I've founds some widgets do not transfer via this method, so you may have to drag and drop some widgets again (appearance -> widgets) after the transfer.
For clarification on step 1 and step 3, see the diagrams here: http://webdesignerwall.com/tutorials/exporting-and-importing-wordpress ... but the rest of that WDW tutorial is guaranteed to give you problems at somepoint.
As mentioned in the comments, you will need to browse to the Settings->General page and update your site URL and wordpress URL.
If you can't get to the Settings page because you get redirected to your local site (this has happened to me before), you may have to edit the values in mysql directly, which isn't too bad, really.
The settings are located in the wp_options table under the option_name "siteurl" and "home". If you need more help with that, post a comment.
You may need to refresh your permalinks: see step 5 below. Official documentation on this subject may clear some things up as well.
Steps to move a local WordPress install to a live site
This is my method, and it has worked every time. Assume local WP install is at http://localhost/wordpress/ with WP database named wordpress and live WP install is at http://livesite.com/ with WP database named livesite:
Create a backup of local WP database -
navigate to http://localhost/phpmyadmin
select database wordpress from side menu
click EXPORT
check the box for Add DROP TABLE / VIEW / PROCEDURE / FUNCTION / EVENT statement
click GO - it should download a file called wordpress.sql
Download a database for the live site -
sign in + navigate to http://localhost/wordpress/wp-admin/options-general.php
enter the live site values for WordPress Address (URL) and Site Address (URL)
click SAVE CHANGES - this will break your local WP installation: that's why we made the backup
repeat step 1 [Create a backup of local WP database] - include all substeps
rename this newly downloaded file from wordpress.sql to livesite.sql
Prepare WP files for live site
upload WP file structure to http://livesite.com/
edit /wp-config.php to have live database name, username and password
Import live WP database - if you haven't created the livesite database yet, do so now
navigate to http://livesite.com/phpmyadmin or equivalent
select database livesite from side menu
click IMPORT
choose local file livesite.sql from step 2
click GO - it should successfully import the livesite database
Refresh live site permalinks - your permalinks are set correctly but not updated to reflect the new domain, so get WP to update them
navigate to http://livesite/wp-admin/options-permalink.php
click SAVE CHANGES
it should alert permalink structure updated. If not make a frivolous change to get it to do so, e.g. change permalink structure and then revert
Revert local installation - this can really be done at any point after step 2.
Follow step 4 from http://localhost/phpmyadmin using the backup created in step 1. This is the only way to fix the local install because we changed the domain in step 2 and we can't even get back to the settings page.
NOTES
using WP 3.3.1
using phpMyAdmin 3.4.8
The reason behind this, After you move wordpress site from local server to live you not changed the site url and home address.So, when ever you try to open your site in real server it will redirect back to your local server.You need to open PhpMyAdmin Tool in Cpanel or FTP and select your database then open wp_options table.
In wp_options table change the value of site url and home.
Now your problem will solved.