• Home
  • Support
  • Forum
  • Cobalt 8
  • I couldn't find the error. Maybe someone could help me. I'm getting "Fatal error: Cannot use object of type JRegistry as array in /libraries/joomla/utilities/arrayhelper.php on line 281"

Konstantin
Total posts: 1,113
19 Jun 2013 22:40

http://www.mintjoomla.com/community/depot/item/244-xmap-integration-plugin-1-0-stable.html

Here I see version 1.0, on the site i find version 1.1 maybe you try update this plugin.


Guest
20 Jun 2013 05:41

URL: http://www.mintjoomla.com/community/depot/item/244-xmap-integration-plugin-1-0-stable.html

Title on the site: Xmap integration plugin - 1.1 Stable

I've installed latest versions of Joomla 3, Cobalt 8 and plg_xmap.com_cobalt.v.2.3.zip

I've attached screenshots xml and html view of my sitemap.

I think there is something wrong with expandSection and/or expandCategory, but i couldn't find out what's going wrong.


Sergey
Total posts: 13,748
20 Jun 2013 05:47

I see. Is it local? can you install something like xdebug? Then we could see where is the source or the problem through error stack.


Guest
24 Jun 2013 06:39

Installing new version 2.4 fixes this problem. But there are other bugs.

Bug 1

Line 287: $query->order($xmap->view != 'xml' ? "a.lft" : '');

ORDER BY could not be empty.

Example: http://vps26065.ovh.net/index.php?option=com_xmap& ;view=xml&tmpl=component&id=1

Bug 2

When choosen to expand all records. All records are shown even if they do not belong to this category.

Example: http://vps26065.ovh.net/index.php?option=com_xmap& ;view=html&id=1&Itemid=12

Categories are Amazon Feld, URL Feld, Gallery Feld and Gästebucheinträge.


Sergey
Total posts: 13,748
24 Jun 2013 07:52

Please provide me backend access.


Guest
24 Jun 2013 10:45

You have an account on http://vps26065.ovh.net/administrator/

Hidden text

This is a test installation. so you can change settings to what ever you want. ;-)


Sergey
Total posts: 13,748
25 Jun 2013 01:51

Fixed.


Guest
25 Jun 2013 09:59

Thank you very much Sergey.

Now the section records correct, but not the categories records. ._.


Cobalt Felder Demo - Amazon Feld -- URL mit s-shot-ru-view-snap Template -- URL mit thumbsniper-view-snap Template -- URL mit thumbsniper Template -- Gallery Feld -- Amazon (mehrere Produkte) -- Amazon (CD) -- Amazon (ohne Rezensionen und ähnliche Produkte) -- Amazon (Computer) -- Amazon (einzelnes Produkt) -- Amazon (Kamera) -- Amazon (Kaffemaschine) -- Amazon (Hörbuch) - URL Feld -- URL mit s-shot-ru-view-snap Template -- URL mit thumbsniper-view-snap Template -- URL mit thumbsniper Template -- Gallery Feld -- Amazon (mehrere Produkte) -- Amazon (CD) -- Amazon (ohne Rezensionen und ähnliche Produkte) -- Amazon (Computer) -- Amazon (einzelnes Produkt) -- Amazon (Kamera) -- Amazon (Kaffemaschine) -- Amazon (Hörbuch) - Gallery Feld -- URL mit s-shot-ru-view-snap Template -- URL mit thumbsniper-view-snap Template -- URL mit thumbsniper Template -- Gallery Feld -- Amazon (mehrere Produkte) -- Amazon (CD) -- Amazon (ohne Rezensionen und ähnliche Produkte) -- Amazon (Computer) -- Amazon (einzelnes Produkt) -- Amazon (Kamera) -- Amazon (Kaffemaschine) -- Amazon (Hörbuch)

Should be


Cobalt Felder Demo - Amazon Feld -- Amazon (mehrere Produkte) -- Amazon (CD) -- Amazon (ohne Rezensionen und ähnliche Produkte) -- Amazon (Computer) -- Amazon (einzelnes Produkt) -- Amazon (Kamera) -- Amazon (Kaffemaschine) -- Amazon (Hörbuch) - URL Feld -- URL mit s-shot-ru-view-snap Template -- URL mit thumbsniper-view-snap Template -- URL mit thumbsniper Template - Gallery Feld -- Gallery Feld

Guest
25 Jun 2013 10:20

Hello Sergey, i've added after line 369 $query->where('a.section_id = '.$section->id);

$query->where('a.categories LIKE "%'.$cat->id.'%"');

This works for me. Can you confirm this?


Sergey
Total posts: 13,748
25 Jun 2013 10:22

I have updated plugin again in Depot. PLease download and try to update it version 2.6.


Guest
25 Jun 2013 10:45

Found other bugs with article ordering. In com_cobalt.xml

<option value="modified">XMAP_OPTION_MODIFIED</option>

is ok

<option value="created">XMAP_OPTION_CREATED</option>

is ok

<option value="numcomments">XMAP_OPTION_NUMCOMMENTS</option>

There is no tabel numcomments, should it be comments?

<option value="last_comment_time">XMAP_OPTION_LAST_COMMENT_TIME</option>

There is no table last_comment_time, where do we get the data?

<option value="a.title">XMAP_OPTION_TITLE_ASC</option>

Should be a.title asc

<option value="a.title desc">XMAP_OPTION_TITLE_DESC</option>

Should be a.title

last two because we have

if($articles_order != 'a.title asc')

        {

            $query->order($articles_order . " DESC ");

        }

        else

        {

            $query->order('a.title asc');

        }

so we get ORDER BY a.title desc DESC


Sergey
Total posts: 13,748
26 Jun 2013 05:18

Updated once more. Version 2.7.


Guest
26 Jun 2013 10:14

Yes. Know all works as expected. Thank you.

I think you can mark the thread as solved. :D


Guest
26 Jun 2013 10:36

Oh no. Found another problem. In xml view there is no domain in URL. Like this index.php?option=com_cobalt&view=records&section_id=1&Itemid=20

I've added -1 Parameter to JRoute to add Domain the link.

Changed lines

256 $node->link = JRoute::_($node->link, TRUE, -1);

335 $node->link = JRoute::_($node->link, TRUE, -1);

439 $node->link = JRoute::_(Url::record($item, NULL, $section, $cat), TRUE, -1);


Sergey
Total posts: 13,748
27 Jun 2013 00:55

Changed. Will update it later on our site.

Powered by Cobalt