Solved

Clean install of Wordpress has errors on admin login

Posted on 2013-12-05
5
1,025 Views
Last Modified: 2013-12-14
I have a server which has a couple of wordpress installations, one on one domain which works fine (it is a client's so I don't have access to its admin console) and one which does not work correctly (another client, but I do have access to this one).

If you remove all traces of WP from the domain on the server, download the latest version, unzip it, upload it, create the MySQL database and user, run the config, then I get an error that it could not write the config file and tells me to copy and paste which I do without a problem, upload the config file, then log into the admin part of the new empty site I get these three errors at the top of the screen:

Warning: preg_match_all(): Compilation failed: unknown option bit(s) set at offset -1 in /home/safadm/public_html/wp-includes/compat.php on line 30

Warning: array_slice() expects parameter 1 to be array, null given in /home/safadm/public_html/wp-includes/compat.php on line 31

Warning: implode(): Invalid arguments passed in /home/safadm/public_html/wp-includes/compat.php on line 32

Open in new window


I also get errors under the different sections of the dashboard such as under Plugins I get this:

Warning: preg_match(): Compilation failed: unknown option bit(s) set at offset -1 in /home/safadm/public_html/wp-includes/SimplePie/Misc.php on line 1926

Warning: preg_match(): Compilation failed: unknown option bit(s) set at offset -1 in /home/safadm/public_html/wp-includes/SimplePie/Misc.php on line 1926

Warning: preg_match(): Compilation failed: unknown option bit(s) set at offset -1 in /home/safadm/public_html/wp-includes/SimplePie/Misc.php on line 1926

Most Popular
Captcha (Install) 
This plugin allows you to implement super security captcha form into web forms.

Warning: preg_match(): Compilation failed: unknown option bit(s) set at offset -1 in /home/safadm/public_html/wp-includes/SimplePie/Misc.php on line 1926

Warning: preg_match(): Compilation failed: unknown option bit(s) set at offset -1 in /home/safadm/public_html/wp-includes/SimplePie/Misc.php on line 1926

Warning: preg_match(): Compilation failed: unknown option bit(s) set at offset -1 in /home/safadm/public_html/wp-includes/SimplePie/Misc.php on line 1926

Newest Plugins
Rijksoverheid Cookie Opt-Out v2.0 (Install) 
Deze plugin is de Rijksoverheid Cookie Opt-Out versie 2.0 implementatie aangepast voor gebruik binnen WordPress voor overheidssites.

Open in new window


virtually identical errors appear under the "WordPress Blog" and "Other WordPress News" sections as well.

I have called the people we lease the server from and they first suggested an update to PHP and Apache rebuild (PHP was 5.3.?, now is 5.4.?) and this had no effect. The server is running CentOS 5.9, WHM 11.34.1 (build 12) and Apache 2.0.64.

I found another possible solution to do with pcre so I ran:

sudo yum upgrade '*php*' pcre

Open in new window


followed by restarting the Apache service, no change. I then rebooted the server just to be sure, no change.
0
Comment
Question by:AMPLECOMPUTERS
  • 4
5 Comments
 
LVL 70

Expert Comment

by:Jason C. Levine
ID: 39700163
and one which does not work correctly (another client, but I do have access to this one).

Has the client attempted to customize the server environment in any way?
0
 

Author Comment

by:AMPLECOMPUTERS
ID: 39700907
Not that I am aware of. I checked everything I could think of and it seems set to default.
0
 

Author Comment

by:AMPLECOMPUTERS
ID: 39700953
I just went into another account which has never had anything done to it (used strictly for email access) and did an install of WordPress with the same results, errors everywhere.

It seems to be a server problem, something not agreeing with something I would suspect but I have no idea where to look.
0
 

Accepted Solution

by:
AMPLECOMPUTERS earned 0 total points
ID: 39706044
Looks like PHP did an update which broke PCRE. Had a heck of a time updating everything, required an update to Apache from 2.0 to 2.2, PHP from 5.3 to 5.4, PCRE from 6.6 to 8.33 and finally had to compile in support for suPHP and switch to using CGI for PHP requests.
0
 

Author Closing Comment

by:AMPLECOMPUTERS
ID: 39718501
That fixed it
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If your site has a few sections that need to be secure when data is transmitted between the server and local computer, such as a /order/ section for ordering or /customer/ which contains customer data, etc it would of course be recommended to secure…
In order to have all security and back ups taken care of, WordPress users can sign up for services with WP Engine.
The purpose of this video is to demonstrate how to integrate Mailchimp with WordPress, by placing a Mailchimp signup form on a WordPress Page or Post. This will be demonstrated using a Windows 8 PC. Mailchimp will be used. Log into your Mailchi…
The purpose of this video is to demonstrate how to prevent comment spam on a WordPress Website. This will be demonstrated using a Windows 8 PC. Plugin Akismet will be used. Go to your WordPress login page. This will look like the following: myw…

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

25 Experts available now in Live!

Get 1:1 Help Now