Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
  • #5574

    After developing my site in parallel to another WP site on my server, I wiped out the older version of WordPress, and moved the fresh copy according to some tech docs. All seemed to work well minus an image or two I had to relink – or so I thought. I since have found out that I get the following error showing up when I got into the Template Builder area to create or modify templates for this theme:

    Warning: Invalid argument supplied for foreach() in /home/omegaav/public_html/wp-content/themes/brightbox/framework/php/class-htmlhelper.php on line 932

    Well – i open up the classhtmlhelper.php and scroll down to line 932 which is the start of the following code:

    foreach ($elements as $dynamic_element)
    if(empty($dynamic_element['name'])) $dynamic_element['name'] = $dynamic_element['id'];
    $output .= "<option value='". $dynamic_element['id']."'>". $dynamic_element['name']."</option>";

    $output .= '</select>';
    $output .= '<span class="avia_select_fake_val">Select Element</span></span>';
    $output .= ' <a href="#" class="avia_button avia_dynamical_add_elements" title="'.$element['name'].'" id="avia_'.$element['id'].'">Add Element</a>';
    $output .= ' <span class="avia_loading avia_beside_button_loading"></span>';
    $output .= ' </span>';
    $output .= ' <input class="avia_dynamical_add_elements_parent" type="hidden" value="'.$element['slug'].'" />';
    $output .= ' <input class="avia_dynamical_add_elements_config_file" type="hidden" value="'.$element['options_file'].'" />';

    $output .= '</div>';
    return $output;

    It doesn’t seem to be affecting the site I am continuing to develop but I sure would like to know how to fix it. Any ideas?

    Thanks in advance,

    Steve Butler



    please reset the theme options to fix the error. It’s a known problem which occurs on some servers/configurations. Kriesi investigates it at the moment. More details can be found here: (Purchase code hidden if logged out) -servers


    Do you mean for me to hit the “reset all options” button on the “theme options” page?

    Will that delete all of my defined templates?



    yes, reset all options in the theme options. This will remove all the options you set through the theme options menu. Custom created templates will also be deleted but the standard templates will remain.


    so is there a good way to backup the templates I created?


    Normally a db backup will also restore/save the template but it seems like some server configuration cause problems after a theme path change. I’d replicate the templates manually for now and make a db backup afterwards (I assume the theme path won’t change anymore from now on).

Viewing 6 posts - 1 through 6 (of 6 total)

The topic ‘Template builder errors after moving WP installation from subfolder to root’ is closed to new replies.