Home>Support>Masthead Layout, Menu and Footer Layout drop-down lists are empty

Masthead Layout, Menu and Footer Layout drop-down lists are empty

By it, 9 years ago. Last reply by Braam Genis, 9 years ago.

First of all, really good work on creating the Theme. I would definitely purchase premium if I can get this Theme to work… :)

I’m using Vantage theme, and am unable to select anything from the drop-down lists for Masthead and Footer in:
Theme Settings->Layout

The check-box for Responsive Layout is Enabled, and the drop-down for Layout Bound works. I can select Full Width or Boxed.

I’m also noticing the following PHP warnings:
PHP Warning: Invalid argument supplied for foreach() in wordpress/wp-content/plugins/siteorigin-panels/widgets/widgets.php on line 9
PHP Warning: Invalid argument supplied for foreach() in wordpress/wp-content/themes/vantage/inc/settings.php on line 244

Is the glob function causing an issue here? BTW, I’ve checked the server contents and find -name returns that the files with those patterns exist.

Code Lines for reference:
foreach(glob(plugin_dir_path(__FILE__).’/widgets/*/*.php’) as $file) …
foreach( glob(get_template_directory().’/loops/loop-*.php’) as $template ) …

This is our free support forum. Replies can take several days. If you need fast email support, please purchase a SiteOrigin Premium license.

  1. 9 years, 7 months ago it

    Properly formatted code below:

    foreach(glob(plugin_dir_path(__FILE__).’/widgets/*/*.php’) as $file) …
    foreach( glob(get_template_directory().’/loops/loop-*.php’) as $template ) …
    
  2. 9 years, 7 months ago Braam Genis
    Hi, I Work Here

    Hi it

    It does indeed appear as if the glob function may be causing trouble, but I’m not sure why. Could you please check which version of WordPress you’re running? And then you could also try disabling all plugins and see if the problem persists.

    Thanks

  3. 9 years, 7 months ago it

    Hi Braam,

    I unrolled the glob and used an array of files to get the widgets in plugin and loops in templates, so the PHP warning messages are gone.

    However, I’m still unable to select anything from the drop-down list for Masthead and Footer.

    Any ideas on what might be going on? Are these settings available as variables somewhere in the PHP code? And if so, could you please point me in the right direction?

    Thanks,

  4. 9 years, 7 months ago Braam Genis
    Hi, I Work Here

    Hi it

    Issues like this are sometimes caused by plugin conflicts. Have you tried deactivating all installed plugins? Another thing which has been known to cause issues is using older versions of WordPress. Perhaps check the version of WordPress and update it if it’s not the most recent version.

Replies on this thread are closed. Please create a new thread if you have a question, or purchase a SiteOrigin Premium license if you need one-on-one email support.

Get The Most Out of SiteOrigin with SiteOrigin Premium

Find Out More