Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

I can not add or change information via the Admin module


arnemeldgaard

Recommended Posts

Posted

Hi,

The webshop is working fine on www.horze.dk, but...

 

When I forexample try to add a new product or change an old product via the Admin-module then I get this warning and all the data disappear:

 

Code:

Warning: Variable passed to each() is not an array or object in /home/sites/site10/web/admin/includes/classes/object_info.php on line 18

 

 

Can someone explane how this can happend??

 

Regards

Arne

Posted

Arne,

 

Are you sure you have allow file uploads set in your php.ini file.

Trust me, I'm an Accountant.

Posted

Hi,

 

No I am not sure - that could be the problem, but where do I find this file?

 

Somewhere the restrictions are wrong. I can not either add a new account in the web-shop, so I properbly need to change some access permissions, but I do not know where??

 

Hope you can help me... :-))

Posted

Arne,

 

On what type of system are you rinning your shop. Is it a local system, or hosted.

 

What operating system are you using.

 

If you are on windows, then the php.ini file will be in the c:windows directory (most likely)

Trust me, I'm an Accountant.

Posted

Hi Ian,

 

The shop is hosted on a Unix-server. I use PHP-Admin to administrate the MySQL database.

 

I have only access to the files in my directory!

 

Regards

Arne

Posted

Hi,

 

Can anyone give me a tip about this problem? Is it the access to the MySQL database that is the problem or is it wrong Access Permission to some of the PHP-files?

 

In both cases can you maybe tell me how to change this persission?

 

I will highly appriciate any hint that can get me on the right track...

 

Best regards

Arne

Posted

You need to speak to your Host. The file uploads cofiguration setting can only be changed by editing php.ini or httpd.conf.

 

If you only have access to your own user directory on the host, then there is no way you can change it yourself.

 

You can however see wht it i set to. Go to your osCommerce admin, tools menu->server info.

 

You should find the file uploads setting in configuration-core neat the beginning of the report

Trust me, I'm an Accountant.

Posted

Hi,

 

You can however see wht it i set to. Go to your osCommerce admin, tools menu->server info.

 

You should find the file uploads setting in configuration-core neat the beginning of the report

 

When I go to Tools->Server Info there are no information at all. Only white screen. Are you sure it is a problem with the php.ini or httpd.conf files OR CAN IT BE A PROBLEM WITH THE DATABASE PERMISSIONS?

 

The problem occur when i try to Add data to the database or when I want to change data in the database...

 

Thanks for your help so far!!!

Regards Arne

Posted

Arne,

 

The problem I am describing should just be confined to creating/editing products.

 

Can you change the entries in admin->configuration?

Trust me, I'm an Accountant.

Posted
The problem occur when i try to Add data to the database or when I want to change data in the database...

 

Don't forget that if you can complete an order thru the catalog, then you must in effect have permissions to write to the database.

 

if the database settings in catalog/includes/configure.php and admin/includes/configure.php are the same then your database access must be OK.

Trust me, I'm an Accountant.

Posted

Hi,

 

Can you change the entries in admin->configuration?

 

I have exactly the same problem in the configuration. When I try to edit attributes and change them, the result is that the attribute-value is deleted. Have a look on:

 

I can not figure out why this happend??

Posted
Don't forget that if you can complete an order thru the catalog, then you must in effect have permissions to write to the database.

 

I can not either add product to the cart in the catalog, so it could be a general problem. There is maybe a setting somewhere where the database access can be changed from read to write??

Posted

Ok,

 

Maybe I should have visited your site in the first place :lol:

 

I notice your base href = horze.dk.

 

What do you have your HTTP_SERVER set to in configure.php.

 

If set to http://horze.dk, try changing to http://www.horze.dk

Trust me, I'm an Accountant.

Posted
If set to http://horze.dk, try changing tohttp://www.horze.dk

 

Here we go!! 8) Thank you very much for your efforts! This support forum is much better than many of the professionel and commercial forums I have tried...

 

Thanks :D

Posted
You need to speak to your Host. The file uploads cofiguration setting can only be changed by editing php.ini or httpd.conf.

 

If you only have access to your own user directory on the host, then there is no way you can change it yourself.

 

You can however see wht it i set to. Go to your osCommerce admin, tools menu->server info.

 

You should find the file uploads setting in configuration-core neat the beginning of the report

 

Ian,

 

I am having the same problem, and my "file_uploads" setting is "no value"...is this correct? What should this setting be? I have root on my Apache server.

 

Changed my configure.php and it is still not working...so changed it back.

 

Thanks,

Dave

Posted

Dave

 

In your php.ini there should be a line that starts

 

file_uploads=

 

this should be

 

file_uploads=on

 

 

HTH

Trust me, I'm an Accountant.

Posted

Ian,

 

Thank You!! It was defaulted to "Off", changed to "On" and restarted Apache... works. :D

 

This has been bugging me for days and many installs just didn't get it.

 

Many thanks!

 

Dave

  • 2 months later...
Posted

mine is set to ON,and im getting this problem, what can i do next to see whats causing this problem with lines 17 and 18, and not letting me delete users or chagne thier info

Archived

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

×
×
  • Create New...