Warning: Creating default object from empty value

5 years 9 months ago #32917 by dreamweaver
Hi,
here are some error message I get when I use the last flexicontent for J2.5 in a local server (WAMP 2.2. - PHP 5.4.3 - Apache 2.2.22 - MySQL 5.5.24 - Joomla 2.5.8 & FLEXIcontent version 2.0.0 RC9b (r1601))

I also modified php.ini (as specified in other posts)

In the Back Office :


Warning: Creating default object from empty value in D:\wamp\www\directory\administrator\components\com_flexicontent\views\flexicontent\view.html.php on line 85
Call Stack
# Time Memory Function Location
1 0.0187 153672 {main}( ) ..\index.php:0
2 4.5200 9248816 JAdministrator->dispatch( ) ..\index.php:46
3 4.5208 9249280 JComponentHelper::renderComponent( ) ..\application.php:153
4 4.9654 9529760 JComponentHelper::executeComponent( ) ..\helper.php:351
5 5.0565 9586744 require_once( 'D:\wamp\www\directory\administrator\components\com_flexicontent\admin.flexicontent.php' ) ..\helper.php:383
6 15.2264 12761184 JController->execute( ) ..\admin.flexicontent.php:141
7 15.2264 12761328 FlexicontentController->display( ) ..\controller.php:761
8 15.2265 12761344 JController->display( ) ..\controller.php:204
9 15.5186 12876096 FlexicontentViewFlexicontent->display( ) ..\controller.php:722

( ! ) Warning: Creating default object from empty value in D:\wamp\www\directory\administrator\components\com_flexicontent\views\flexicontent\view.html.php on line 87
Call Stack
# Time Memory Function Location
1 0.0187 153672 {main}( ) ..\index.php:0
2 4.5200 9248816 JAdministrator->dispatch( ) ..\index.php:46
3 4.5208 9249280 JComponentHelper::renderComponent( ) ..\application.php:153
4 4.9654 9529760 JComponentHelper::executeComponent( ) ..\helper.php:351
5 5.0565 9586744 require_once( 'D:\wamp\www\directory\administrator\components\com_flexicontent\admin.flexicontent.php' ) ..\helper.php:383
6 15.2264 12761184 JController->execute( ) ..\admin.flexicontent.php:141
7 15.2264 12761328 FlexicontentController->display( ) ..\controller.php:761
8 15.2265 12761344 JController->display( ) ..\controller.php:204
9 15.5186 12876096 FlexicontentViewFlexicontent->display( ) ..\controller.php:722

( ! ) Warning: Creating default object from empty value in D:\wamp\www\directory\administrator\components\com_flexicontent\views\flexicontent\view.html.php on line 89
Call Stack
# Time Memory Function Location
1 0.0187 153672 {main}( ) ..\index.php:0
2 4.5200 9248816 JAdministrator->dispatch( ) ..\index.php:46
3 4.5208 9249280 JComponentHelper::renderComponent( ) ..\application.php:153
4 4.9654 9529760 JComponentHelper::executeComponent( ) ..\helper.php:351
5 5.0565 9586744 require_once( 'D:\wamp\www\directory\administrator\components\com_flexicontent\admin.flexicontent.php' ) ..\helper.php:383
6 15.2264 12761184 JController->execute( ) ..\admin.flexicontent.php:141
7 15.2264 12761328 FlexicontentController->display( ) ..\controller.php:761
8 15.2265 12761344 JController->display( ) ..\controller.php:204
9 15.5186 12876096 FlexicontentViewFlexicontent->display( ) ..\controller.php:722

When i use a field as a filter i have some errors in Front Office :

You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'DISTINCT fi.value as value, fi.value as text FROM directory_content AS i JOIN di' at line 1 SQL=SELECT jfself.id AS id, DISTINCT fi.value as value, fi.value as text FROM directory_content AS i JOIN directory_content AS jfself USING (id) LEFT JOIN directory_flexicontent_fields_item_relations AS fi ON i.id = fi.item_id LEFT JOIN directory_flexicontent_items_ext AS ie ON ie.item_id = i.id LEFT JOIN directory_flexicontent_types AS ty ON ie.type_id = ty.id LEFT JOIN directory_flexicontent_cats_item_relations AS rel ON rel.itemid = i.id LEFT JOIN directory_categories AS c ON c.id = i.catid LEFT JOIN directory_users AS u ON u.id = i.created_by WHERE 1=1 AND fi.field_id =26

