Server Migrated , BUT WordPress NOT working :(

furquan

Well-Known Member
Jul 27, 2002
473
4
168
Hello All :

I have just migrated a server, every thing is working fine, but we have a few niche clients who run wordpress BUT after migration when i log on to the http://domain.com/wp-admin page, i get the login prompt but after entering the login credentials i get a blank page display...

I am not sure as to what is wrong, I do have wordpress enabled in the "Install cPAddons" section of the WHM.


Any assistance , please ?
 

cPanelTristan

Quality Assurance Analyst
Staff member
Oct 2, 2010
7,607
43
348
somewhere over the rainbow
cPanel Access Level
Root Administrator
Are there any errors in either /usr/local/apache/logs/error_log upon visiting the page or in /home/username/public_html/error_logs location (or /home/username/public_html/wp-admin/error_logs location)? If so, what are those errors?

Next, are you using the same PHP handler on both machines (the PHP handler in WHM is in Apache Configuration > PHP and SuExec Configuration area), and did you migrate from cPanel to cPanel or from some other control panel to cPanel?
 

furquan

Well-Known Member
Jul 27, 2002
473
4
168
Nothing comes up in :- /usr/local/apache/logs/error_log

Will check this now and will get back to you :- /home/username/public_html/error_logs (or /home/username/public_html/wp-admin/error_logs location)

The PHP handler ..is what i cannot verify at the moment, coz the old server has been flushed.

Yes I have used cPanel 2 cPanel transfer
 

furquan

Well-Known Member
Jul 27, 2002
473
4
168
This is what i get in the error logs for
/home/username/public_html/wp-admin/error_logs


[email protected] [~]# tail -f /home/orangema/public_html/wp-admin/error_log #2 /home/orangema/public_html/wp-content/plugins/official-google-site-verification-plugin/external/php-client/apiClient.php(138): apiOAuth->authenticate(Object(apiFileCache), Ob
ject(apiCurlIO), Array)
#3 /home/orangema/public_html/wp-content/plugins/official-google-site-verification-plugin/googleSiteVerification.php(87): apiClient->authenticate()
#4 [internal function]: google in /home/orangema/public_html/wp-content/plugins/official-google-site-verification-plugin/external/php-client/auth/apiOAuth.php on line 193 [28-Apr-2011 10:46:11] PHP Fatal error: Uncaught exception 'apiAuthException' with message 'Couldn't fetch request token, http code: 0, response body: ' in /home/orangema/publi
c_html/wp-content/plugins/official-google-site-verification-plugin/external/php-client/auth/apiOAuth.php:193
Stack trace: #0 /home/orangema/public_html/wp-content/plugins/official-google-site-verification-plugin/external/php-client/auth/apiOAuth.php(171): apiOAuth->requestRequestToken('http://www.o
ran...') #1 /home/orangema/public_html/wp-content/plugins/official-google-site-verification-plugin/external/php-client/auth/apiOAuth.php(89): apiOAuth->obtainRequestToken('http://www.ora
n...', '4db9457380f7a') #2 /home/orangema/public_html/wp-content/plugins/official-google-site-verification-plugin/external/php-client/apiClient.php(138): apiOAuth->authenticate(Object(apiFileCache), Ob
ject(apiCurlIO), Array)
#3 /home/orangema/public_html/wp-content/plugins/official-google-site-verification-plugin/googleSiteVerification.php(87): apiClient->authenticate()
#4 [internal function]: google in /home/orangema/public_html/wp-content/plugins/official-google-site-verification-plugin/external/php-client/auth/apiOAuth.php on line 193


AND this is what i get for
tail -f /home/orangema/public_html/error_log

[email protected] [~]# tail -f /home/orangema/public_html/error_log
[07-Jun-2011 21:57:53] PHP Parse error: syntax error, unexpected T_STRING in /home/orangema/public_html/testimap.php on line 7
[07-Jun-2011 21:59:41] PHP Parse error: syntax error, unexpected '{' in /home/orangema/public_html/testimap.php on line 7
[07-Jun-2011 22:07:57] PHP Parse error: syntax error, unexpected '/', expecting '}' in /home/orangema/public_html/testimap.php on line 7
[07-Jun-2011 23:13:40] PHP Parse error: syntax error, unexpected '/', expecting '}' in /home/orangema/public_html/testimap.php on line 7
[07-Jun-2011 23:17:50] PHP Parse error: syntax error, unexpected T_NS_SEPARATOR, expecting '}' in /home/orangema/public_html/testimap.php on line 7
[07-Jun-2011 23:18:46] PHP Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting '}' in /home/orangema/public_html/testimap.php on line 7
[07-Jun-2011 23:19:21] PHP Parse error: syntax error, unexpected '{' in /home/orangema/public_html/testimap.php on line 7
[07-Jun-2011 23:19:54] PHP Parse error: syntax error, unexpected '/', expecting '}' in /home/orangema/public_html/testimap.php on line 7 [07-Jun-2011 23:21:36] PHP Warning: imap_open() [<a href='function.imap-open'>function.imap-open</a>]: Couldn't open stream {imap.gmail.com:993/imap/ssl}INBOX in /home/orangema
/public_html/testimap.php on line 9 [07-Jun-2011 23:27:03] PHP Warning: imap_open() [<a href='function.imap-open'>function.imap-open</a>]: Couldn't open stream {imap.gmail.com:993/imap/ssl}INBOX in /home/orangema
/public_html/testimap.php on line 9
Any clues ?

Thank you for such a prompt response
 

cPanelTristan

Quality Assurance Analyst
Staff member
Oct 2, 2010
7,607
43
348
somewhere over the rainbow
cPanel Access Level
Root Administrator
What is on line 7 of /home/orangema/public_html/testimap.php file?

Also, it appears the entire reason it isn't working is the Google Site Verification Plugin from what I'm seeing in these error messages.
 

furquan

Well-Known Member
Jul 27, 2002
473
4
168
This is what it looks like :-

<?php

/* connect to gmail */
$hostname = '{imap.gmail.com:993/imap/ssl}INBOX';
$username = '[email protected]';
$password = 'xxxxxx';

/* try to connect */
It is line by line
 

cPanelTristan

Quality Assurance Analyst
Staff member
Oct 2, 2010
7,607
43
348
somewhere over the rainbow
cPanel Access Level
Root Administrator
So line 7 is just a blank line? Also, I've removed the password there and changed the email address to be less apparent. We would have access to this user's gmail account otherwise.

I would also suggest changing the password to that gmail account now in case anyone did happen to see it before I revised it.
 

furquan

Well-Known Member
Jul 27, 2002
473
4
168
Ohh Ooo.....my bad :(...did not notice that :...damn...

Yes the line 7 is blank...

So what next ?
 

cPanelTristan

Quality Assurance Analyst
Staff member
Oct 2, 2010
7,607
43
348
somewhere over the rainbow
cPanel Access Level
Root Administrator
Is there a way to uninstall the plugin since it is possibly causing the issue? Honestly, I'd suggest posting at WordPress forum. It isn't really a cPanel issue from what I can see.
 

furquan

Well-Known Member
Jul 27, 2002
473
4
168
Thank you for the advice Tristan...