Solved

Clean install of Wordpress has errors on admin login

Posted on 2013-12-05
5
1,031 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

Portable, direct connect server access

The ATEN CV211 connects a laptop directly to any server allowing you instant access to perform data maintenance and local operations, for quick troubleshooting, updating, service and repair.

Question has a verified solution.

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

Suggested Solutions

In Solr 4.0 it is possible to atomically (or partially) update individual fields in a document. This article will show the operations possible for atomic updating as well as setting up your Solr instance to be able to perform the actions. One major …
Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
The purpose of this video is to demonstrate how to Test the speed of a WordPress Website. Site Speed is an important metric of a site’s health. Slow site speed can result in viewers leaving your site quickly and not seeing your content. This…
The purpose of this video is to demonstrate how to set up the permalinks on a WordPress Website. This will be demonstrated using a Windows 8 PC. Go to your WordPress login page. This will look like the following: mywebsite.com/wp-login.php : Go t…

840 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