Front End Editing in Flexicontent with Joomlart Uber T3 template

More
8 years 5 months ago #68962 by thatch10
Good morning George,

I am struggling with front end editing of articles when using a Joomlart JA Uber as the default template, the message that I am receiving with the uber template is

Call to undefined method stdClass::getProperties()

I have gone to Joomlart forum here
www.joomlart.com/forums/topic/front-end-...ontent/#post-1057160

showing them the issues experienced with the Uber Template,

They have assigned the prostar template here and have seen the same message,

prnt.sc/g9ythc

this is not something that I have been able to repeat, however they have suggested that I raise the question on the flexicontent forum.

Have you seen this before?

Changing the configuration of flexicontent to allow the article to link to the back end works ok as this is not attempting to load the template.

Thanks in advance.

Thatch

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

More
8 years 5 months ago #68964 by ggppdk
Hello

Changing the configuration of flexicontent to allow the article to link to the back end works ok as this is not attempting to load the template.


It is not only template
also various plugins will not execute in backed

Also are you using FLEXIcontent v3.2.0.1 ?


To see where the error occurs:
Edit file:
templates/Your_Joomla_Template/error.php

Find in it
Code:
<span class="label label-inverse"><?php echo $this->error->getCode(); ?></span> <?php echo htmlspecialchars($this->error->getMessage(), ENT_QUOTES, 'UTF-8');?>

and temporarilly add:
Code:
<br/> <span class="label label-inverse"><?php echo $this->error->getLine(); ?></span> <?php echo htmlspecialchars($this->error->getFile(), ENT_QUOTES, 'UTF-8');?>

Then open form in frontend and see where the error is occuring
copy the information here
then restore your error.php


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

More
8 years 5 months ago #68965 by thatch10
George

Error comes up as

/htdocs/administrator/components/com_sh404sef/classes/router.php

Thatch

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

More
8 years 5 months ago #68966 by thatch10
Turning Off sh404sef the error then states

/home/linweb35/b/bbha.co.uk/user/htdocs/plugins/system/t3/includes/core/bot.php

back to the template T3 plugin

Thatch

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

More
8 years 5 months ago #68967 by ggppdk
Hello


besides the file
you also need to note the LINE that the error is occuring


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

More
8 years 5 months ago #68968 by thatch10
George,

Ok its error is line 394 on the file plugins/system/t3/includes/core/bot.php

$fdata = empty($data) ? $input->post->get('jform', array(), 'array') : (is_object($data) ? $data->getProperties() : $data);

Thatch

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

More
8 years 5 months ago - 8 years 5 months ago #68969 by ggppdk
Hello

their code assumes that when $data is an object then it is a \JObject

(possibly) correct code for them to use is :
Code:
if (empty($data)) { $fdata = $input->post->get('jform', array(), 'array'); } // Ensure the input data is an array. elseif (is_object($data)) { if ($data instanceof Registry) { // Handle a Registry. $fdata = $data->toArray(); } elseif ($data instanceof \JObject) { // Handle a JObject. $fdata = $data->getProperties(); } else { // Handle other types of objects. $fdata = (array) $data; } }


Note the part
Code:
if (is_object($data)) { ... }
is from Joomla core

please pass the above information


-- 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!
Last edit: 8 years 5 months ago by ggppdk.

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

More
8 years 5 months ago #68970 by thatch10
George,

I have passed this back to the Joomlart team, thanks very much for your assistance.

Thatch

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

More
8 years 5 months ago #68971 by thatch10
I have added the code to the file on my server and this appears to have resolved the issue and I can now edit through to flexicontent.

I have passed your recommended change back to the Joomlart developers through their forum.

Thanks again

Thatch

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

More
8 years 5 months ago #68972 by ggppdk
Hello

if you want to use the code sample that i provided then you will need to use:

$fdata =
instead of
$data =

i have edit my previous message and updated my code sample to use correct variable name

so now it should be appropriate for you to use,

please use the updated code


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

Moderators: vistamediajoomlacornerggppdk
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