I have drupal 7 site hosted on bluehost.
After I changed the admin password, I got an error. I then tried to access the site, and I was able to do that, but it was very slow.
Now, I can't access the site as an administrator. It becomes even more weird: If I delete all history and cookies from the server, I can access the site; I can also login as an authenticated user.
When I try to log in as administrator, I get a white page or a "500 internal server" error. (It depends on the browser; I tried Chrome, FF and IE.) After I do that, I cannot access the site even as guest or authenticated user; only when I delete all the history and cookies, I can access the site as guest or authenticated user.
How can I fix this?
This is the error log the bluehost Representative gave me:
[15-Apr-2014 14:48:49 Europe/Helsinki] PHP Fatal error: Call to undefined function intel_path_filter_type_to_arg() in public_html/includes/menu.inc on line 814
Is it possiable this module has something to do with the issue? https://drupal.org/project/intel
I think I disable the google analytic api module. Maybe the problem is related to one of the Drupal SEO modules?
I am really not sure, and cannot connect my site..
Yesterday the site worked great! Restoring the site to yesterdays backup did not help - this is the weirdest thing!
Update: The problem was related to one of the two below (or both):
the error from the intel module
the session cache / cache
Now the site is working good, and the intelligence module is active. The weird thing that restoring the database did not fix the issue.
I am afraid to change the password again or disable the intel module. Do you think it can cause issues again?
Please help
Try to disable Drupal SEO module via database:
UPDATE system SET status='0' WHERE name='seotools';
Disable this module if you have it: https://drupal.org/project/intel
Regards.
All the information you need is in this link: https://drupal.org/node/1023428
Just use ./scripts/password-hash.sh newpwd from your drupal root directory to generate a new hashed password and introduce this in the database using the following query
UPDATE users SET pass
='[HASHED PASSWORD]' WHERE uid = 1;
Good luck!
Related
I am using
Adminer 4.1.0 in Wordpress Plugin
OS is Ubuntu
Webserver is Nginx
The day before yesterday, my adminer is working properly. But yesterday i cannot login because it's returning an error message:
Session expired, please login again.
I searched google but i couldn't find any solution. Please help. What should i check? Thank you.
I also had this problem, plus when I did login and tried to change anything it threw an Invalid CSRF token error. Got the solution from this thread;
https://sourceforge.net/p/adminer/discussion/960418/thread/17b3972a/
I edited adminer and explicitly added in the session save path for the server;
ini_set('session.save_path', '/tmp/');
This may also occur when there is no disc space available
Old question, but answering for others with same problem who end up here.
Make sure nginx has write permissions to the php session storage directory. Just had to do this on my CentOS box because a php upgrade set the session storage root:apache and changing it to root:nginx did the trick.
I'm not really sure, but I guess you get the session expired message when trying to login to your wp-admin?
Also I'm not familiar with Adminer, but you are using it as a Wordpress plugin, so you can easily deactivate it, if you have FTP access.
Go to 'wp-content/plugins/' and locate the Adminer directory. Rename it, for example add '-old' to the directory name. This will disable the plugin, and you should have access to your wp-admin again.
For a real solution, I recommend you contact the Adminer devs.
I want to disable comments site-wide on a Wordpress site, but I keep getting this one annoying problem.
I've looked around and all of the results are for older versions of Wordpress. I have a fresh install of Wordpress 4.0 onto a namecheap hosting server.
When I try to disable comments in Settings > Discussion by unchecking the box and clicking on the submit button below, I get redirected to a page that says:
You don't have permission to access /wp/wp-admin/options.php on this
server.
Additionally, a 404 Not Found error was encountered while trying to
use an ErrorDocument to handle the request.
One suggestion from a few threads from 5-7 years ago was to modify the .htaccess and permissions. I tried, it still is returning the same error. Those suggestions were for older, less secure versions of Wordpress, so I'm thinking there should be a different workaround for 4.0. I also for some reason don't have SSH access to the server, probably because of some stupid namecheap / cpanel restriction.
I went ahead and contacted namecheap directly and they corrected it quickly - I don't think there's anything you can do. Specifically, they said:
We have whitelisted Mod Security rule which has been triggered. Please try preform necessary actions one more time.
Hope that helps.
Check your Privileges of wordpress database users.
Check also file & folder permission.
( a folder permission 755 and file permission 644 )
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.
I'm using wp 3.4.2 on a hosting service. I can access the ftp server and make changes using a ftp client (ie I have the correct credentials). I inherited the website and I'm trying to update everything, but as a precaution I started with the plugins.
The problem
When I try to update a plugin using the admin dashboard, after clicking "update now", the page keeps loading for several (about/at least 5) minutes. Afterwards I get a Error 503 Service Unavailable error. FTP settings are hardcoded in wp-config.php. This happens with all the plugins.
I solved it already, answer below.
In case anyone happens to stumble upon this problem, in wp-config.php the ftp host should be set to localhost instead of ftp://yourdomain.com.
Another solution i have found on my webhost was that the database user the wordpress installation used lacked the permission to refrence and to delete. Solved by giving the DB user FULL access.
I created a site locally on my machine everything is working fine, I uploaded it to my server a couple of weeks ago for testing/client review.
Everything looked good so the site was launch. The sites been up and running fine for about a month, today I tried to login to the backend but I have'nt been able to.
I'm able to access the login page fine. I insert my username and password and the page does nothing, just refreshes the page and clears the login form. I've tried resetting my admin password using the login form and it just keeps telling my to input a username or email.
I've downloaded the entire site and database installed it locally and it runs great no issues. I've up graded the local version to 3.1.3 it was still working fine so I replaced the live version with the new files, and still no luck.
Any suggestions?
I'm still not 100% sure what caused the problem, I'm guessing something in the core wordpress install was corrupted.
I ended up installing a fresh version of wordpress, exporting and then importing my database into a new database, and uploading the media, theme, and plugins separately which seemed to do the trick.
When you have a duplicate of a site on localhost or dev server and they have the same security keys it can cause a cookie collision.
Make a change to all of the security keys in the wp-config.php file and it will reset all sessions and cookies.
Same issue for me and i already mentioned here what worked for me.
Wordpress 3.8 gives me "You must enable cookies to use WordPress." at login