[replace ...] Problem with Save/Update (Frontend & Backend)

More
11 years 7 months ago #41544 by mauriestate
Hi,

The issue is while trying to add/save a new item and also when updating an existing item, when we click on add/return button, instead of being redirected to the specific URL (frontend) and to item list (backend), we are redirected to a blank page!

As described above, this problem occurs both in frontend and backend! However, the item is saved and if we went to item list (both backend and frontend), we can see the item is there and it has been saved correctly, the only issue is about the redirection that needs to redirect the user after an item is added/updated.

Offering professional real estate and investment services in Mauritius. Visit us at www.sjkestate.com to also see the power of Flexicontent with Joomla to promote our services.

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

More
11 years 7 months ago #41545 by ggppdk
Hello

Joomla version and FC version?

Please enable error reporting parameter of joomla global configuration to simple or maximum (but not in developer option) and resave an item, this will show the php fatal error that causes the blank page


-- 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
11 years 7 months ago #41546 by mauriestate
Hi,

Thanks for this very quick reply, sorry forget to mention about versions, so:

Joomla v3.1.5
FC v2.1.1_r1793

So, after enabling Joomla debug mode to yes and error reporting to simple, first, on the edit page, got these two warnings:
Code:
Warning: explode() expects parameter 2 to be string, array given in /home/xxxxxx/public_html/plugins/flexicontent_fields/textarea/textarea.php on line 68 Warning: in_array() expects parameter 2 to be array, null given in /home/xxxxxx/public_html/plugins/flexicontent_fields/textarea/textarea.php on line 73

Secondly, when I click on save, got this php fatal error:
Code:
Fatal error: Call to undefined method JUtility::sendMail() in /home/xxxxxx/public_html/administrator/components/com_flexicontent/models/parentclassitem.php on line 3885

Offering professional real estate and investment services in Mauritius. Visit us at www.sjkestate.com to also see the power of Flexicontent with Joomla to promote our services.

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

More
11 years 7 months ago #41547 by ggppdk
Hello

it is the (New/Updated) Content notifications that fails (done after saving), which you seem to have enabled

- this bug is due to a not loaded file (occurs in J3.x)

and it was fixed after r1793,

-- please install: v2.1.2 r1798 beta
code.google.com/p/flexicontent/downloads/list

... and ... about the warning (we will commit fix), replace line giving the warning:
Code:
$skip_buttons = explode('|',$skip_buttons);
with:
Code:
$skip_buttons = is_array($skip_buttons) ? $skip_buttons : explode('|',$skip_buttons);

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
11 years 7 months ago #41767 by mauriestate
Hi,

I followed your advice and updated FC to com_flexicontent_v2.1.2_r1802_J25_J32_alpha.zip that is found on code.google.com/p/flexicontent/downloads/list however, still get the error message:

Fatal error: Call to undefined method JUtility::sendMail() in /home/golfplus/public_html/administrator/components/com_flexicontent/models/parentclassitem.php on line 3885

While saving/editing item in FC! Additionally, we are not receiving any notification(s) when new article are submitted/edited!

Offering professional real estate and investment services in Mauritius. Visit us at www.sjkestate.com to also see the power of Flexicontent with Joomla to promote our services.

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

More
11 years 7 months ago #41768 by ggppdk
Hello

it seems that only the notification plugin was patched,

edit the file giving you this error:
(that is )
administrator/components/com_flexicontent/models/parentitemclass.php

and just above the line that gives the error add:
jimport( 'joomla.mail.helper' );

so
Code:
jimport( 'joomla.utilities.utility' ); $send_result = JUtility::sendMail(
will become
Code:
jimport( 'joomla.utilities.utility' ); jimport( 'joomla.mail.helper' ); $send_result = JUtility::sendMail(


-- 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.400 seconds
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
Save