Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Not Able to access admin panel


knopper

Recommended Posts

I am getting this error while trying to access admin panel please help to fix it

 

// Function to reset SEO URLs database cache entries // Ultimate SEO URLs v2.2d function tep_reset_cache_data_seo_urls($action){ switch ($action){ case 'reset': case 'uninstall': tep_db_query("DELETE FROM cache WHERE cache_name LIKE '%seo_urls%'"); tep_db_query("UPDATE configuration SET configuration_value='false' WHERE configuration_key='SEO_URLS_CACHE_RESET'"); if ($action == 'reset') break; tep_db_query("DELETE FROM configuration_group WHERE configuration_group_title LIKE '%seo_urls%'"); tep_db_query("DELETE FROM configuration WHERE configuration_key LIKE 'SEO%' OR configuration_key LIKE 'USE_SEO%'"); break; default: break; } # The return value is used to set the value upon viewing # It's NOT returining a false to indicate failure!! return 'false'; }
Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /hermes/web10/b936/pow.delhibuyin/htdocs/admin/includes/functions/general.php:10) in /hermes/web10/b936/pow.delhibuyin/htdocs/admin/includes/functions/sessions.php on line 102
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /hermes/web10/b936/pow.delhibuyin/htdocs/admin/includes/functions/general.php:10) in /hermes/web10/b936/pow.delhibuyin/htdocs/admin/includes/functions/sessions.php on line 102
Warning: Cannot modify header information - headers already sent by (output started at /hermes/web10/b936/pow.delhibuyin/htdocs/admin/includes/functions/general.php:10) in /hermes/web10/b936/pow.delhibuyin/htdocs/admin/includes/functions/general.php on line 44

Link to comment
Share on other sites

You installed Ultimate SEO URLs v2.2 ... I'm pretty sure you didn't install it properly. You either didn't edit something properly, or didn't upload a file or something. Just reinstall the contribution and follow the instructions more carefully ... it's not too difficult. Let us know how it works ...

Jason

 

Simple 1-2-3 Intructions on how to get, install and configure SSL

 

The Google Sandbox explained

 

Simple to follow instructions on how to change the look of your OSC

 

How To Make A Horrible OSC Website

 

my toolbox: All things WordPress-related - All things Adobe-related - PHP Designer 2007 - Codecanyon Junkie - Crimson Editor - Winmerge - phpMyAdmin - WS_FTP

 

my installed contributions: Category Banners, File Upload feature-.77, Header Tags, Sort_Product_Attributes_1, XSellv2.3, Price Break 1.11.2, wishlist 3.5, rollover_category_images_v1.2, Short_Description_v2.1, UPSXML_v1_2_3, quickbooks qbi_v2_10, allprods v4.4, Mouseover-effect for image-buttons 1.0, Ultimate_SEO, AAP 1.41, Auto Select State Value, Fast Easy Checkout, Dynamic SiteMap v2.0, Image Magic, Links Manager 1.14, Featured Products, Customer Testimonials, Article Manager, FAQ System, and I'm sure more ...

Link to comment
Share on other sites

maybe wrong linebreaks when you added the reset function to admin/includes/general.php ?

:-)

Monika

 

addicted to writing code ... can't get enough of databases either, LOL!

 

my toolbox: Textpad - Compare and Merge - phpMyAdmin - WS_FTP - Photoshop - How to search the forum

 

Interactive Media Award July 2007 ~ category E-Commerce

my advice on the forum is for free, PMs where you send me work are considered consultation which I charge for ...

Link to comment
Share on other sites

I reinstalled it but getting same error.

 

And here is my gernal.php

I edited above ?> this code only

 

// Function to reset SEO URLs database cache entries

// Ultimate SEO URLs v2.2d

function tep_reset_cache_data_seo_urls($action){

switch ($action){

case 'reset':

case 'uninstall':

tep_db_query("DELETE FROM cache WHERE cache_name LIKE '%seo_urls%'");

tep_db_query("UPDATE configuration SET configuration_value='false' WHERE configuration_key='SEO_URLS_CACHE_RESET'");

 

if ($action == 'reset') break;

 

tep_db_query("DELETE FROM configuration_group WHERE configuration_group_title LIKE '%seo_urls%'");

tep_db_query("DELETE FROM configuration WHERE configuration_key LIKE 'SEO%' OR configuration_key LIKE 'USE_SEO%'");

break;

default:

break;

}

# The return value is used to set the value upon viewing

# It's NOT returining a false to indicate failure!!

return 'false';

}

 

Link to comment
Share on other sites

in your OP, you copied the exact error message that you keep getting? it's still the same?

 

I ask because it displays the code from general.php, and in a commented out fashion ... it looks as if you added the function BELOW the finishing ?>, not above it.

 

check if you have a second set of closing php tags!

:-)

Monika

 

addicted to writing code ... can't get enough of databases either, LOL!

 

my toolbox: Textpad - Compare and Merge - phpMyAdmin - WS_FTP - Photoshop - How to search the forum

 

Interactive Media Award July 2007 ~ category E-Commerce

my advice on the forum is for free, PMs where you send me work are considered consultation which I charge for ...

Link to comment
Share on other sites

in your OP, you copied the exact error message that you keep getting? it's still the same?

 

I ask because it displays the code from general.php, and in a commented out fashion ... it looks as if you added the function BELOW the finishing ?>, not above it.

 

check if you have a second set of closing php tags!

 

That error is fixed now buy adding above it.

But i am getting one more error

Fatal error: Call to undefined function tep_get_languages() in /hermes/web10/b936/pow.delhibuyin/htdocs/admin/login.php on line 79

its so annoying

Link to comment
Share on other sites

well ... open your general.php again and search for that function ... tep_get_languages ... it should be there.

 

if not, you have lost it somehow ;-)

 

in that case add this:

 

 

 function tep_get_languages() {
   $languages_query = tep_db_query("select languages_id, name, code, image, directory from " . TABLE_LANGUAGES . " order by sort_order");
   while ($languages = tep_db_fetch_array($languages_query)) {
     $languages_array[] = array('id' => $languages['languages_id'],
                                'name' => $languages['name'],
                                'code' => $languages['code'],
                                'image' => $languages['image'],
                                'directory' => $languages['directory']);
   }

   return $languages_array;
 }

:-)

Monika

 

addicted to writing code ... can't get enough of databases either, LOL!

 

my toolbox: Textpad - Compare and Merge - phpMyAdmin - WS_FTP - Photoshop - How to search the forum

 

Interactive Media Award July 2007 ~ category E-Commerce

my advice on the forum is for free, PMs where you send me work are considered consultation which I charge for ...

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...