Jump to content

Getting php error on Wordpress theme


Pugs2411
 Share

Recommended Posts

Hi,

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
/websites/123reg/LinuxPackage21/co/ok/es/cookesproperty.co.uk/public_html/dev/wp-content/themes/homely/admin/theme_options.php

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

<?php
$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!

Lisa

 

Edited by cyberRobot
added [code][/code] tags
Link to comment
Share on other sites

This thread is more than a year old.

Join the conversation

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

Guest
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.

 Share

×
×
  • 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.