fatal error call to a member function query_first Holly Ridge North Carolina

Address Hubert, NC 28539
Phone (910) 326-4133
Website Link
Hours

fatal error call to a member function query_first Holly Ridge, North Carolina

Good luck. SitePoint Sponsor User Tag List Results 1 to 3 of 3 Thread: Call to a member function on a non object ARRRRRG!!!!!!!!!!!!!!!!!!!!! Going to be away for 4 months, should we turn off the refrigerator or leave it on with water inside? Articles Forum Blogs Projects Manage Subscriptions Project Timeline FAQ Download PT Advanced Search Projects Project Tools Bug PHP Fatal error: Call to a member function query_first() on a non-object in /includes/functions_pt_impex.php

Advanced search Use our issue tracker site to search and post bugs. Page 1 of 2 12 Last Jump to page: Results 1 to 10 of 16 Thread: Fatal error: Call to a member function query() on a non-object Thread Tools Show Printable However, BOTH servers should be upgraded to the newest version of PHP. Home Community Download Customize Modifications Themes Patches Support Function Database Online Manual About Contribute Development Please login or register. 1 Hour 1 Day 1 Week 1 Month Forever Login with username,

so then how do i get rid of the error message when using this route Code: $db = &new MySQL($host,$user,$pass,$name); heres the MySql class Code:

If you're encountering this problem when you try to use it locally (and not on your live server), then code (somewhere) on your live server probably instantiates the MySQL class and but what. Here is a query I have that gives that same error: Code: $trails=$DB_site->query("SELECT * FROM conditiontrail ORDER BY trailid ASC"); www.morcmtb.org Comment Post Cancel Marco van Herwaarden Senior Member Join Date: All rights reserved.

All rights reserved. I am trying to build a basic MVC framework for my own projects. Working... but this method gets an error on my localhost - Deprecated: Assigning the return value of new by reference is deprecated Code: $host = 'localhost'; $user = 'root'; $pass = '123456';

This means that you should be aware of different versions and make it compatible with at least the newest version, and maybe other older versions too (but not at the expense Personally I like to test on the live server to be sure it will work. you're postin' "me too" like some braindead AOL'er Reply With Quote 05-06-2011,11:17 PM #5 ggalan View Profile View Forum Posts Private Message View Blog Entries Senior Coders Join Date Jan 2008 vBulletin v3.8.10 Beta 2, Copyright ©2000-2016, vBulletin Solutions, Inc.

Join them; it only takes a minute: Sign up call to a member function query() on a non-object error [duplicate] up vote -2 down vote favorite Possible Duplicate: How to squeeze After some research, I still can't determine what the point of doing it that way was in the first place. Community Team Advisor Forum Guidelines: Posting FAQ Signatures FAQ Self Promotion FAQ Help the Mods: What's Fluff? Reply With Quote 05-06-2011,08:32 PM #2 traq View Profile View Forum Posts Private Message View Blog Entries global $Moderator; Join Date Apr 2008 Location So.Cal Posts 3,643 Thanks 63 Thanked 516

Change the second part to this code, and obvious, you must fix the error in the first part: require_once ('../includes/connection.inc.php'); $conn = dbConnect('read'); if(!$conn) die; $sql = 'SELECT * FROM images'; What does this mean? consolegaming04 Jan 2010, 22:52It's the $db causing the issue. This page was generated at 6:07am.

Can you remove the & and see if it works? [Posted at the same time as traq.] Daniel - Freelance Web Design | | | espaņol | Deutsch | italiano Though the quickest change to make it work would just be to add $db = $vbulletin->db; at the start of the plugin. Once logged in, if the administrator decided it, you can still be able to not see replies. + Reply Assigned Users Please Wait Tags Please Wait -- Default Style -- Default Powered by vBulletin Version 4.2.2 Copyright © 2016 vBulletin Solutions, Inc.

The problem seems to be &new vs. If you're using a CMS, for example, it might do that somewhere upstream in order to provide a hook for you to use the database with custom or add-on scripts without more hot questions lang-php about us tour help blog chat data legal privacy policy work here advertising info mobile contact us feedback Technology Life / Arts Culture / Recreation Science Other How do I say "Thank you, Captain Obvious?" A better way to evaluate a certain determinant How many answers does this question have?

What you need to do is to declare the variable before your constructor. i belive its missing something as in vB_?????::$vbulletin ie : vB_Template::create ragtek04 Jan 2010, 23:17Which hook are you using? you're postin' "me too" like some braindead AOL'er Reply With Quote 05-07-2011,01:05 AM #8 djr33 View Profile View Forum Posts Private Message View Blog Entries Visit Homepage Global Moderator Join Date You could turn off warnings like that, but the quality of your programming would be lower if you don't fix them.

If that code is within a function, make sure that $db has been globaled. Try using $vbulletin->db->query_first instead. Also 'query' is not used anymore (although it will still work), and should be replaced by either 'query_read' or 'query_write'. Thanks Sep 5, 2009,11:04 #2 Phidev View Profile View Forum Posts SitePoint Addict Join Date Oct 2008 Location Texas Posts 204 Mentioned 0 Post(s) Tagged 0 Thread(s) the variable $db is

What's New? The SitePoint Forums have moved. Do you know where your MySQL class definition is? In the forums you can receive professional support and assistance with any issues you might have with your vBulletin Products.

To start viewing messages, select the forum that you want to visit from the selection below. Is the mass of an individual star almost constant throughout its life? Want a plugin to read Tablename colum1 |colum2|colum3 ------------------------------ data1 | data2 | data 3 and so on.. X vBulletin 4.2.3 Beta 3 Debug Information Page Generation 0.03971 seconds Memory Usage 5,132KB Queries Executed 17 (?) More Information Template Usage (26): (1)ad_footer_end(1)ad_footer_start(1)ad_global_above_footer(1)ad_global_below_navbar(1)ad_global_header1(1)ad_global_header2(1)ad_navbar_below(1)bbcode_php(1)download_tab(1)editor_clientscript(1)footer(1)gobutton(1)header(1)headinclude(1)headinclude_bottom(1)navbar(4)navbar_link(1)navbar_noticebit(1)navbar_tabs(3)option(1)pt_issue(1)pt_issue_firstnote(1)pt_issuenotebit_replies(1)pt_issuenotebit_user(1)spacer_close(1)spacer_open Phrase Groups Available (4): globalpostingprojecttoolsshowthread Included Files

Comment Post Cancel gopherhockey Senior Member Join Date: Jul 2002 Posts: 123 #3 Sat 12th Nov '05, 8:02am Originally posted by Alan @ CIT It means that $db isn't an object.