Wordpress image editing. "Edit original" and "replace" buttons missing - wordpress

I have a site I've recently migrated to a new server. Everything is mostly looking okay, except on existing posts: when we go back to edit a post, and edit media attachments within it, the "Edit Original" and "Replace" buttons are missing.
The file URLs are all correct, and on the server, permissions of both the files and the parent directories are the same on both servers.
If I add a new image to an old post, it works fine; it's just trying to access the buttons on the existing images that's a problem.
Working, old server:
http://i.stack.imgur.com/K8Dwx.png
Not working, new server:
http://i.stack.imgur.com/DMHEB.png
Any ideas?

Be sure that you've correct permissions set on your webserver.
https://codex.wordpress.org/Changing_File_Permissions
If permissions are set incorrectly WordPress is throwing weird problems like this one, another symptom is that you can't just install plugins. (it'll ask you for FTP details)

Related

Edit Page save button not showing in wordpress

my website was running smoothly without any issue but after a long time now I opened admin panel to edit a page but there is no save/publish button is available and also the WYSIWYG controls are also not visible. I tried on Chrome/Firefox/IE/Opera but all browsers are getting same issue. I replaced the post.php file in /wp-admin, but no change happen and the problem remain.
Following is the screenshot of page editor:
What is the way to resolve this issue?
According to the date of this question which belongs to 6 months ago, I think it's resolved now anyhow! But I just try to share my similar experience.
For my case, the hosting company had some update and migration. In
their new configuration, the Permission/Ownership of the WordPress
directory did not match with the new web server configuration.
I had to change all the permissions of files to 644 and I had to make sure all the directory got 755.
You should have 'root' access to the server or ask your hosting company to fix it. Also, it's better to check this post as well.

Migrating client wp site for local development

I've been asked to help out with a former colleague of mine's Wordpress Site. Nothing crazy, just change the format of a page, and add some kind of form on another page. I'm not so concerned with these changes I need to make, but am more concerned with setting up an identical site locally so that I can exercise these changes, do whatever I need to do, then simply upload my changes.
Quick background of myself; web developer of about 5 years with strengths in the Javascript frameworks and Node sphere. I know what Wordpress is and can navigate through the project with relative ease. Where I fall short is uncertainty in the project set up side of things.
So I have both the project itself and an export of my clients database, and configuration is updated accordingly. When I attempt to run the site I'm constantly prompted with errors, most of which have me take a look at the code and see what exactly the problem is. At this point I've made quite a few adjustments to the site to try and make it work that I feel continuing development won't get me anywhere.
Is duplicating an existing site to a local env usually this difficult? Could bad implementation of the initial site by the previous developer be a reason why I'm now struggling? Am I missing a step?
Duplicating a WordPress website is not that difficult. If you have the wp admin login of your website then you can simply use duplicator or akeeba backup plugin, but no worries, if you do not have the wp login access and just have the wp files & db then try this: create a new db from phpmyadmin, place your files in wp theme directory, install your new wp by using your new db file created, after that import your db file and do the following changes in your wp config file found in your root directory.
You will need to type in the new database information: database name, database user, and the password.
Once you have updated those, click Save Changes
Fixing your Permalinks
Log into your WordPress Dashboard, using the username and password from the copy of WordPress you brought over
Under Settings, click Permalinks
You don't have to make any actual changes, just click the Save Changes button.
Doing this will update all the page and post URLs. If you have custom themes or plugins/widgets with old URLs, you will have to update those manually since there are not any plugins that are able to modify those as well.
For ref:
https://my.bluehost.com/cgi/help/2361
https://www.tipsandtricks-hq.com/how-to-easily-import-or-export-any-of-your-wordpress-database-content-using-phpmyadmin-3415

wordpress migration broken links

I am experiencing a problem with the wordpress migration.
I held my website on localhost beofre (xampp server in computer). It all worked fine so I decided to move it to a real domain. The website is http://www.cupavortex.ga .
I exported the database from phpMyAdmin in xampp, and imported it in the new database in the wordpress site. wp-config.php is already configured
The only thing working is the homepage and the buttons.
The images are not appearing.
And when I try to click on any link it redirects me to the old addresses (for example, when I try to click on “Desfasurare”, it redirects me to localhost/CupaVortex/desfasurare because that was the old link. I can’t acces wp-admin nor any administrative tools but phpMyAdmin and FileZilla.
Also, the site is hosted at 000webhost.com, and yes, I modified the mysql name to mysql4.000webhost.com from localhost, and replaced utf8mb4 with utf8 in order for everything to work. I just want to find out how to replace the links, I don’t really care about the images.. Theme used is Astrid.
Thanks in advance
Have you updated your database 'home' and 'site' url entries? This is done in wp_options, both need to be the new base url! After that, if thats the issue, you'll probably want to refresh your permalinks in the wp-admin settings section.
Go Back to your old local host website for a sec.
Steps:
Go to Settings->Permalinks and set it to numeric values.
Check if you have not used a custom link inside the website for any images or post or anything. If you do then change it to the new numeric values from it.
Now just export the sql datasheet and website back up from old host to new host.
Make sure you update ALL absolute links to posts, images, files etc.. by running the following plugin: "Velvet Blues Update url's"
What this will accomplish is (according to own personal experience and taken from plugin developer's page is)
FEATURES:
Users can choose to update links embedded in content, excerpts, or custom fields
Users can choose whether to update links for attachments
View how many items were updated
Last edited by Dimitar Coklev on Feb 18, 2018

Screenshot.png Not displaying on admin

I have installed a premium theme and changed the screenshot.png and uploaded it via ftp, upon looking at the admin panel it still display the old screenshot.png and the link it was linking was
http:// www. mysite .com/wp-content/themes/mytheme/screenshot.png
and if I directly go to the link
mysite.com/wp-content/themes/mytheme/screenshot.png
it shows my new screenshot but not showing on my admin panel, why does the admin panel detects the screenshot with www and if I look on my hosting file manager my theme has the new screenshot. I've tried to delete and reinstall wordpress from scratch including the theme but still doing the same thing. any thoughts?
Thanks!
It's probably cached. Try CTRL+F5 or clear browser cache and see if that helps.
A quicker solution is to add a query arg to the end of the url, like ?refresh=1 which would make your browser think it is a different URL, even if the query arg doesn't do anything. This won't fix the original issue until your cache clears, still, but it will tell you that it is working (at least for other people who haven't seen the old version yet).

Cannot see changes in Wordpress in FTP client and vice versa

I am having some problems with Wordpress 3.7. I think they may be related and have something to do with a file ownership/rights issue but I am completely stuck.
I am using the default theme and I have uploaded a new header image
several times through the WP admin interface. Now that I am happy
with the image, I want to delete the old images. Firebug tells me
they are in [my wp root]/wp-content/uploads/2014/01. However, in my
FTP client, this directory is not visible. I only see [my wp
root]/wp-content/uploads/2013
.
When I log into the Wordpress admin interface, it tells me I should upgrade to 3.8. When I tell it to go ahead and give it my FTP credentials, it begins but gets stuck at "Verifying the unpacked files…". I get no error messages and when I give up and leave the page, there are no reports about a failed update. It just keeps showing me the "please update" message.
I am using the default theme and want to change style.css. I cannot do this in the theme editor, it tells me I have to make the file writable first, even after I give all the theme files 777 access in my FTP client (which probably is not a good idea). If I edit the file offline instead and then upload it via FTP, this doesn't have any effect. I can even delete the entire file and still nothing changes at the frontend.
I have tried to create a child theme through the FTP client but it does not show up in the WP backend.
The site is on a shared hosting platform. I can't find the details at the moment but it's a fairly regular setup (Linux, Apache, MySQL). I am testing in Firefox and caching is turned off. If I log out, and log back in again: same problems.
It is almost as if I am FTP-ing the wrong computer but I am really not. What am I missing?
Problem solved. I finally asked my hosting provider and as it turns out they had adjusted a few settings, making them too restrictive.

Resources