Post by sferguson98 » Fri Oct 01, 2010 2:45 am

When I upgraded from 1.4.1.1 to 1.4.9.1, I logged into the admin site but I only get this,

Notice: Undefined index: in /home/blessedn/public_html/store1/admin/index.php on line 119Notice: Undefined index: in /home/blessedn/public_html/store1/admin/index.php on line 121Notice: Undefined index: in /home/blessedn/public_html/store1/admin/index.php on line 122Warning: Cannot modify header information - headers already sent by (output started at /home/blessedn/public_html/store1/admin/index.php:72) in /home/blessedn/public_html/store1/system/engine/controller.php on line 27

Please help!

Thanks

Newbie

Posts

Joined
Fri Mar 12, 2010 11:53 pm

Post by JAY6390 » Fri Oct 01, 2010 8:20 am

Post those three lines (or the whole file). We can't read minds ;)

Image


User avatar
Guru Member

Posts

Joined
Wed May 26, 2010 11:47 pm
Location - United Kingdom

Post by sferguson98 » Fri Oct 01, 2010 11:04 pm

Sorry, I thought they were not specific to my installation, (lines 119,121, 122)

$config->set('config_language_id', $languages[$config->get('config_admin_language')]['language_id']);
$language = new Language($languages[$config->get('config_admin_language')]['directory']);
$language->load($languages[$config->get('config_admin_language')]['filename']);

Also this the line 72 of index.php refered to,

echo '<b>' . $error . '</b>: ' . $errstr . ' in <b>' . $errfile . '</b> on line <b>' . $errline . '</b>';

And the one in line 27 of controller.php,

header('Location: ' . str_replace('&', '&', $url));

Newbie

Posts

Joined
Fri Mar 12, 2010 11:53 pm

Post by sferguson98 » Tue Oct 05, 2010 1:11 am

I found the solution provided by HKOCK regarding an earlier version, 1.4.6.

Here's the code change for index.php
//----------------------------------------------------------------------------------------------------------
// HJK
//$config->set('config_language_id', $languages[$config->get('config_admin_language')]['language_id']);
$config->set('config_language_id', 1);
//$language = new Language($languages[$config->get('config_admin_language')]['directory']);
$language = new Language('english');
//$language->load($languages[$config->get('config_admin_language')]['filename']);
$language->load('english');
//----------------------------------------------------------------------------------------------------------

and here's the topic I found it in,

http://forum.opencart.com/viewtopic.php?f=19&t=12912

Thanks HKOCK for the fix :)

Newbie

Posts

Joined
Fri Mar 12, 2010 11:53 pm

Post by Qphoria » Tue Oct 05, 2010 1:22 am

eh.. that is not the fix. It might work, but that will just lead to problems later

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by FxMan » Sun Nov 07, 2010 12:42 pm

I have same problem as sferguson98.

If what he posted is not the fix, then what is?

Notice: Undefined index: in /homepages/46/d322660780/htdocs/admin/index.php on line 119Notice: Undefined index: in /homepages/46/d322660780/htdocs/admin/index.php on line 121Notice: Undefined index: in /homepages/46/d322660780/htdocs/admin/index.php on line 122Warning: Cannot modify header information - headers already sent by (output started at /homepages/46/d322660780/htdocs/admin/index.php:72) in /homepages/46/d322660780/htdocs/system/engine/controller.php on line 27

New member

Posts

Joined
Fri May 15, 2009 7:18 am
Who is online

Users browsing this forum: No registered users and 7 guests