Error Notice for all our articles

Rate this topic: Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.1.00 out of 6 based on 1 vote(s)
GK User
Sat Jan 19, 2013 9:51 am
Reply with quote
Report this post
Hello,

On our site we're getting the following error messages for all our articles in the JReviews component

Warning: Invalid argument supplied for foreach() in /home/queermag/public_html/templates/gk_news/html/com_content/article/default.php on line 13

Notice: Undefined variable: current_url in /home/queermag/public_html/templates/gk_news/html/com_content/article/default.php on line 25

Here is link to one of the articles with this error http://queermagazineonline.com/index.ph ... Itemid=362

How can we fix this?

Thanks!

Anders
User avatar
Senior Boarder

GK User
Sun Jan 20, 2013 2:37 pm
Reply with quote
Report this post
Please open this file :

[url]html/com_content/article/default.php[/url]

and find line :

[url]$cur_url = preg_replace('@%[0-9A-Fa-f]{1,2}@mi', '', htmlspecialchars($current_url, ENT_QUOTES, 'UTF-8'));[/url]

and replace with :

Code: Select all
$cur_url = preg_replace('@%[0-9A-Fa-f]{1,2}@mi', '', htmlspecialchars($cur_url, ENT_QUOTES, 'UTF-8'));
User avatar
Platinum Boarder

GK User
Sun Jan 20, 2013 3:05 pm
Reply with quote
Report this post
Thanks for your reply bkrztuk.
With your solution we have got rid of one of the error messages.

Any ideas how we can solve this one? Warning: Invalid argument supplied for foreach() in /home/queermag/public_html/templates/gk_news/html/com_content/article/default.php on line 13
User avatar
Senior Boarder

GK User
Mon Jan 21, 2013 2:12 pm
Reply with quote
Report this post
Did you made a Joomla! upgrade from previous version via jUpgrade or some similar extension ? Best solution is to configure server according to Joomla! requirements so disable display_errors in PHP configuration.
User avatar
Platinum Boarder

GK User
Mon Jan 21, 2013 8:44 pm
Reply with quote
Report this post
bkrztuk wrote:Did you made a Joomla! upgrade from previous version via jUpgrade or some similar extension ? Best solution is to configure server according to Joomla! requirements so disable display_errors in PHP configuration.


Yes we did a Joomla upgrade via jUpgrade.
Problem solved :D

Thank you so much for the help you gave me. I greatly appreciate the assistance you have provided me.

Anders
User avatar
Senior Boarder

GK User
Tue Jan 22, 2013 10:19 am
Reply with quote
Report this post
The jUpgrade update not fill all details in Joomla! tables we've noticed this problem several times but disabling displaying errors is the best solution.
User avatar
Platinum Boarder


cron