Undefined index

20.07.2012 20:17
#1
tc001mt
Joomshopping forum user no avatar
Name: mauro
01.05.2011
Posts: 15
Quote
[solved] Undefined index

Hello , after upgrade to latest version i have this error

Notice: Undefined index: controller in /home/xxxxx/public_html/pizzaminsk.by/components/com_jshopping/router.php on line 30

Notice: Undefined index: controller in /home/xxxxx/public_html/pizzaminsk.by/components/com_jshopping/router.php on line 47

I tried to unistall and reistall but is the same


Joomla: 2.5.6
JoomShopping: 3.7.2
PHP: 5.2.17
MySQL: 5.5.23-55
Website Url: http://pizzaminsk.by

Letzte Änderung: 22.07.2012 20:53
 
20.07.2012 21:10
#2
webdesigner
(Support Team)
User webdesigner
Name: Admin
05.08.2010
Posts: 16475
Quote
Aw: Undefined index

Disable display notice

 
20.07.2012 22:34
#3
tc001mt
Joomshopping forum user no avatar
Name: mauro
01.05.2011
Posts: 15
Quote
Aw: Undefined index

thank you for interested.. where is?

 
20.07.2012 22:40
#4
webdesigner
(Support Team)
User webdesigner
Name: Admin
05.08.2010
Posts: 16475
Quote
Aw: Undefined index

.htaccess in root folder

php_value error_reporting 1

 
20.07.2012 22:41
#5
tc001mt
Joomshopping forum user no avatar
Name: mauro
01.05.2011
Posts: 15
Quote
Aw: Undefined index

uppsss ok , many many thanks

 
22.07.2012 11:18
#6
tc001mt
Joomshopping forum user no avatar
Name: mauro
01.05.2011
Posts: 15
Quote
Aw: Undefined index

I am sorry, with hoster we disabled all informational about error but nothing changed.
This is answer from hostgator:
==============================
This error is in the way the component is written. In the router.php script, it calls the controller subset a few times like
Line 30: "if ($query['controller']=="category" && $query['task']=="view" && $query['category_id']){"
after setting it to a temporary variable designed for doing the lookups anyway, and in the calls like the ones listed there are no sanity checks to make sure the variable is set.

Visiting http://pizzaminsk.by/info.php you can see that error_reporting is unset and display_errors is off. Unfortunately, we aren't supposed to change and fix the code for you, because not being experts in the code base you're using, we'd be liable if something worked incorrectly after our changes. You will either need to follow the developer's instructions to fix it or have the developer fix it for you
===============================

if i disable "Search Engine Friendly URLs" in joomla global error disappear

if ideas ...


Letzte Änderung: 22.07.2012 11:20
 
22.07.2012 20:01
#7
webdesigner
(Support Team)
User webdesigner
Name: Admin
05.08.2010
Posts: 16475
Quote
Aw: Undefined index

Change

$query['controller']

to

$controller


rows 30 and 47


try add
error_reporting(E_ALL & ~E_NOTICE);

after
function jshoppingBuildRoute(&$query){


Letzte Änderung: 22.07.2012 20:02
 
22.07.2012 20:52
#8
tc001mt
Joomshopping forum user no avatar
Name: mauro
01.05.2011
Posts: 15
Quote
Aw: Undefined index

perfect! works, thank you!

 
Copyrights MAXXmarketing GmbH. All Rights Reserved