A number of PHP warnings

More
12 years 8 months ago - 12 years 8 months ago #24535 by gruz
I meet PHP warnings from time to time which are gone when I visit the page next time or refresh it. So it's almost impossible to reproduce them for me as I don't know what causes them.

So I just shot them up and post here.

The first one:
Code:
Warning: Invalid argument supplied for foreach() in /var/www/oscar/data/www/test.oscargo.ru/libraries/joomla/database/database/mysql.php on line 377 Warning: Invalid argument supplied for foreach() in /var/www/oscar/data/www/test.oscargo.ru/libraries/joomla/database/database/mysql.php on line 377 Warning: Invalid argument supplied for foreach() in /var/www/oscar/data/www/test.oscargo.ru/libraries/joomla/database/table.php on line 406

[img



Tell me how I can provide more usefull info, please?

J2.5
FC - 2.0 - Rev 1612 (since 17-00 30.12.2012)
Last edit: 12 years 8 months ago by gruz.

Please Log in or Create an account to join the conversation.

More
12 years 8 months ago #24537 by ggppdk
Replied by ggppdk on topic A number of PHP warnings
You can find where it occured like this:

e.g. temporarily put this just before line 377 in mysql.php:

if ( !is_array($fields) ) {
echo "<pre>";
print_r ($fields);
echo debug_print_backtrace();
echo "</pre>";
}

I will try to reply to other messages in the forum the next days.
Regards


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

Please Log in or Create an account to join the conversation.

More
12 years 8 months ago #24538 by gruz
Replied by gruz on topic A number of PHP warnings
But it happens once! The second time there is no the same message. I tried killing session, disabling cache - no message. And other time I meet it suddenly. And then again no message. This is something with session I still think.

J2.5
FC - 2.0 - Rev 1612 (since 17-00 30.12.2012)

Please Log in or Create an account to join the conversation.

More
12 years 8 months ago #24539 by ggppdk
Replied by ggppdk on topic A number of PHP warnings
Yes when it happens (even once) you will now which flexicontent code triggered it.

I have cleaned-up unified frontend / backend J1.5 - J2.5 ITEM model to a single parent class, and updating it to support 2 ways of language translation, easier frontend edit of (a) Joomfish translation, OR (b) full item translations (all fields).

I am trying to finish it today or tomorrow, but some personal issues, make it difficult to have cleared mind.

Regards


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

Please Log in or Create an account to join the conversation.

More
12 years 8 months ago #24540 by gruz
Replied by gruz on topic A number of PHP warnings
I cannot have debug output all the time, the web-site is almost live. And this happens not very often. It would be a pain to have tones of debug output at every page.

Ok, I'll try to catch what I can.

J2.5
FC - 2.0 - Rev 1612 (since 17-00 30.12.2012)

Please Log in or Create an account to join the conversation.

More
12 years 8 months ago #24542 by ggppdk
Replied by ggppdk on topic A number of PHP warnings
Right, i meant for a local site copy


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

Please Log in or Create an account to join the conversation.

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.401 seconds
Save
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Essential
These cookies are needed to make the website work correctly. You can not disable them.
Display
Accept
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline