Forums

adodb_lite conflict (1 post)

  1. tylerc083
    Member
    Posted 4 years ago #

    Hello-

    I've built a custom CMS for a website. I'm using adodb_lite to manage all database calls. However, I've decided to use wordpress to manage their blog. In the head file of the theme, I'm calling a custom, site-wide header function (global navigation..etc).

    This has worked great for me in the past, however, this is my first try while using adodb_lite. Whenever I try to hit the database, I get this error:

    "Fatal error: Call to a member function Execute() on a non-object"

    The first line in the function creates the connection:

    $db = ADONewConnection("mysql", "extend:date:adodblite:pear");

    I've renamed $db incase wp_head() was overwriting it. But still no luck....

    Any ideas?

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.