Author Topic: Error fethcing titles  (Read 1022 times)

JediMasterNerd

  • Newbie
  • *
  • Posts: 2
    • View Profile
Error fethcing titles
« on: January 09, 2011, 12:48:48 AM »

Decided to add some restaurant reviews to my personal site... Saw this component and it seems like it'll work out very nicely.

Downloaded and installed it (version 3.0.1). I created a couple of categories and added a review in one category. Created a default menu item, everything shows up great on the main site. It didn't have a picture on the review so I was going to play around with the image options but when I went to the admin panel and select Review Management and click on the one review I had in there I get the following error (note: nothing special about the titles in the category or the review, all single words, no special characters, etc):

Quote
Error fetching titles for review with ID '1'.
Trace:

File: /home/content/w/e/i/weisesr/html/steve/administrator/components/com_simple_review/addons/modules/Review_Module/db.php (Line: 470)
Function: Display
Args: Error fetching titles for review with ID '1'., 1
File: /home/content/w/e/i/weisesr/html/steve/administrator/components/com_simple_review/addons/modules/Review_Module/db.php (Line: 494)
Function: _GetTitles
Args: 1
File: /home/content/w/e/i/weisesr/html/steve/administrator/components/com_simple_review/addons/modules/Review_Module/Review_Module.php (Line: 255)
Function: SR_GetUnescapedTitles
Args: 1
File: /home/content/w/e/i/weisesr/html/steve/administrator/components/com_simple_review/addons/modules/Review_Module/Review_Module_Admin.php (Line: 410)
Function: SR_GetTitles
Args: 1,
File: /home/content/w/e/i/weisesr/html/steve/administrator/components/com_simple_review/addons/modules/Review_Module/Review_Module_Admin.php (Line: 167)
Function: _Edit
Args: 1
File: /home/content/w/e/i/weisesr/html/steve/administrator/components/com_simple_review/admin.simple_review.php (Line: 83)
Function: Display
Args: edit
File: /home/content/w/e/i/weisesr/html/steve/libraries/joomla/application/component/helper.php (Line: 162)
Function: require_once
Args: /home/content/w/e/i/weisesr/html/steve/administrator/components/com_simple_review/admin.simple_review.php
File: /home/content/w/e/i/weisesr/html/steve/administrator/includes/application.php (Line: 136)
Function: renderComponent
Args: com_simple_review
File: /home/content/w/e/i/weisesr/html/steve/administrator/index.php (Line: 67)
Function: dispatch
Args: com_simple_review
File: /home/content/w/e/i/weisesr/html/steve/administrator/index2.php (Line: 14)
Function: include
Args: /home/content/w/e/i/weisesr/html/steve/administrator/index.php

Thanks for any help!

J.

row1

  • SR Sole Developer
  • Hero Member
  • *****
  • Posts: 1244
    • View Profile
    • Sockware
Re: Error fethcing titles
« Reply #1 on: January 09, 2011, 03:05:33 AM »
Please try this:
Open file /administrator/components/com_simple_review/addons/modules/Review_Module/db.php
Around line 468 replace:
Code: [Select]
        if($title == false)
        {
        SRError::Display("Error fetching titles for review with ID '$reviewID'.", true);
        }

With:
Code: [Select]
        if($title == false)
        {
        $title = array();
        }

Will release an official patch this week.
If you find Simple Review useful please submit a Review (http://extensions.joomla.org/extensions/communities-&-groupware/ratings-&-reviews/4725/details), your positive reviews will help keep me going!
Please also make suggestions and possible improvements in the forum!

JediMasterNerd

  • Newbie
  • *
  • Posts: 2
    • View Profile
Re: Error fethcing titles
« Reply #2 on: January 09, 2011, 12:12:41 PM »

That did the trick, thanks!

J.

row1

  • SR Sole Developer
  • Hero Member
  • *****
  • Posts: 1244
    • View Profile
    • Sockware
Re: Error fethcing titles
« Reply #3 on: January 15, 2011, 01:25:38 AM »
Fixed and released in 3.0.2.
If you find Simple Review useful please submit a Review (http://extensions.joomla.org/extensions/communities-&-groupware/ratings-&-reviews/4725/details), your positive reviews will help keep me going!
Please also make suggestions and possible improvements in the forum!