Warning: Invalid argument error

User avatar
robert
Posts: 1
Joined: 4 years ago

Warning: Invalid argument error

Postby robert » 4 years ago

Hi,

I'm getting this warning when in the settings (where you create shortcodes):

Code: Select all

Warning: Invalid argument supplied for foreach() in .../public_html/wp-content/plugins/shortcoder/shortcoder.php on line 260


Would like to know what I can do about it or if it's a bug.
Robert
User avatar
hotspot
Posts: 5
Joined: 4 years ago

Re: Warning: Invalid argument error

Postby hotspot » 4 years ago

I have the same problem!
How can we fix it?
User avatar
commercial
Posts: 1
Joined: 3 years ago

Re: Warning: Invalid argument error

Postby commercial » 3 years ago

Similar issue here too ..., here the error msg:

Code: Select all

Warning: Invalid argument supplied for foreach() in /****/public_html/wp-content/plugins/shortcoder/shortcoder.php on line 263
User avatar
vaakash
Site Admin
Posts: 733
Joined: 6 years ago
Location: India
Contact:

Re: Warning: Invalid argument error

Postby vaakash » 3 years ago

What version of Shortcoder you were using before ??
User avatar
phnetwork
Posts: 1
Joined: 3 years ago

Re: Warning: Invalid argument error

Postby phnetwork » 3 years ago

I found that this warning went away after making the first shortcode
User avatar
vaakash
Site Admin
Posts: 733
Joined: 6 years ago
Location: India
Contact:

Re: Warning: Invalid argument error

Postby vaakash » 3 years ago

I think I didn't check for empty arrays. I will fix it in the next version. Thanks for the note.