Forum Support

Shape 5
April 18, 2021, 02:53:14 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Shape 5 Forum
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Corporate Response Error Message  (Read 567 times)
SummitCap
Jr. Member
**
Offline Offline

Posts: 12



« on: December 10, 2014, 03:56:45 PM »

Hi

On uploading and activating the Corporate Response theme on a brand new installation of Wordpress 4.01, I get the following error message across the site (back and front end).

Warning: strpos() expects parameter 1 to be string, array given in /home/starhall/public_html/wp-includes/shortcodes.php on line 196

Any advice on how to fix it?

Thanks.
Logged
Tristan Rineer
Global Moderator
*****
Offline Offline

Posts: 3858

Gravatar


« Reply #1 on: December 11, 2014, 08:41:45 AM »

Can you provide a link to your site?  The error only references a core WP file, so I have no way of knowing what's actually causing it.
Logged

Tristan Rineer
------------
Shape 5 Team



- Need a great host for your website? We highly recommend siteground.com!


- Put your trust in the hands of our extremely qualified staff to get your job done right!


- Firebug is the most powerful web development and debugging tool, and it will save you a lot of time, frustration and forum questions:
Install Firebug
SummitCap
Jr. Member
**
Offline Offline

Posts: 12



« Reply #2 on: December 11, 2014, 03:27:36 PM »

I'd have to give you access to the back-end, as if I initialize the theme and log out, I can't log back in, and would have to re-install from scratch.

Let me know how to do that.

Thanks
Logged
Tristan Rineer
Global Moderator
*****
Offline Offline

Posts: 3858

Gravatar


« Reply #3 on: December 12, 2014, 09:04:05 AM »

You can disable the theme by using FTP to rename/remove the individual theme folder.

If it's a blank install, I'd suggest using the Site Shaper instead of just uploading the theme and installing it by itself (the Wordpress FAQ has easy instructions on how to install the site shaper); there are a few plugins in the shaper that are necessary to fully utilize all the features of the theme.
Logged

Tristan Rineer
------------
Shape 5 Team



- Need a great host for your website? We highly recommend siteground.com!


- Put your trust in the hands of our extremely qualified staff to get your job done right!


- Firebug is the most powerful web development and debugging tool, and it will save you a lot of time, frustration and forum questions:
Install Firebug
SummitCap
Jr. Member
**
Offline Offline

Posts: 12



« Reply #4 on: December 14, 2014, 04:50:54 PM »

Did all that and it worked fine. Updated to Wordpress 4.0.1 and it all went haywire again. I've contacted my host to see if there is an issue at their end. Here's the link to the site. Any advice much appreciated.

www.starhalllimited.com
Logged
SummitCap
Jr. Member
**
Offline Offline

Posts: 12



« Reply #5 on: December 14, 2014, 08:40:07 PM »

Fixed it with the blow code:

in /wp-includes/shortcodes.php on line 193

Change:
if ( false === strpos( $content, '[' ) ) {

To:
if ( false === strpos( (string) $content, '[' ) ) {
Logged
Tristan Rineer
Global Moderator
*****
Offline Offline

Posts: 3858

Gravatar


« Reply #6 on: December 15, 2014, 07:36:17 AM »

Thanks for the update.  It's unfortunate that you had to edit WP core code to fix it, but at least your site is functional again.

It definitely appears to be a bug in WP core - or at the very least, a lack of error prevention; hopefully they'll fix it in the next version, or you'll have to do the same fix again.
Logged

Tristan Rineer
------------
Shape 5 Team



- Need a great host for your website? We highly recommend siteground.com!


- Put your trust in the hands of our extremely qualified staff to get your job done right!


- Firebug is the most powerful web development and debugging tool, and it will save you a lot of time, frustration and forum questions:
Install Firebug
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF | SMF © 2013, Simple Machines
Joomla Bridge by JoomlaHacks.com
Valid XHTML 1.0! Valid CSS!
Looking for the largest variety in template designs? Look no more. Never buy 1 theme again. Signups start at just $89 for access to all of our themes.
Send Us An Email
Please send us your questions and we will email you back as soon as we can. Product support questions should be posted in our support forums under the Help menu. Our staff will assist you from there.