SELECT DISTINCT fi.value as value, fi.value as text FROM #__content AS i LEFT JOIN #__flexicontent_fields_item_relations AS fi ON i.id = fi.item_id LEFT JOIN #__flexicontent_items_ext AS ie ON ie.item_id = i.id LEFT JOIN #__flexicontent_types AS ty ON ie.type_id = ty.id LEFT JOIN #__flexicontent_cats_item_relations AS rel ON rel.itemid = i.id LEFT JOIN #__categories AS c ON c.id = i.catid LEFT JOIN #__users AS u ON u.id = i.created_by WHERE 1=1 AND fi.field_id =26

et suivi de :

Notice: Undefined variable: field in D:\wamp\www\directory\components\com_flexicontent\classes\flexicontent.categories.php on line 386
Call Stack
# Time Memory Function Location
1 0.0285 152920 {main}( ) ..\index.php:0
2 19.9751 12041712 JSite->dispatch( ) ..\index.php:42
3 19.9822 12068112 JComponentHelper::renderComponent( ) ..\application.php:197
4 19.9859 12069568 JComponentHelper::executeComponent( ) ..\helper.php:351
5 20.0354 12112296 require_once( 'D:\wamp\www\directory\components\com_flexicontent\flexicontent.php' ) ..\helper.php:383
6 20.3183 13447000 JController->execute( ) ..\flexicontent.php:93
7 20.3184 13447144 FlexicontentController->display( ) ..\controller.php:761
8 20.3186 13447248 JController->display( ) ..\controller.php:541
9 20.7982 13936448 FlexicontentViewCategory->display( ) ..\controller.php:722
10 23.3598 15703152 FLEXIUtilities->call_FC_Field_Func( ) ..\view.html.php:645
11 23.4223 15770720 call_user_func_array ( ) ..\flexicontent.helper.php:2905
12 23.4223 15770952 plgFlexicontent_fieldsSelect->onDisplayFilter( ) ..\flexicontent.helper.php:2905
13 23.4238 15779912 flexicontent_cats->getFilterValues( ) ..\select.php:250

( ! ) Notice: Trying to get property of non-object in D:\wamp\www\directory\components\com_flexicontent\classes\flexicontent.categories.php on line 386
Call Stack
# Time Memory Function Location
1 0.0285 152920 {main}( ) ..\index.php:0
2 19.9751 12041712 JSite->dispatch( ) ..\index.php:42
3 19.9822 12068112 JComponentHelper::renderComponent( ) ..\application.php:197
4 19.9859 12069568 JComponentHelper::executeComponent( ) ..\helper.php:351
5 20.0354 12112296 require_once( 'D:\wamp\www\directory\components\com_flexicontent\flexicontent.php' ) ..\helper.php:383
6 20.3183 13447000 JController->execute( ) ..\flexicontent.php:93
7 20.3184 13447144 FlexicontentController->display( ) ..\controller.php:761
8 20.3186 13447248 JController->display( ) ..\controller.php:541
9 20.7982 13936448 FlexicontentViewCategory->display( ) ..\controller.php:722
10 23.3598 15703152 FLEXIUtilities->call_FC_Field_Func( ) ..\view.html.php:645
11 23.4223 15770720 call_user_func_array ( ) ..\flexicontent.helper.php:2905
12 23.4223 15770952 plgFlexicontent_fieldsSelect->onDisplayFilter( ) ..\flexicontent.helper.php:2905
13 23.4238 15779912 flexicontent_cats->getFilterValues( ) ..\select.php:250

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

5 years 9 months ago #32919 by dreamweaver
For backoffice messages are removed if I use PHP v.5.3.13
For front office it doesn't make a change.
Thanx

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

5 years 9 months ago #32920 by ggppdk
Hello, most PHP 5.4 warnings have been cleared by r1601


This warning will appear if you have installed Joomfish in J2.5 ?


To clear warning,
in file
administrator\components\com_flexicontent\views\flexicontent\view.html.php
just before line 85

add
$files->fields = new stdClass();

i will clear this warning too


-- 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 review. Thanks!

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

5 years 9 months ago #32923 by dreamweaver
thanks !
by changing the line it resolved part of the problem... I use joomfish for multilanguage...

Now the second problem is not solved. When i use a field as a filter i have some errors in Front Office :

You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'DISTINCT fi.value as value, fi.value as text FROM directory_content AS i JOIN di' at line 1 SQL=SELECT jfself.id AS id, DISTINCT fi.value as value, fi.value as text FROM directory_content AS i JOIN directory_content AS jfself USING (id) LEFT JOIN directory_flexicontent_fields_item_relations AS fi ON i.id = fi.item_id LEFT JOIN directory_flexicontent_items_ext AS ie ON ie.item_id = i.id LEFT JOIN directory_flexicontent_types AS ty ON ie.type_id = ty.id LEFT JOIN directory_flexicontent_cats_item_relations AS rel ON rel.itemid = i.id LEFT JOIN directory_categories AS c ON c.id = i.catid LEFT JOIN directory_users AS u ON u.id = i.created_by WHERE 1=1 AND fi.field_id =26

