warning: Invalid argument supplied for foreach() in C:\xampp\htdocs\drupal6\sites\all\modules\views\views.module on line 589.
warning: Invalid argument supplied for foreach() in C:\xampp\htdocs\drupal6\sites\all\modules\views\views.module on line 589.
Comments
Comment #1
merlinofchaos commentedHmm. This indicates you have two views that somehow don't have displays.
Do you have site prefixes enabled?
Comment #2
merlinofchaos commentedThis may also be a PHP4 error. What version of PHP are you using?
Comment #3
franskuipers commentedI use PHP Version 5.2.2 on local XAMP server.
It is a clean Dupal 6 install, just only activated views and views UI modules (from CVS), only other installed module is Devel / devel generate / devel node access / devel macro.
other (above default) core modules: contact/path/profile/upload.
NO views defined at all.
I have investgated it further, and tried to recreate it with a fresh install........ I can not recreate it.
I have compared the problem database with the working database and found the probem in cache_views:
Export mysql from working database:
INSERT INTO `cache_views` VALUES ('views_default_views:en', 0x613a303a7b7d, 0, 1203578733, '', 1);This is a BLOB 6 B
Export mysql from problem database:
INSERT INTO `cache_views` VALUES ('views_default_views:en', 0x613a313a7b733a31373a22646576656c5f6e6f64655f616363657373223b4f3a383a22737464436c617373223a31363a7b733a343a226e616d65223b733a31373a22646576656c5f6e6f64655f616363657373223b733a31313a226465736372697074696f6e223b733a33313a2256696577206e6f64657320696e206e6f64655f616363657373207461626c65223b733a363a22616363657373223b613a303a7b7d733a343a2270616765223b623a313b733a31303a22706167655f7469746c65223b733a32363a224e6f64657320696e206e6f64655f616363657373207461626c65223b733a31313a22706167655f686561646572223b733a303a22223b733a31383a22706167655f6865616465725f666f726d6174223b733a313a2231223b733a393a22706167655f74797065223b733a353a227461626c65223b733a333a2275726c223b733a32323a22646576656c2f6e6f64655f6163636573732f76696577223b733a393a227573655f7061676572223b623a313b733a31343a226e6f6465735f7065725f70616765223b733a333a22313030223b733a343a22736f7274223b613a303a7b7d733a383a22617267756d656e74223b613a313a7b693a303b613a343a7b733a343a2274797065223b733a353a227265616c6d223b733a31303a2261726764656661756c74223b733a313a2233223b733a353a227469746c65223b733a34343a224e6f64657320696e206e6f64655f616363657373207461626c65207768657265207265616c6d206973202531223b733a373a226f7074696f6e73223b733a303a22223b7d7d733a353a226669656c64223b613a333a7b693a303b613a363a7b733a393a227461626c656e616d65223b733a343a226e6f6465223b733a353a226669656c64223b733a353a227469746c65223b733a353a226c6162656c223b733a353a225469746c65223b733a373a2268616e646c6572223b733a32383a2276696577735f68616e646c65725f6669656c645f6e6f64656c696e6b223b733a383a22736f727461626c65223b733a313a2231223b733a31313a2264656661756c74736f7274223b733a333a22415343223b7d693a313b613a343a7b733a393a227461626c656e616d65223b733a343a226e6f6465223b733a353a226669656c64223b733a343a2274797065223b733a353a226c6162656c223b733a343a2254797065223b733a383a22736f727461626c65223b733a313a2231223b7d693a323b613a353a7b733a393a227461626c656e616d65223b733a343a226e6f6465223b733a353a226669656c64223b733a373a226368616e676564223b733a353a226c6162656c223b733a373a2255706461746564223b733a373a2268616e646c6572223b733a33303a2276696577735f68616e646c65725f6669656c645f646174655f736d616c6c223b733a383a22736f727461626c65223b733a313a2231223b7d7d733a363a2266696c746572223b613a303a7b7d733a383a227265717569726573223b613a313a7b693a303b733a343a226e6f6465223b7d7d7d, 0, 1203433657, '', 1);This is a BLOB 1.1 KiB
If I DELETE this cache_views row from the database, reload the webpage in the browser, I get the same error message. When I go back in the database, he created a record with that long data key again!
If I delete this cache_views row from database, INSERT the row (with the short key) from the working database, no error message is displayed, and views is working......
I have the problem that I don't know how/where/why it created such a long data key? If you supply me with the modules source line where the key is generated if it is not there, I can put a breakpoint, I can debug a little bit more.
Comment #4
mgiffordJust to say that I am getting this same error too off of a fresh install. It's on a proper LAMP box though. I haven't played with the db yet to see if removing the entry above does anything though.
Mike
Comment #5
merlinofchaos commentedI made a commit that I think may fix this; it's possible that you have a module that is offering up Views 1 default views and Views is merrily choking on them. This commit should prevent that from happening (will require a cache clear). Please re-open if that turned out not to be the problem.
Comment #6
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.