Shopping Basket

 x 

Cart empty


Log In

Find Us Elsewhere

SSL

Forum Search

Keyword

Fatal error: Cannot use object of type JRegistry a

  • gcarne
  • Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
More
4 years 7 months ago - 4 years 7 months ago #3170 by gcarne
GoogleBaseXML
Joomla 2.5.19
VirtueMart 2.6.10

Just installed GoogleBaseXML successfully. When clicking on new feed, the following msg appears:

Fatal error: Cannot use object of type JRegistry as array in /home/sleepins/public_html/administrator/components/com_googlebasexml/views/googlebasexml/view.html.php on line 83.

The file view.html.php does not have a line 83. It ends with the last line 77.

Can someone please explain to a somewhat technically skilled non-programmer how to fix this. I do not want to change the settings in Joomla. Thanks.
Last edit: 4 years 7 months ago by gcarne.

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

More
4 years 7 months ago #3174 by boggler
Hello, can you tell me which version of the GooglebaseXML component you are using? This helps me to track down exactly which bit of the code is generating the error.

This sounds like a bug, which of course we will fix.

You might be looking in the wrong view.html.php, the one I am looking at has 109 lines.

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

  • gcarne
  • Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
More
4 years 7 months ago #3175 by gcarne
Hi,
The version is 4.6.1. Yes, I was looking at the wrong file. The error line 83 can be seen in the attached screen-shot.
Rgds,
Gunnar
Attachments:

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

More
4 years 7 months ago #3176 by boggler
Thanks for this, I have tracked down the error.

You can fix it with a small change to the code, in the file administrator/components/com_googlebasexml/models/googlebasexml.php, lines 148 to 149, change:
$this->params = $component->params;
return $component->params;	//return global values

to
$this->params = get_object_vars($component->params);
return $this->params;	//return global values

Sorry about this, I don't know how this mistake slipped through. We will make an update with the fix but in the meantime if you make this change it should solve it.

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

  • gcarne
  • Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
More
4 years 7 months ago #3177 by gcarne
It was not in line 148-149, but I found it in 295-297, changed it there and problem was resolved.
Thanks,
Guunnar

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

More
4 years 7 months ago #3178 by boggler
I am puzzled, it is definitely 148-9.

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

  • gcarne
  • Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
More
4 years 7 months ago #3179 by gcarne
I confirm 148-149. There must have been something in my coffee.

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

Moderators: boggler
Time to create page: 0.230 seconds

Donate to Us

If you like our extensions, consider making a donation to say thanks.