By bmblack on
I just did a drupal core upgrade. All of a sudden, I'm getting the following error:
Fatal error: Call to undefined function connect() in /public_html/includes/common.inc(1685) : eval()'d code on line 4
When I simply comment out that line (1685), I notice that some of my views that I created are missing a field. Does anybody have any idea what this could be??
Comments
What did you update to and
What did you update to and from? Did you update contributed modules?
I upgraded from drupal 6.15
I upgraded from drupal 6.15 to 6.16. According to my status report, it says that all my modules are up to date.
**additional info** I have a
**additional info**
I have a content type called "Homework"
My home page displays TODAY'S Homework assignment. I used to simply enter today's assignment every day. As soon as I posted it, it would display on the front page. I wanted to be able to enter an entire week's worth of assignments, so I used the date module and allowed the admin to specify a date (on which, the assignment would be given). I created a view to display the assignment that was most recently assigned. This is what it looks like:
FIELDS
Content: Date Default
Node: Body
FILTERS
Node: Type = Homework
Settings
Date: Date (node) Content: Date (field_homework_date) <= now
If I go to my website, the only thing that shows up is TODAY'S assignment in plain text (no theme or anything). Immediately following today's assignment is the error mentioned in my original post.
"Fatal error: Call to undefined function connect() in /public_html/includes/common.inc(1685) : eval()'d code on line 4"
When I comment out line 1685, the BODY of today's homework assignment is missing. When I look at the list of all previous homework assignments, none of their bodies show up EXCEPT the ones I created prior to setting up the date functionality.
This all worked fine before upgrading my drupal from 6.15 to 6.16. Anybody have any suggestions?
It would appear you have PHP
It would appear you have PHP in in a block/node or elsewhere that allows PHP evaluation, the error occurs in drupal_eval(). Oddly enough the error message seems more in line with the 6.15 version of the code. What do you find at that line in common.inc?
You are right! I completely
You are right! I completely forgot that I had a custom PHP block on that page that we really didn't need. We removed the block and all of a sudden everything works as it should.
How to delete custom PHP block from database
Hi,
I updated my site from 6.x to 6.20 but I am not able to get login prompt due to this blocking issue.
Fatal error: Call to undefined function taxonomy_context_get_context() in /home/mysite/public_html/includes/common.inc(1695) : eval()'d code on line 4
Based on this thread, I understand that I can delete custom PHP block which might be there in our site. But since I am not able to login to the site, is there any way to delete it from database table in phpMyAdmin interface?
thanks
Yes you can use
Yes you can use phpMyAdmin.
Goto/Browse the 'boxes' table, search for taxonomy_context_get_context in the body field.
That should return the record with the PHP code, record the bid.
Now search in blocks table for the bid. Edit the record and change the region so it is empty.
Deleting custom PHP block helps here
Hi,
I'm glad I found your post and I was able to delete the custom PHP block and unblock myself to login to my site.
thanks again