Viewing 15 posts - 1 through 15 (of 23 total)
  • Author
    Posts
  • thatch10 Friend
    #1056554

    Hi 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, Error with font awesome icons

    Changing flexicontent to display normal images OK with Images

    or text displays ok OK with Images

    if I hit the edit to get to the url Edit Article a receive an error message

    Error with edit selected

    Call to undefined method stdClass::getProperties()

    Changing the default template to protostar Icons Now In View

    The Icons are now in view Edit Now Works OK

    And the edit function works ok.

    • This topic was modified 6 years, 8 months ago by  thatch10.
    • This topic was modified 6 years, 8 months ago by  thatch10. Reason: Adding last information reference the edit option
    thatch10 Friend
    #1056570

    So 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 Moderator
    #1056821

    Hi,

    You can share the FTP account also for further investigation.

    Regards

    thatch10 Friend
    #1056951
    This reply has been marked as private.
    Saguaros Moderator
    #1057148

    Hi,

    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 Friend
    #1057160

    Saguaros, 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

    https://prnt.sc/g9ythc

    Thatch

    Saguaros Moderator
    #1057161

    Hi 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 Friend
    #1057167

    I 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 Moderator
    #1057170

    It seems that you’re editing that membership page also, you can logout and I will set for you to replicate issue.

    thatch10 Friend
    #1057183

    I am logged out please try again

    Saguaros Moderator
    #1057188

    I 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 Friend
    #1057207

    Saguaros,

    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 Template

    Then 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 Friend
    #1057208

    The 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 6 years, 8 months ago by  thatch10. Reason: Edited to show latest recommended code
    thatch10 Friend
    #1057210

    Saguaros,

    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 Friend
    #1057212

    Developer 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;
                }
            }
    
Viewing 15 posts - 1 through 15 (of 23 total)

This topic contains 22 replies, has 3 voices, and was last updated by  Saguaros 6 years, 7 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum