Wordpress plugin is not working after migration to a new server - wordpress

I have moved my wordpress site to a new server, and login.php is working right.
But in there many plugins is not working well, for example the login page is not linked to any other page after I submitted my username and password.
Here is the login page link:
https://cpalocate.ca/login/
I have entered the invalid username and password, it will also show the blank page, but not error page.
When I add this code in wp-config.php
define('WP_DEBUG', true);
it showed this text. " Notice: Constant WYZ_THEME_DIR already defined in /home/.....".
And I have fixed that, but the same problem.
Now there is no any error debug, but the login page is also not working.
I changed the php version of my site in cpanel, but the same.
Anyone has your idea to solve this issue?

It is possible (I'd even say likely) that on your old server it was using PHP 5.6 (or at least a different version of PHP than your new server) and now you're on 7.0, 7.2 or even 7.3. It would seem that if that's the case, some of your plugins are incompatible.
You should edit your wp-config.php and add
define('WP_DEBUG', true);
so that you can see the errors on your screen, at least until you figure out which plugins are causing the problems.
If it is a matter of PHP version, check with your host to see if they can roll you back, or you'll have to either contact the plugin author and have them update the plugins, or you need to fix the code yourself, based on whatever the error messages you see are.
Edit: if this doesn't solve your problem, first try a default WordPress theme like twenty-nineteen or whatever. If that doesn't solve it, then disable each plugin one at a time until you find the culprit.

I have turned off all my plugins and turn back it one by one.
I have found one of my plugins is caused this problem, it is PM Pro Settings.
So I deactivated it and there is no any problem now.
I am using other plugins on behalf of that one.

Related

Unable to access wordpress page after update

I'm facing an error with wordpress. I updated wordpress page by mistake and I'm getting error
The site is experiencing technical difficulties. Please check your
site admin email inbox for instructions.
When I try to access the page by admin. I can't revert the change since the unable to access the page from admin. Is there any way to fix this issue.
Kindly clarify your question, you updated one of the pages in your WordPress site or did you update WordPress to the latest version and got an error afterwards when trying to log in within the admin dashboard?
If it is a page you can't access, try disabling your plugins and see if it will be accessible. You can also try to enable WP_Debug to true from within the wp-config.php within your back-end file manager and see if the exact issue will be displayed so as to assist you with further troubleshooting.
Alternatively, if the issue arising is due to a WordPress update to the latest version, you can try renaming the plugins folder temporary from within your backend as a form of troubleshooting, if that fails, temporary rename your theme (/wp-content/themes/theme_name) to try and pinpoint the exact issue. All this can be done with the WordPress folder from cPanel, file manager.
If the above fails, go a step further and try doing stuff like PHP memory increase, post_max_size &c.
If all the above fails, refer to WordPress documentation on how to do a manual WordPress update and hopefully, the issue will be fixed.
Note: The above is just an insight of what you can look into and not a step by step guide to fixing the issue.

My Wordpress is showing a blank page in the editor, how can I fix this?

I manage a Wordpress site for a client, after trying to resolve some updates I cannot seem to edit anything inside the editor anymore. Everything is blank (see image). The site itself is still up and working fine. Has anyone ever encountered this?
There are tons of reasons, why this could be happened. Like #jiali sent you a very helpful link, I would say to try and open the debugger: inside wp-config.php file search for define('WP_DEBUG', false); and change the value to true. Then, you propably would see what causing the error and where (either plugin or custom code, or maybe plugins conflict)
Okay so in this case the problem was (when I checked the error log) that the update was not properly installed. Deactivated the plugins inside PHP MyAdmin and then reinstalled Wordpress manually onto site.

Wordpress post text area missing issue

I have an issue that is in wordpress when i click on add new post button the post form appears it is showing everything on that form except the main content text area it's simply not there. I just updated my wordpress and this happens.
Now I have also downgraded my wordpress to previous version but still same issue.
Can anyone help me please.
Make sure all your plugins and theme are up to date, compatible with 4.8.1
Flushing any caching plugins you might be running, as well as server and/or browser caches. Not just your browser, but any op cache or content network cache as well such as CloudFlare.
If that does not resolve the issue, try deactivating ALL plugins temporarily to see if this resolves the problem (plugin functions can interfere). If this works, re-activate them individually (one-by-one) to find the problematic plugin(s).
Or
Edit manually wp-config.php file.
Find the line
define('DISALLOW_FILE_EDIT', true);
(it is probably true by default installation)
and change in
define('DISALLOW_FILE_EDIT', false);
That might solve your issue. Hope this will helpful for you.

How do I password protect a page of posts on Wordpress?

I have several pages on my site and I want to password protect a page which contains the latest posts.
Simply going to the admin panel and setting Visibility: Password protected isn't doing anything so.
How could I achieve this?
Follow these steps:
Check you browser console first may be some javascript file cause
of error.
If the issue not resolved with this, deactivate all plugins and
check console again. Then activate the plugins one by one
and check which one is conflicting.
If the error is still there change you theme to one of default WordPress
themes and check, has your issue been resolved.
If issue still there then update your WordPress core files only.

woocommerce_my_account stopped working after moving to another hosting provider

I recently moved my site built in Word Press to another hosting provider and I found the shortcode [woocommerce_my_account] is not working anymore.
Previously, I had a page called account login where I had the shortcode [woocommerce_my_account]. In the settings I set the landing page to be the same page (account login). so, after an user logged in, it was redirected to the same page showing his/her details.
However, in the new hosting provider this is no longer working. After I put the login information and attempt to login it is taking me to wp-login.php page and ask me to enter my login details again.
The URL path that I see in the browser after attempting to login is similar to this <site_name_url>/wp-login.php?redirect_to=http://<site_name_url>/account-login/
Anybody has got to the bottom of this issue? Thank you.
Try adding this to your wp-config.php:
define('WP_HOME','http://example.com');
define('WP_SITEURL','http://example.com');
Make sure you change http://example.com with your own domaine. You can also try to search and replace your domaine in the database if it has changed.
You can also try to clear browser cache and cookies. I had an issue like this before, launched a private navigation and it was working fine.
Try setting define(‘WP_DEBUG’, true);, you may see something going on.
Sometimes, php version makes a difference, try to set the same php version on you new host (google the name of your hosting provider + change php version).
When you move sites/restore databases you often need to save the permalinks again.
go to /wp-admin/options-permalink.php and click "save". This will setup your .htaccess file with the correct information for redirects.
Finally, after all of these days searching and trying different things, the answer for this issue in my case was not related with the Word Press installation itself but, with some software installed on the server called varnish, apparently used to cache the site and improve its performance.
After having a support chat with the hosting provider, they mentioned that varnish is breaking the woocommerce plugin.
At this point, I am not sure if varnish is not compatible with woocommerce or the settings applied on the server using this software make woocommerce not to work properly.

Resources