Posted by nanharbison on February 19, 2011 at 12:13am
Hi Everyone,
I have a website with the Newsflash template, I just upgraded to 6.20, everything was fine, I updated the database, then I needed newer versions of CCK and Views, and once I uploaded those and tried to run cron, I get an error message on the page instead. I have tried Googling it, and have searched on Drupal.org, but CANNOT find the answer!!! I tried uploading the older versions of CCK and Views one at a time, and I still get this error:
Fatal error: Class 'view' not found in ...../includes/common.inc(1696) : eval()'d code on line 2
Thanks in advance for any light you can shed on this problem!
Nan
Comments
Does anyone have an answer to this?
I get exactly the same error message...
I have left the site as 6.22 because I am afraid to upgrade it and get into more trouble.
Does anyone have an answer to this?
I get exactly the same error message...
I have left the site as 6.22 because I am afraid to upgrade it and get into more trouble.
Have you clear all the cache
Have you clear all the cache ("drush cc all")?
Have you looked at the module list to ensure that all the modules you need enabled are actually enabled? Including Views?
Next I'd look at the call stack to see where Cron is having trouble.
Cleared cache, checked all modules...
Still get the error message. I don't know how to look at the call stack. I don't use Drush, I never figured out how to use it.
this is coming from some
this is coming from some custom PHP code you have stored in the db... one of the down side of executing code from the db is that it's a pain to find and debug... so you'll have to review your content that allow PHP in their input format. maybe a clever search in the db would help too.
there is no Custom code on the whole site
I think this error happened because I did an upgrade and neglected to run the database update before I did other things, like create some views. The site is almost all views, of the documents and posts added by the owner.
centerfordigitaldemocracy.org
Thank you all so much for your help!
Oh wait, I have custom code on the Contact Info page
I was using my own form code because I hadn't discovered the webform module yet, I will change to the webform.
So my custom code is gone, BUT
I went through the node revisions table searching for "<?PHP" and I found a view with it in the body field. None of the other views have code in it. Is that where the error is coming from? And should I just delete and recreate this one view?