Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Fatal error: Cannot re-assign/upload.php on line31


buzzzzzzzzz

Recommended Posts

I hope one of you lovely geniuses out there can help me out...

 

At the end of the install process when I got to the window which has the option to click on "Catalog" or "Admin tools", I clicked on "admin tools" and got this error:-

 

Fatal error: Cannot re-assign $this in /home/mydomain/oscom/catalog/admin/includes/classes/upload.php on line 31

 

 

>_<

 

And I cant access the Admin tools.

Link to comment
Share on other sites

you have php5 installed and this is a known bug Read me!

No longer giving free advice. Please place deposit in meter slot provided.  Individual: [=] SME: [==] Corporation: [===]
If deposit does not fit one of the slots provided then you are asking too much! :P

Is your Osc dated try Phoenix  raising oscommerce from the ashes.

Link to comment
Share on other sites

THanks : ) I've tried ALL suggestions that have been made - seems a lot of people have this same problem (some have managed to solve it - lucky folks!)

 

Unfortunately, my Admin page remains blank. I'm hoping (PLEASE!) someone out there can provide another fix ;)

 

 

Seeing that my web host has just upgraded to PHP 5, do you think that means TOO BAD for me? Store Closed?

 

 

****** INCREDIBLY DESPERATE please please PLEASE PLEASE HELP !!!!!

Link to comment
Share on other sites

  • 2 months later...

Hello! D:\xampplite\htdocs\linux\shop\admin\includes\classes\ipload.php on line 31 i did this:

 

:'( instead of this:

________________________

// self destruct

$this = null;

 

return false;

}

}

}

________________________

 

:D i did this:

________________________

// self destruct

unset($this);

 

return false;

}

}

}

________________________

photo-24754.jpg
Link to comment
Share on other sites

  • 1 month later...
  • 3 years later...
Hello! D:\xampplite\htdocs\linux\shop\admin\includes\classes\ipload.php on line 31 i did this:

 

:'( instead of this:

________________________

// self destruct

$this = null;

 

return false;

}

}

}

________________________

 

:D i did this:

________________________

// self destruct

unset($this);

 

return false;

}

}

}

________________________

 

Sorry, I know this is an old post but I was having this problem on a site which I had to do Register Globals patching on and the above code fixed the access to admin but now it does not ask for user/password - it just lets you in to the Administration pages - any idea why?

Link to comment
Share on other sites

The version of osCommerce you are using does not provide password protection of the 'admin' folder. You have to do that yourself via the Directory Protect feature of your Web Hosting control panel.

 

Vger

Link to comment
Share on other sites

:thumbsup:

Hello! D:\xampplite\htdocs\linux\shop\admin\includes\classes\ipload.php on line 31 i did this:

 

:'( instead of this:

________________________

// self destruct

$this = null;

 

return false;

}

}

}

________________________

 

:D i did this:

________________________

// self destruct

unset($this);

 

return false;

}

}

}

________________________

Link to comment
Share on other sites

  • 2 months later...

it workssssssssss

thank u thank u thank u .. :)

 

Hello! D:\xampplite\htdocs\linux\shop\admin\includes\classes\ipload.php on line 31 i did this:

 

:'( instead of this:

________________________

// self destruct

$this = null;

 

return false;

}

}

}

________________________

 

:D i did this:

________________________

// self destruct

unset($this);

 

return false;

}

}

}

________________________

Link to comment
Share on other sites

  • 1 month later...

well if You are installing fresh.I recommend download oscommerce RC2 version and then install.

 

Some hosting companies installer uses previous version so get the latest and install it will save You lot of time.

 

Satish

Ask/Skype for Free osCommerce value addon/SEO suggestion tips for your site.

 

Check My About US For who am I and what My company does.

Link to comment
Share on other sites

Sam

 

Remember, What you think I ment may not be what I thought I ment when I said it.

 

Contributions:

 

Auto Backup your Database, Easy way

 

Multi Images with Fancy Pop-ups, Easy way

 

Products in columns with multi buy etc etc

 

Disable any Category or Product, Easy way

 

Secure & Improve your account pages et al.

Link to comment
Share on other sites

In that case just replace the classes/upload.php file

 

Satish

Ask/Skype for Free osCommerce value addon/SEO suggestion tips for your site.

 

Check My About US For who am I and what My company does.

Link to comment
Share on other sites

oscommerce-2.2rc2a\oscommerce-2.2rc2a\catalog\admin\includes\classes\upload.php

 

is where YOu need to look in not in installation folder.

Ask/Skype for Free osCommerce value addon/SEO suggestion tips for your site.

 

Check My About US For who am I and what My company does.

Link to comment
Share on other sites

  • 1 year later...
  • 1 year later...

Archived

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

×
×
  • Create New...