This thread is over two years old and may be outdated. Please create a new thread if you need help, or email us if you have an active Premium license.

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

Open 4 replies themetheme-vantage
11 years ago · Last reply by Braam Genis 11 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.

Need fast email support? Get SiteOrigin Premium

Replies

4
  1. it 11 years, 29 days ago

    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. Braam Genis Staff 11 years, 29 days ago

    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. it 11 years, 20 days ago

    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. Braam Genis Staff 11 years, 12 days ago

    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.

Have a different question or issue?

Start New Thread