undefinade template variable on articles?

Responsive Joomla template for Entertainment and Music purpose with clean and lightweight design.
GK User
Fri Dec 21, 2012 4:37 am
hi guys

i have this error message appearing on the "about" page on my site...


Notice: Undefined variable: current_url in /home/content/11/8856911/html/theatrecircles/templates/gk_music/html/com_content/article/default.php on line 30


website http://theatrecircles.com/about

not sure why its there ... i am new to joomla 2.5, so have i missed something?

thanks!
User avatar
Platinum Boarder

GK User
Fri Dec 21, 2012 10:08 am
You should configure you server according to Joomla! requirements so disable display_errors option in PHP.ini file or ask your service provide to do this for you.
User avatar
Platinum Boarder

GK User
Sat Jan 05, 2013 11:26 am
bkrztuk wrote:You should configure you server according to Joomla! requirements so disable display_errors option in PHP.ini file or ask your service provide to do this for you.


hi there

yes - i have set that up correctly, even double checked with host, and its correct. the error is still appearing on content pages.

i think its an error n the code itself,

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

is the line its saying there is an undefined variable on... would appreciate a fix for this :)

if there is something specific in the phpini file that fixes this - not just hides it, i would appreciate that, if you could let me know how it should appear in the phpini file? i have a phpini5 file as godaddy requires it.

thanks!
User avatar
Platinum Boarder

GK User
Mon Jan 07, 2013 8:49 am
Please replace this line with this one :

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
Tue Jan 08, 2013 3:33 am
thanks! worked a treat.
User avatar
Platinum Boarder


cron