ERROR: Saving item in backend - Flexi 1.5.6

More
12 years 4 weeks ago #30221 by scorpion_pt
Hi,

Using J1.5.26 and Flexi 1.5.6 RC9 (r1528)

When in backend editing and saving an item I receive the following error from the browser:
Code:
HTTP Error 500 (Internal Server Error): An unexpected condition was encountered while the server was attempting to fulfill the request.

Nothing is saved.

In my site log I have this error:
Code:
PHP Fatal error: Cannot access empty property in /var/www/site/libraries/joomla/registry/registry.php on line 200, referer: http://www.site.com/administrator/index.php?option=com_flexicontent&controller=items&task=edit&cid[]=120


Any idea how to solve this?

Much appreciated :)

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

More
12 years 4 weeks ago #30227 by ggppdk
Do you have some custom template for the item?

does it have some parameter without type or without name?

I thought i have fixed this

To print a message when this occurs , temporarily do this in registry.php:

replace about line 200
Code:
// Get the old value if exists so we can return it $ns->$nodes[$i] =& $value;

with :

// Get the old value if exists so we can return it
Code:
if ( empty($nodes[$i]) ) { echo "<pre>"; debug_print_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS); echo "<pre>"; } $ns->$nodes[$i] =& $value;


-- 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 3 weeks ago #30264 by scorpion_pt

ggppdk wrote: Do you have some custom template for the item?

I have a custom template with the item, but same problem using a default template.

ggppdk wrote: does it have some parameter without type or without name?

No, all seems ok

ggppdk wrote: To print a message when this occurs , temporarily do this in registry.php:

Done, and returns when saving a blank page and the errors:
Code:
PHP Notice: Use of undefined constant DEBUG_BACKTRACE_IGNORE_ARGS - assumed 'DEBUG_BACKTRACE_IGNORE_ARGS' in /var/www/site/libraries/joomla/registry/registry.php on line 200, referer: http://www.site.com/administrator/index.php?option=com_flexicontent&controller=items&task=add&typeid=3&dbcfaf1468fedc9bafad2a582774c447=1 PHP Warning: debug_print_backtrace() expects exactly 0 parameters, 1 given in /var/www/site/libraries/joomla/registry/registry.php on line 200, referer: http://www.viladapraia.com/administrator/index.php?option=com_flexicontent&controller=items&task=add&typeid=3&dbcfaf1468fedc9bafad2a582774c447=1 PHP Fatal error: Cannot access empty property in /var/www/site/libraries/joomla/registry/registry.php on line 202, referer: http://www.site.com/administrator/index.php?option=com_flexicontent&controller=items&task=add&typeid=3&dbcfaf1468fedc9bafad2a582774c447=1

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

More
12 years 3 weeks ago #30269 by ggppdk
This parameter of debug_print_backtrace requires 5.3.6 or higher

run debug_print_backtrace() without the parameter'
just like:
debug_print_backtrace();


-- 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 3 weeks ago #30291 by scorpion_pt

ggppdk wrote: This parameter of debug_print_backtrace requires 5.3.6 or higher


Thanks so much George for the prompt replly ;o)

Did you mean PHP 5.3.6 ?

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

More
12 years 3 weeks ago #30292 by ggppdk
yes PHP 5.3.6 or higher

but for now just run it like this:
debug_print_backtrace();


-- 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.562 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