I was trying to install Ubercart, and somewhere along the way, this error message occurred:

* warning: array_map() [function.array-map]: Argument #2 should be an array in /home/httpd/s0147/modules/system/system.module on line 1015.
* warning: array_keys() [function.array-keys]: The first argument should be an array in /home/httpd/s0147/includes/theme.inc on line 1771.
* warning: Invalid argument supplied for foreach() in /home/httpd/s0147/includes/theme.inc on line 1771.

I even backed up my old folder, in case something like this would happen, but when I "undid" everything the error remained. Does anyone know what I need to do? Please let me know.

Thank you.

Edited by: VM; Moved to appropriate forum

Comments

j_ten_man’s picture

Maybe flush your cache table? I am not positive though. You can flush your cache tables at 'admin/settings/performance'. If you are unable to get to any pages, you could also try clearing the cache table manually.

jenn5714’s picture

How do I manually clear the cache table?

j_ten_man’s picture

You would need to get into the database (do you have access to it)?

Run this query:
TRUNCATE TABLE cache

jenn5714’s picture

Okay I'll try that, thanks.

jenn5714’s picture

It didn't work. :( That command was suppose to clear the cache table, right?

j_ten_man’s picture

Yeah. I am not positive that your problem is your cache, but I thought that it was worth a try. This could be a problem somewhere else.

jenn5714’s picture

Any other ideas?

j_ten_man’s picture

So what happened? You installed ubercart and you started to get the error. Were you able to uninstall ubercart? All you say is you "undid" everything. Not quite sure what that means.

jenn5714’s picture

Yes, I installed Ubercart, everything was working just fine, but the "Store Administrator" section wasn't there. So I installed Ubercart again, and that's when the error showed up. So I removed all the files from my database, and replaced them with my original files. But the error remained.

j_ten_man’s picture

How did you install Ubercart again without uninstalling it? When you disable a module, it is not automatically uninstalled. You have to make sure you uninstall it. I am also a bit confused when you say you replaced the "files" in the database? Did you mean you backed up your database and imported the original database in again? Like VM said, you don't really need to back up your files when you upgrade or install a module, rather you need to backup your database (export it). If you have issues, then you would want to import the backed up database file.

As to why the "Store Administrator" section wasn't there, I would have to guess that it was a permissions problem. I don't know that for sure.

At this point I am not sure exactly what you did, but from what you have explained it sounds like you have several problems with your install, but maybe I am just confused as to what you are describing you did.

jenn5714’s picture

Yes. I copied all of the files in my database when it was working, and then, when the error showed up, I pasted the ones I copied back into the database.

If the problem is that I didn't correctly uninstall it the first time, is there a way to fix that?

j_ten_man’s picture

That is an interesting way to backup your database. Probably not the best but it will work (I think). I am not completely clear why you are doing backups this way. Anyways, if you still have the original database after you installed Ubercart, then that would be the database you want to restore. You can then either uninstall Ubercart completely, or check the permissions to see if you have all of the permissions to access the store settings.

If you don't, then probably you will need to go into the database (are you using phpmyadmin to manage the database or what?) and uninstall all of the ubercart modules from the system table.

UPDATE system SET status = 0 WHERE filename LIKE '%ubercart%';
TRUNCATE TABLE cache;

That should remove them from being loaded. You will still have several tables left in your database. They are all prefixed with 'uc_' so you can remove those as well.

jenn5714’s picture

Haha, alright. Thank you very much, I'll let you know how it goes.

vm’s picture

saving the files doesn't do much without a database backup.

I assume ubercart was enabled? Have you disabled it in your database by setting the status of the module to 0 in the system table?

What version of UC is in use?
Are there similar reports in the UC issue queue or on the UC support forums?

jenn5714’s picture

It was enabled. I didn't disable it. (I'm not sure how.) UberCart 2.2. And I haven't seen any.

jenn5714’s picture

Well my problem has been resolved. I had my brother help me out, and now I'm good to go. Something was wrong with my database, I'm not exactly sure what. But thanks j_ten_man for all of your help!