Tagged: Flexicontent, font-awesome, Front End Edit, JA Uber, t3
-
AuthorPosts
-
thatch10 Friend
thatch10
- Join date:
- May 2008
- Posts:
- 104
- Downloads:
- 154
- Uploads:
- 8
- Thanks:
- 11
- Thanked:
- 19 times in 1 posts
August 15, 2017 at 10:52 am #1056554Hi all I have hit a problem using flexicontent, in fact a couple of problems which I cant work out. Joomla version is 3.7.4 PHP 7.0.15 Flexicontent is 3.2.0.1
My problem is that with JA Uber template enabled the font awsesome icons for edit and print are two small lines,
Changing flexicontent to display normal images
or text displays ok
if I hit the edit to get to the url Edit Article a receive an error message
Call to undefined method stdClass::getProperties()
Changing the default template to protostar
The Icons are now in view
And the edit function works ok.
thatch10 Friendthatch10
- Join date:
- May 2008
- Posts:
- 104
- Downloads:
- 154
- Uploads:
- 8
- Thanks:
- 11
- Thanked:
- 19 times in 1 posts
August 15, 2017 at 11:26 am #1056570So legacy options on the template configuration is responsible for the font awesome icons not appearing correctly, changing this setting allows the icon to display correctly, however the front end edit issue still gives the error
Call to undefined method stdClass::getProperties()
Saguaros ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
August 16, 2017 at 4:58 pm #1056821Hi,
You can share the FTP account also for further investigation.
Regards
thatch10 Friendthatch10
- Join date:
- May 2008
- Posts:
- 104
- Downloads:
- 154
- Uploads:
- 8
- Thanks:
- 11
- Thanked:
- 19 times in 1 posts
August 17, 2017 at 9:46 am #1056951This reply has been marked as private.Saguaros ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
August 18, 2017 at 8:15 am #1057148Hi,
I tried to assign to default template of Joomla – Protostar but the same message appears: http://prntscr.com/g9ythc
Could you check again? and share with provider of Flexicontent for further checking.
thatch10 Friendthatch10
- Join date:
- May 2008
- Posts:
- 104
- Downloads:
- 154
- Uploads:
- 8
- Thanks:
- 11
- Thanked:
- 19 times in 1 posts
August 18, 2017 at 9:08 am #1057160Saguaros, I cant get that message on the site with Prostar set as default,
which page gave you this error?
The site is currently set to Prostar and edit is working for me on all pages, I will ask the question over at Flexicontent, however I will need to reproduce this under Prostar and cannot currently see the same page that you have screen shot here
Thatch
Saguaros ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
August 18, 2017 at 9:23 am #1057161Hi Thatch,
You can go to Admin panel > Extensions > Templates > Protostar and assign to Membership menu item page (like the screenshot in your first post).
Regards
thatch10 Friendthatch10
- Join date:
- May 2008
- Posts:
- 104
- Downloads:
- 154
- Uploads:
- 8
- Thanks:
- 11
- Thanked:
- 19 times in 1 posts
August 18, 2017 at 9:51 am #1057167I have raised the question on the flexicontent forum but still unable to reproduce in the prostart template.
http://www.bbha.co.uk/benefits-of-membership?task=edit
Thatch
Saguaros ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
August 18, 2017 at 10:06 am #1057170It seems that you’re editing that membership page also, you can logout and I will set for you to replicate issue.
thatch10 Friendthatch10
- Join date:
- May 2008
- Posts:
- 104
- Downloads:
- 154
- Uploads:
- 8
- Thanks:
- 11
- Thanked:
- 19 times in 1 posts
August 18, 2017 at 10:55 am #1057183I am logged out please try again
Saguaros ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
August 18, 2017 at 11:03 am #1057188I assigned Protostar to this page only: http://www.bbha.co.uk/benefits-of-membership
This page displays FLEXIContent item, you can send them to take a look and see the same issue as my screenshot above.
thatch10 Friendthatch10
- Join date:
- May 2008
- Posts:
- 104
- Downloads:
- 154
- Uploads:
- 8
- Thanks:
- 11
- Thanked:
- 19 times in 1 posts
August 18, 2017 at 12:47 pm #1057207Saguaros,
Thanks for the assistance here, In this configuration there are still plugins being run from the Joomlart Install, I believe at the moment that this is where this error is coming from.
At the suggestion of the flexicontent developer I have Added to the error.php file of the Prostar TemplateThen navigating to
http://www.bbha.co.uk/membership?task=edit
<br/> <span class="label label-inverse"><?php echo $this->error->getLine(); ?></span> <?php echo htmlspecialchars($this->error->getFile(), ENT_QUOTES, 'UTF-8');?>
This initially gave an error on Line 2089 -htdocs/administrator/components/com_sh404sef/classes/router.php
This didn’t make sense as sh404sef was running with both templates, turning off sh404sef, gave
an error on Line 394 – htdocs/plugins/system/t3/includes/core/bot.php
$fdata = empty($data) ? $input->post->get('jform', array(), 'array') : (is_object($data) ? $data->getProperties() : $data);
Thatch
thatch10 Friendthatch10
- Join date:
- May 2008
- Posts:
- 104
- Downloads:
- 154
- Uploads:
- 8
- Thanks:
- 11
- Thanked:
- 19 times in 1 posts
August 18, 2017 at 12:55 pm #1057208The recommended change from Flexicontent developer is
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; } }
- This reply was modified 7 years, 3 months ago by thatch10. Reason: Edited to show latest recommended code
thatch10 Friendthatch10
- Join date:
- May 2008
- Posts:
- 104
- Downloads:
- 154
- Uploads:
- 8
- Thanks:
- 11
- Thanked:
- 19 times in 1 posts
August 18, 2017 at 1:08 pm #1057210Saguaros,
Making the recommended changes to the bot.php file has resolved the editing issue with flexicontent on the membership page which is set in the prostar template.
This has also resolved the issue in the Uber Template
Selecting the sh404sef component back on the issue is also resolved.
Can you recommend the changes to the T3 bot.php code to your developers?
The Developer on flexicontent states that your code assumes that when $data is an object then it is a JObject could this occur elsewhere in the code?
Thatch
thatch10 Friendthatch10
- Join date:
- May 2008
- Posts:
- 104
- Downloads:
- 154
- Uploads:
- 8
- Thanks:
- 11
- Thanked:
- 19 times in 1 posts
August 18, 2017 at 1:40 pm #1057212Developer has posted
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
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; } }
-
AuthorPosts
This topic contains 22 replies, has 3 voices, and was last updated by Saguaros 7 years, 2 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum