logo
WSN Links PHP Directory Software
Features Showcase Reviews Demos Purchase Manual Support
 

Fatal error in commonfuncs.php

Version: full


Fatal error in commonfuncs.php
wizardofchips
Member

Usergroup: Customer
Joined: Oct 15, 2004
Total Topics: 10
Total Posts: 23
Posted 10/15/04 - 06:18 PM:
quote post
#1
after spending a couple of days trying to get the basic edition to work the way i wanted.. to no avail, I decided to purchase the full version.
Funny thing is after spending a few hours installing, configuring, adding categories and custom fields, and modifying the advanced search template to include my custom fields it was time to add a link! After all that I fill in info for new link and submit and the browser spits out this error....

Fatal error: Call to a member function on a non-object in commonfuncs.php line 150

here is line 150 of commonfuncs.php.....

$query = $db->select('id,`to`,subject,message,headers,replace ment,mime', 'emailtable', 'timesent=0', 'ORDER BY id ASC', 'LIMIT 0,'. $settings->perqueue);

what does that error mean and what do i do to get rid of it??

thanks in advance
wizardofchips
Member

Usergroup: Customer
Joined: Oct 15, 2004
Total Topics: 10
Total Posts: 23
Posted 10/16/04 - 01:06 AM:
quote post
#2
after reading through your bug report procedure I have some more to add.
It seems as though Im getting this error only after adding custom fields since because I reinstalled and can submit and edit links with no problem. It was only after I added my custom fields that I am again getting the same error. Here is the debug info I gathered after trying to edit a link....

Performing query: SELECT id,name,parent,validated,description,time,parentnames,parent ids,numlinks,hi de,lastlinktime,custom,lastedit,moderators,headerinfo,relate d,numsub,type,p ermissions,subscribers,subscriber,mixtypes,isalbum,orderlink s,totalcomments ,ulsearchmax,ulsearchquery,ulsearchadult,alias,catcols,linkc ols,dmozpath,sp onsorlinks,views,customwrap FROM wsnlinks_categories WHERE validated=1 AND hide=0 ;

Number of rows is 2 for Resource id #38

Fatal error: Call to a member function on a non-object in /home/wizardo/public_html/commonfuncs.php on line 150


now that i look at that query i dont see my custom fields... could this be the problem? the query is being built without adding my custom fields? hmmmm

but if i look at the dump of links fields they are there....
Link fields: id, title, url, description, rating, votes, validated, catid, sumofvotes, email, time, hits, numcomments, hide, ownerid, voterips, voterids, lastedit, type, filename, filetitle, notify, suspect, downloads, pendingedit, funds, suspended, alias, expire, ip, inalbum, typeorder, recipurl, hitsin, recipwith, hitsinips, hitsoutips, lastcomment, related, inhidden, viewers, threadviewers, hitsintemp, hitsouttemp, origtype, importance, parentids, timesdead, timesemailed, threadclosed, threadposters, nd, db, mwr, pp, ng, dm, spt

thats them at the end.
I dont know im so lost... all i want is to be able to input values for my custom link fields... have the script output the values when the link listing is viewed... and to be able to perform searches on my custom link fields...... HELP !
wizardofchips
Member

Usergroup: Customer
Joined: Oct 15, 2004
Total Topics: 10
Total Posts: 23
Posted 10/16/04 - 01:11 AM:
quote post
#3
WSN Links 3.12
Paul
Administrator
Avatar

Usergroup: Administrator
Joined: Dec 21, 2001
Location: Northern California
Total Topics: 55
Total Posts: 5703
Posted 10/16/04 - 04:20 AM:
quote post
#4
You're using 'db' as a field, which is used for all database actions in the script. Naming a field that will wreck the script. Choose another name.
wizardofchips
Member

Usergroup: Customer
Joined: Oct 15, 2004
Total Topics: 10
Total Posts: 23
Posted 10/16/04 - 08:15 PM:
quote post
#5
thanks Paul... made the change and all is working great now
Search thread for
Download thread as


You don't have permission to post.

Please login or register.

Admin Control Panel

   
Home    |    Features    |    Showcase    |    Reviews    |    Demos    |    Purchase    |    Manual    |    Support
© 2008 Paul Knierim. All rights reserved.