Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Clean install of Wordpress has errors on admin login

Posted on 2013-12-05
5
Medium Priority
?
1,059 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

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

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

In order to have all security and back ups taken care of, WordPress users can sign up for services with WP Engine.
3 proven steps to speed up Magento powered sites. The article focus is on optimizing time to first byte (TTFB), full page caching and configuring server for optimal performance.
This video teaches users how to migrate an existing Wordpress website to a new domain.
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…
Suggested Courses

609 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