Jump to content
#FlattenTheCurve ×
Sign in to follow this  

Getting php error on Wordpress theme

Recommended Posts


I am very very new to php and I'm building a Wordpress site using a theme so please bear with me if I ask any obvious questions.

My site is running php 5.6 and Wordpress is up to date.

In the theme options a php file called theme_options.php should give various items to place on the page but I am getting this error

Warning: Invalid argument supplied for foreach() in on line 1114

I have looked at line 1114 and this has this of code

$property_detail_items       = get_option('rypecore_property_detail_items', $property_detail_items_default);
$property_detail_items_order = get_option('rypecore_property_detail_items_order', $property_detail_items_order_default);

foreach($property_detail_items_order as $value) {

The last line is line 1114

Is there anything obvious I am missing?

Thanks for any help at all!



Edited by cyberRobot
added [code][/code] tags

Share this post

Link to post
Share on other sites

Have you checked to see if $property_detail_items_order is an array?



And use code tags along with formatting when posting code, it makes it easier to read and you'll be more likely to get a quicker response.

Share this post

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.