Solved

Clean install of Wordpress has errors on admin login

Posted on 2013-12-05
5
1,016 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
Comment Utility
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
Comment Utility
Not that I am aware of. I checked everything I could think of and it seems set to default.
0
 

Author Comment

by:AMPLECOMPUTERS
Comment Utility
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
Comment Utility
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
Comment Utility
That fixed it
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Part of the Global Positioning System A geocode (https://developers.google.com/maps/documentation/geocoding/) is the major subset of a GPS coordinate (http://en.wikipedia.org/wiki/Global_Positioning_System), the other parts being the altitude and t…
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 manually back up a WordPress Database. This will be demonstrated using a Windows 8 PC. The Host used will be IPage.com Log into your Hosting account. IPage will be used for demonstration : Locat…
The purpose of this video is to demonstrate how to update a WordPress Site’s version. WordPress releases new versions of its software frequently and it is important to update frequently in order to keep your site secure, and to get new WordPress…

763 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

7 Experts available now in Live!

Get 1:1 Help Now