Advertisement:

Author Topic: PHP Warning: Invalid argument supplied for foreach() oc-admin/themes/modern/mai  (Read 1303 times)

PostFreeOnline.Com

  • Jr. Member
  • **
  • Posts: 77
  • PostFreeOnline.Com
Getting Notice and Warning for

/oc-admin/themes/modern/main/index.php on line 290

Any Solution. Please Help

[30-Sep-2017 13:24:11 Asia/Kolkata] PHP Notice: Undefined index: plugins in /home/scorp4hj/public_html/postfreeonline.com/oc-admin/themes/modern/main/index.php on line 290
[30-Sep-2017 13:24:11 Asia/Kolkata] PHP Warning: Invalid argument supplied for foreach() in /home/scorp4hj/public_html/postfreeonline.com/oc-admin/themes/modern/main/index.php on line 290

Aficionado

  • Guest
Please turn off your debug and go on with your site. ALL warnings and notices you post, have already been posted before hundreds of times. SEARCH here if you want more information.

They exist, are not fixed, it doesn't seem to matter.

The above happens in the ADMIN part only.


PostFreeOnline.Com

  • Jr. Member
  • **
  • Posts: 77
  • PostFreeOnline.Com
Please turn off your debug and go on with your site. ALL warnings and notices you post, have already been posted before hundreds of times. SEARCH here if you want more information.

They exist, are not fixed, it doesn't seem to matter.

The above happens in the ADMIN part only.

Turning Off debug is not the solution. Which i posted earlier you see Most of them are resolved marking. Please do not suggest me any shortcut Or ignoring them. I do not believe in that. I want my Log neat and clean. and there are many Dev. who are helping me member [marius-ciclistu] is one of them. I searched but not found similar Topic...
« Last Edit: September 30, 2017, 02:57:01 pm by PostFreeOnline.Com »

Aficionado

  • Guest

Turning Off debug is not the solution. Which i posted earlier you see Most of them are resolved marking. Please do not suggest me any shortcut Or ignoring them. I do not believe in that. I want my Log neat and clean. and there are many Dev. who are helping me member [marius-ciclistu] is one of them.

Clean log is never gonna happen. If you believe it or not, doesn't matter, it is a fact.

Of cource it is your choice to make, spend ALL your time trying to fix harmless errors or spend your time promoting your site.

And again, all those have been posted so many times, please don't clutter the forums again with them.

 
« Last Edit: September 30, 2017, 03:01:59 pm by Aficionado »

Aficionado

  • Guest

and there are many Dev. who are helping me member [marius-ciclistu] is one of them.



@marius-ciclistu is not a developer as far as i know. He is just a kind guy that want to help.


PostFreeOnline.Com

  • Jr. Member
  • **
  • Posts: 77
  • PostFreeOnline.Com

and there are many Dev. who are helping me member [marius-ciclistu] is one of them.



@marius-ciclistu is not a developer as far as i know. He is just a kind guy that want to help.

He is a Hero Member in this forum as you are also a Hero Member :)
He solved my most of the issues which were pending from past 2 months and no premium dev were responding. He was the one who solved and helped me..

marius-ciclistu

  • issues
  • Hero Member
  • *
  • Posts: 1652
  • "BE GRATEFUL TO THOSE THAT SUPPORTED YOU"
Hi.
@ PostFreeOnline.Com
If these notices are apearing in debug.log, you should disable the debug and leave them as they are(harmless).
If you have (like I do) a log folder on your host plan in which all these are building up then you can resolve them but remember that if you do any update to the osclass or plugins, you will have to remake them....

As you resolved the previous notices, you could do it by your self with if ( isset (argument)) or instead of isset use is_array if the argument is an array writen like like $name['key'] or $name[number].

@ Aficionado . I want to become a junior developer asap, but I'm not a member of the osclass team of developers.

PostFreeOnline.Com

  • Jr. Member
  • **
  • Posts: 77
  • PostFreeOnline.Com
Hi.
@ PostFreeOnline.Com
If these notices are apearing in debug.log, you should disable the debug and leave them as they are(harmless).
If you have (like I do) a log folder on your host plan in which all these are building up then you can resolve them but remember that if you do any update to the osclass or plugins, you will have to remake them....

As you resolved the previous notices, you could do it by your self with if ( isset (argument)) or instead of isset use is_array if the argument is an array writen like like $name['key'] or $name[number].

@ Aficionado . I want to become a junior developer asap, but I'm not a member of the osclass team of developers.

Nice to see you here. So that means we are just making them silent or we are resolving those? Yes you are right whenever there is an update they start appearing.  I do not have coding knowledge so can not do it without any help.. :(

marius-ciclistu

  • issues
  • Hero Member
  • *
  • Posts: 1652
  • "BE GRATEFUL TO THOSE THAT SUPPORTED YOU"
Whell we've done a few of them together until now and I gues you got the ideea of how these are reduced to silence.
I learned this from Smartey in that link i showed you so it's not a big deal.

But if they apear in debug.log better turn it off and forget about them.
« Last Edit: September 30, 2017, 07:21:13 pm by marius-ciclistu »

Aficionado

  • Guest

@ Aficionado . I want to become a junior developer asap, but I'm not a member of the osclass team of developers.

Go for it !!!!!

 8)