Solved

Clean install of Wordpress has errors on admin login

Posted on 2013-12-05
5
1,033 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

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…
Introduction This article is intended for those who are new to PHP error handling (https://www.experts-exchange.com/articles/11769/And-by-the-way-I-am-New-to-PHP.html).  It addresses one of the most common problems that plague beginning PHP develop…
The purpose of this video is to demonstrate how to reset a WordPress password if you are locked out and cannot reset the password. A typical use would be if you cannot access the email to which WordPress would send the password recovery email to…
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…

726 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