Posted by jcbrew on January 14, 2009 at 5:30am
When trying to post an article I get the following error:
Fatal error: Class 'view' not found in C:\Inetpub\vhosts\...\httpdocs\includes\common.inc(1641) : eval()'d code on line 2
I am using 6.8
Views 6.x.2.2
I have PHP enabled (tested and working)
PHP 5
The error went away after I disable PHP. I would like to enclude some php in a block on my side bar so this solution will not work for me. Anyone know why the PHP filter module is not working?
Comments
Can you post the code you
Can you post the code you are trying to paste in the node?
It was happening every time
It was happening every time I tried posting anything - regular text, html and PHP.
The PHP code that I tried using was code generated from the Views export... I have since removed the view and disabled the PHP filter.
BTW - I meant to type 'include' and not 'enclude' I guess that's what happens when I try to ask a question when I'm dog tired.
Here is the code I am trying
...
Nevermind I figured it out...
How did you solve this?
Would highly appreciate your support!
Solution?
Yes, please could you provide the solution? I get nearly the same error when I try to run cron and I have to disable the Search module to get the cron to work which is not a solution because i need the cron to index the site as well...
Would greatly appreciate your solution details!
========= MY SOLUTION =========
i found on other posts to check the node-revisions table for format = 3 records, from those i narrowed down the potential culprits for my problem. Everything i've read says that the search part of the cron dies when it runs into bad php code. So i then located each of the nodes (i had 4 possibles) within the content admin and just clicked through. one of them produced this same error, proving it was the node with bad php. i deleted that node, which i believe wasn't in use anymore anyway..and voila, cron runs again.
-Melissa