SELECT DISTINCT fi.value as value, fi.value as text FROM #__content AS i LEFT JOIN #__flexicontent_fields_item_relations AS fi ON i.id = fi.item_id LEFT JOIN #__flexicontent_items_ext AS ie ON ie.item_id = i.id LEFT JOIN #__flexicontent_types AS ty ON ie.type_id = ty.id LEFT JOIN #__flexicontent_cats_item_relations AS rel ON rel.itemid = i.id LEFT JOIN #__categories AS c ON c.id = i.catid LEFT JOIN #__users AS u ON u.id = i.created_by WHERE 1=1 AND fi.field_id =26

followed by :

Notice: Undefined variable: field in D:\wamp\www\directory\components\com_flexicontent\classes\flexicontent.categories.php on line 386
Call Stack
# Time Memory Function Location
1 0.0285 152920 {main}( ) ..\index.php:0
2 19.9751 12041712 JSite->dispatch( ) ..\index.php:42
3 19.9822 12068112 JComponentHelper::renderComponent( ) ..\application.php:197
4 19.9859 12069568 JComponentHelper::executeComponent( ) ..\helper.php:351
5 20.0354 12112296 require_once( 'D:\wamp\www\directory\components\com_flexicontent\flexicontent.php' ) ..\helper.php:383
6 20.3183 13447000 JController->execute( ) ..\flexicontent.php:93
7 20.3184 13447144 FlexicontentController->display( ) ..\controller.php:761
8 20.3186 13447248 JController->display( ) ..\controller.php:541
9 20.7982 13936448 FlexicontentViewCategory->display( ) ..\controller.php:722
10 23.3598 15703152 FLEXIUtilities->call_FC_Field_Func( ) ..\view.html.php:645
11 23.4223 15770720 call_user_func_array ( ) ..\flexicontent.helper.php:2905
12 23.4223 15770952 plgFlexicontent_fieldsSelect->onDisplayFilter( ) ..\flexicontent.helper.php:2905
13 23.4238 15779912 flexicontent_cats->getFilterValues( ) ..\select.php:250

( ! ) Notice: Trying to get property of non-object in D:\wamp\www\directory\components\com_flexicontent\classes\flexicontent.categories.php on line 386
Call Stack
# Time Memory Function Location
1 0.0285 152920 {main}( ) ..\index.php:0
2 19.9751 12041712 JSite->dispatch( ) ..\index.php:42
3 19.9822 12068112 JComponentHelper::renderComponent( ) ..\application.php:197
4 19.9859 12069568 JComponentHelper::executeComponent( ) ..\helper.php:351
5 20.0354 12112296 require_once( 'D:\wamp\www\directory\components\com_flexicontent\flexicontent.php' ) ..\helper.php:383
6 20.3183 13447000 JController->execute( ) ..\flexicontent.php:93
7 20.3184 13447144 FlexicontentController->display( ) ..\controller.php:761
8 20.3186 13447248 JController->display( ) ..\controller.php:541
9 20.7982 13936448 FlexicontentViewCategory->display( ) ..\controller.php:722
10 23.3598 15703152 FLEXIUtilities->call_FC_Field_Func( ) ..\view.html.php:645
11 23.4223 15770720 call_user_func_array ( ) ..\flexicontent.helper.php:2905
12 23.4223 15770952 plgFlexicontent_fieldsSelect->onDisplayFilter( ) ..\flexicontent.helper.php:2905
13 23.4238 15779912 flexicontent_cats->getFilterValues( ) ..\select.php:250

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

5 years 9 months ago #32926 by ggppdk
FLEXIcontent r1601 has not been tested with Joomfish for J2.5,

The error that you see is because Joomfish breaks FLEXIcontent SQL query


-- 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 review. Thanks!

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

5 years 9 months ago #32928 by dreamweaver
Just have to wait for the next release then...
Thanks

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

5 years 9 months ago #32937 by ggppdk
I will try to test with Joomfish, but i cannot say that next version will operate with it, maybe Joomfish will need to be updated too.

Besides that Joomfish has a table for associating article translations, this will need to be in sync with FLEXIcontent ...


-- 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 review. Thanks!

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

5 years 8 months ago #33533 by dreamweaver
Are there any news concerning JoomFish 2.5.1 and flexicontent ?

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

Moderators: vistamediajoomlacornerggppdk
© 2018 Flexicontent. All Rights Reserved.