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
Maybe flush your cache table?
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.
How do I manually clear the
How do I manually clear the cache table?
You would need to get into
You would need to get into the database (do you have access to it)?
Run this query:
TRUNCATE TABLE cacheOkay I'll try that, thanks.
Okay I'll try that, thanks.
It didn't work. :( That
It didn't work. :( That command was suppose to clear the cache table, right?
Yeah. I am not positive that
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.
Any other ideas?
Any other ideas?
So what happened? You
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.
Yes, I installed Ubercart,
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.
How did you install Ubercart
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.
Yes. I copied all of the
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?
That is an interesting way to
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.
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.
Haha, alright. Thank you very
Haha, alright. Thank you very much, I'll let you know how it goes.
=-=
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?
It was enabled. I didn't
It was enabled. I didn't disable it. (I'm not sure how.) UberCart 2.2. And I haven't seen any.
Well my problem has been
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!