Error when I try to create or edit Menus in Joomla.

Home Forums Joomla Templates Oyster – Creative Photography Joomla Template Error when I try to create or edit Menus in Joomla.

This topic contains 16 replies, has 4 voices, and was last updated by  CTHthemes 6 months, 3 weeks ago.

Viewing 17 posts - 1 through 17 (of 17 total)
  • Author
    Posts
  • #23640

    emilio_n
    Participant

    Support Expired

    Good morning,
    Suddenly I discover that I can’t create or modify menus in my Joomla installation with Oyster template.

    I try to fix it but I can’t find how to do. I contacted with the support of K2 thinking that could be a problem with this component, but they told me that is not related with K2.

    In debug mode this is the error I get:

    0 Cannot use object of type stdClass as array
    /home/emiliona/public_html/plugins/system/uniquestyle/uniquestyle.php:23

    Is possible that is related with Oyster template or Azure page builder?
    Thanks in advance for your help.

    #23645

    CTHthemes
    Keymaster

    Hi, send me your site admin + ftp account to check.

    Thanks.

    #23646

    emilio_n
    Participant

    Support Expired
    This reply has been marked as private.
    #23647

    emilio_n
    Participant

    Support Expired
    This reply has been marked as private.
    #23648

    CTHthemes
    Keymaster

    Hi, the problem was fixed.
    You can delete the browser cache then check.
    The problem occurs with joomla 3.8.10

    Thank you.

    #23649

    emilio_n
    Participant

    Support Expired

    working!!
    Thank you very much for the super fast response and for fix the problem.

    #23655

    CTHthemes
    Keymaster

    You are welcome πŸ™‚

    #28031

    sektor
    Participant

    Support Expired

    Hello,

    after update to Joola 3.8.12 I have the same problem. Error-Code β€žCannot use object of type stdClass as arrayβ€œ when I try to edit menues.

    Thanks in advance for your help.

    #28041

    CTHthemes
    Keymaster

    Hi sektor,
    Send me your administrator + ftp accounts then I will help.

    #28054

    sektor
    Participant

    Support Expired
    This reply has been marked as private.
    #28085

    CTHthemes
    Keymaster

    Hi sektor,
    Please delete your browser cache then check if the problem was fixed?

    #28101

    sektor
    Participant

    Support Expired

    Hi Keymaster,

    the problem is fixed. Thank you very much for your quick help.

    Best regards
    Martin

    #28102

    CTHthemes
    Keymaster

    You are welcome

    #29235

    nickyiac
    Participant

    Support Expired

    Hi.

    I get exactly the same error message:
    0 cannot use object of type stdclass as array

    Thank you in advance for your help.

    Nick

    #29244

    CTHthemes
    Keymaster

    Try this fix from UniqueStyle plugin: http://prntscr.com/md9lzc

    
    <?php
    defined('_JEXEC') or die('Restricted access');
    jimport('joomla.plugin.plugin');
    
    class plgSystemUniqueStyle extends JPlugin
    {
    	var $plugin = null;
        var $plgParams = null;
        var $time = 0;
    
        function __construct(&$subject, $config)
        {
            parent::__construct($subject, $config);
            $lang = JFactory::getLanguage();
            $lang->load('plg_uniquestyle', JPATH_ADMINISTRATOR);
        }
    
    	function onContentPrepareForm($form, $data)
    	{
    		// echo'<pre>';
    		// var_dump($form);
    		// var_dump($data);die;
    		if(is_array($data)){
    			if( $form->getName() == 'com_menus.item' && ( isset($data['request']) && isset($data['request']['option']) && $data['request']['option'] == 'com_k2' && isset($data['request']['view']) && $data['request']['view'] == 'itemlist' /* && isset($data['request']['layout']) && $data['request']['layout'] == 'category' */ ) )
    			{
    				$xmlFile = dirname(__FILE__) . '/params';
    				JForm::addFormPath($xmlFile);
    				$form->loadFile('params', false);
    			}
    		}else{
    			if( $form->getName() == 'com_menus.item' && ( isset($data->request) && isset($data->request['option']) && $data->request['option'] == 'com_k2' && isset($data->request['view']) && $data->request['view'] == 'itemlist' /* && isset($data['request']['layout']) && $data['request']['layout'] == 'category' */ ) )
    			{
    				$xmlFile = dirname(__FILE__) . '/params';
    				JForm::addFormPath($xmlFile);
    				$form->loadFile('params', false);
    			}
    		}
    			
    	}
    
    }
    
    
    #29260

    nickyiac
    Participant

    Support Expired

    It Works πŸ™‚

    Perfect!!! Thank you.

    #29288

    CTHthemes
    Keymaster

    You are welcome πŸ™‚

Viewing 17 posts - 1 through 17 (of 17 total)

You must be logged in to reply to this topic.

New featues: CityBook - Listing & Directory WordPress Theme version 2.1.8 was outUpdate now
+