Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Error in Admin/categories.php


jessegour

Recommended Posts

Please help as I have no time. If someone can really help me.. I get this error in admin area:

 

Fatal error: Call to undefined function tep_hide_session_id() in /home2/kidz/public_html/store/admin/categories.php on line 746

 

Please help me solve. I was trying to up load Multi_images but it didn't work.So I decided to go without it. Please help me solve this. thank you so much

 

Regards

 

Jess

Link to comment
Share on other sites

Please help as I have no time. If someone can really help me.. I get this error in admin area:

 

Fatal error: Call to undefined function tep_hide_session_id() in /home2/kidz/public_html/store/admin/categories.php on line 746

 

Please help me solve. I was trying to up load Multi_images but it didn't work.So I decided to go without it. Please help me solve this. thank you so much

 

Regards

 

Jess

Have you tried resoring your back up files (the ones you made before editing)?

 

What does line 746 of admin/categories.php say?

Link to comment
Share on other sites

The short term solution might be to copy that function from your /includes/functions/html_output.php file into the /admin/includes/functions/html_output.php

 

Don't misunderstand.

 

I'm not saying to copy the entire file, only one small segment of the code (just that one function).

 

The long term solution is to find out why the code is in your admin to begin with?

:unsure:

 

As far as I know session ID's aren't used in the admin because it's part of what osC uses to tell customers apart.

 

If you have customers in your admin, you've got bigger problems!

:lol:

 

Personally, I'd go with what Coop said:

 

Have you tried restoring your back up files (the ones you made before editing)?

If you haven't been making backups before editing, it's time to start.

:blush:

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Link to comment
Share on other sites

The long term solution is to find out why the code is in your admin to begin with?

:unsure:

Contributions that are relatively recent may use it in admin files. This function was added in RC1 - even shop admins apparently set their browsers not to accept cookies and are then stumped their admin is not working...

 

Adding the same function to admin/includes/html_output.php is the correct solution.

As far as I know session ID's aren't used in the admin because it's part of what osC uses to tell customers apart.

Oh no, osCAdminID is used for the admin section.

Link to comment
Share on other sites

I stand corrected:

 

/admin/includes/application_top.php

 

// check to see if php implemented session management functions - if not, include php3/php4 compatible session class
 if (!function_exists('session_start')) {
define('PHP_SESSION_NAME', 'osCAdminID');
define('PHP_SESSION_PATH', '/');
define('PHP_SESSION_SAVE_PATH', SESSION_WRITE_DIRECTORY);

include(DIR_WS_CLASSES . 'sessions.php');
 }

// define how the session functions will be used
 require(DIR_WS_FUNCTIONS . 'sessions.php');

// set the session name and save path
 tep_session_name('osCAdminID');

Today won't be a total loss as I have learned something new.

 

Thank-you, Sir!

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Link to comment
Share on other sites

Have you tried resoring your back up files (the ones you made before editing)?

 

What does line 746 of admin/categories.php say?

 

 

This is what on line 746

 

echo tep_hide_session_id() . '</form>';

 

Actually I was trying to use this contribution Multi_Images but unfortunately there seem to be a problem. I normally back up my work but today I was in such a hurry I accidentally delete the original admin/categories.php. No other file were changed except admin/categories.php and store/product_info.php

 

 

Can you help me solve this problem. I have not made any changes to store/admin so far.

Link to comment
Share on other sites

Contributions that are relatively recent may use it in admin files. This function was added in RC1 - even shop admins apparently set their browsers not to accept cookies and are then stumped their admin is not working...

 

Adding the same function to admin/includes/html_output.php is the correct solution.

 

Oh no, osCAdminID is used for the admin section.

Personally, I'd go with what Jan suggested.

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Link to comment
Share on other sites

I stand corrected:

 

/admin/includes/application_top.php

 

// check to see if php implemented session management functions - if not, include php3/php4 compatible session class
 if (!function_exists('session_start')) {
define('PHP_SESSION_NAME', 'osCAdminID');
define('PHP_SESSION_PATH', '/');
define('PHP_SESSION_SAVE_PATH', SESSION_WRITE_DIRECTORY);

include(DIR_WS_CLASSES . 'sessions.php');
 }

// define how the session functions will be used
 require(DIR_WS_FUNCTIONS . 'sessions.php');

// set the session name and save path
 tep_session_name('osCAdminID');

Today won't be a total loss as I have learned something new.

 

Thank-you, Sir!

 

Thank you all so much for all your help. The application top is just the same as what is mentioned. What else could go wrong.

 

The error is specified at admin/categories.php on line 746

 

echo tep_hide_session_id() . '</form>';

Link to comment
Share on other sites

Thank you all so much for all your help. The application top is just the same as what is mentioned. What else could go wrong.

 

The error is specified at admin/categories.php on line 746

 

echo tep_hide_session_id() . '</form>';

 

 

Okay everybody I manage to solve the problem. Very simple:

 

on line 746 is

echo tep_hide_session_id() . '</form>';

 

change to

 

echo '</form>';

 

on line 755 is

echo tep_hide_session_id() . '</form>';

 

change to

b]echo '</form>';[/b]

 

thats it. everything is fine again..thank you all for your help. i really appreciate it. and sorry for the double entry.

 

regards

 

Jess

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...