1
capbat
Re: The search funtion does not work.
  • 2008/3/4 15:55

  • capbat

  • Just popping in

  • Posts: 10

  • Since: 2006/3/28


I guess nobody can help me here....

Where are the specialists?



2
capbat
The search funtion does not work.
  • 2008/3/2 18:51

  • capbat

  • Just popping in

  • Posts: 10

  • Since: 2006/3/28


Hi all.
I am with XOOPS 2.0.16 I am having problems with the search function.

When I search for something the systems gives me the first 5 instances of the words searched. But when I click 'Show All Results' I get a blank page. I have put the site under debug and found the results below.
It seems that the main error line is:
Fatal error: Call to a member function search() on a non-object in D:\domains\sdmf.biz\wwwroot\ArtCulture\search.php on line 211.

Look like the 'Search.php' file can not find the search() function. Where would the search() function be? It is not in main file and I though it should be in the 'Search.php' file but when I search those two files I can't see any 'search()' text anywhere.

Your help is always appreciated.






Fatal error: Call to a member function search() on a non-object in D:\domains\sdmf.biz\wwwroot\ArtCulture\search.php on line 211
All errors (2) queries (62) blocks (9) extra (0) timers (5)
Errors
Notice: Object of class XoopsModule could not be converted to int in file /kernel/user.php line 214
Notice: Object of class XoopsModule could not be converted to int in file /kernel/groupperm.php line 309
Queries
SELECT * FROM xoops_config WHERE (conf_modid = '0' AND conf_catid = '1') ORDER BY conf_order ASC
SELECT sess_data FROM xoops_session WHERE sess_id = 'rt2n3mert6fqll70boiqvs6k04'
SELECT * FROM xoops_users WHERE uid=1
SELECT * FROM xoops_config WHERE (conf_modid = '0' AND conf_catid = '6') ORDER BY conf_order ASC
DELETE FROM xoops_protector_access WHERE expire < UNIX_TIMESTAMP()
SELECT COUNT(*) FROM xoops_protector_access WHERE ip='205.237.65.136' AND request_uri='/ArtCulture/search.php?query=association&mid=5&action=showall&andor=AND'
SELECT COUNT(*) FROM xoops_protector_access WHERE ip='205.237.65.136'
INSERT INTO xoops_protector_access SET ip='205.237.65.136',request_uri='/ArtCulture/search.php?query=association&mid=5&action=showall&andor=AND',expire=UNIX_TIMESTAMP()+'60'
SELECT * FROM xoops_config WHERE (conf_modid = '0' AND conf_catid = '5') ORDER BY conf_order ASC
SELECT * FROM xoops_group_permission WHERE (gperm_name = 'module_read' AND gperm_modid = '1' AND (gperm_groupid = '1' OR gperm_groupid = '2' OR gperm_groupid = '5'))
SELECT COUNT(*) FROM xoops_banner
SELECT * FROM xoops_banner LIMIT 3, 1
UPDATE xoops_banner SET impmade = impmade+1 WHERE bid = 21
SELECT * FROM xoops_config WHERE (conf_modid = '0' AND conf_catid = '3') ORDER BY conf_order ASC
SELECT DISTINCT gperm_itemid FROM xoops_group_permission WHERE gperm_name = 'block_read' AND gperm_modid = 1 AND gperm_groupid IN (1,2,5)
SELECT b.* FROM xoops_newblocks b, xoops_block_module_link m WHERE m.block_id=b.bid AND b.isactive=1 AND b.visible=1 AND m.module_id=0 AND b.bid IN (25,41,1,37,3,42,33,31,28,27,26,24,23,22,21,20,19,18,17,16,29,15,38,14,13,12,30,11,45,10,32,9,6,7,36,8,35,5,4,2,43,44,59,86,58,47,48,50,51,54,81,61,62,63,64,65,66,67,68,72,88,85,79,83,84,124,89,90,94,95,117,115,114,136,150,128,135,139,141,143,147,184,157,159,162,167,161,163,165,166,168,169,176,173,175,179,201,185,187,198,197,196,203,202,193,194,195,199,200) ORDER BY b.weight,b.bid
SELECT * FROM xoops_modules WHERE (hasmain = '1' AND isactive = '1' AND weight > '0') ORDER BY weight ASC, mid ASC
SELECT * FROM xoops_group_permission WHERE (gperm_name = 'module_read' AND gperm_modid = '1' AND (gperm_groupid = '1' OR gperm_groupid = '2' OR gperm_groupid = '5'))
SELECT * FROM xoops_modules WHERE dirname = 'news'
SELECT * FROM xoops_config WHERE (conf_modid = '3') ORDER BY conf_order ASC
SELECT * FROM xoops_modules WHERE dirname = 'formulaire'
SELECT f.id_form, f.desc_form, f.help , m.indent, m.margintop, m.marginbottom, m.itemurl, m.bold FROM xoops_form_id f LEFT JOIN xoops_form_menu m on f.id_form = m.menuid WHERE f.qcm = 0 and m.status =1 ORDER BY m.position
SELECT * FROM xoops_smiles
SELECT * FROM xoops_modules WHERE dirname = 'rw_banner'
SELECT id FROM xoops_rw_tags ORDER BY id ASC
SELECT * FROM xoops_rw_tags WHERE id=1
SELECT id FROM xoops_rw_tags ORDER BY id ASC
SELECT * FROM xoops_rw_tags WHERE id=1
SELECT id FROM xoops_rw_tags ORDER BY id ASC
SELECT * FROM xoops_rw_tags WHERE id=1
SELECT id FROM xoops_rw_tags ORDER BY id ASC
SELECT * FROM xoops_rw_tags WHERE id=1
SELECT id FROM xoops_rw_tags ORDER BY id ASC
SELECT * FROM xoops_rw_tags WHERE id=1
SELECT id FROM xoops_rw_tags ORDER BY id ASC
SELECT * FROM xoops_rw_tags WHERE id=1
SELECT id FROM xoops_rw_tags ORDER BY id ASC
SELECT * FROM xoops_rw_tags WHERE id=1
SELECT id FROM xoops_rw_tags ORDER BY id ASC
SELECT * FROM xoops_rw_tags WHERE id=1
SELECT id FROM xoops_rw_tags ORDER BY id ASC
SELECT * FROM xoops_rw_tags WHERE id=1
SELECT id FROM xoops_rw_tags ORDER BY id ASC
SELECT * FROM xoops_rw_tags WHERE id=1
SELECT id FROM xoops_rw_tags ORDER BY id ASC
SELECT * FROM xoops_rw_tags WHERE id=1
SELECT id FROM xoops_rw_tags ORDER BY id ASC
SELECT * FROM xoops_rw_tags WHERE id=1
SELECT lid, cid, title, date, hits FROM xoops_mylinks_links WHERE status>0 ORDER BY date DESC LIMIT 0, 5
SELECT id FROM xoops_rw_tags ORDER BY id ASC
SELECT * FROM xoops_rw_tags WHERE id=1
SELECT id FROM xoops_rw_tags ORDER BY id ASC
SELECT * FROM xoops_rw_tags WHERE id=1
SELECT COUNT(*) FROM xoops_priv_msgs WHERE (read_msg = '0' AND to_userid = '1')
SELECT * FROM xoops_config WHERE (conf_modid = '17') ORDER BY conf_order ASC
SELECT id FROM xoops_rw_tags ORDER BY id ASC
SELECT * FROM xoops_rw_tags WHERE id=1
SELECT codigo FROM xoops_rw_banner WHERE categoria=1 and status=1 ORDER BY RAND() LIMIT 0,1
SELECT * FROM xoops_rw_banner WHERE codigo=2
SELECT larg FROM xoops_rw_categorias WHERE cod=1
SELECT alt FROM xoops_rw_categorias WHERE cod=1
UPDATE xoops_rw_banner SET categoria="1", titulo="", texto="", url="http://www.sdmf.biz/tarification/tarification.htm", grafico="http://sdmf.biz/sadl/images/banners/Bannierefaitesvousvoir770X90.jpg", usarhtml="0", htmlcode='', showimg="1", exibicoes="9775", maxexib="0", clicks="1", maxclick="0", periodo="0", status="1", target="_blank", idcliente="2" WHERE codigo= 2
Total: 62 queries
Blocks
Connexion: No Cache
Menu Principal: No Cache
Recherche: No Cache
Liste des formulaires: No Cache
Liens récents: No Cache
Bloc Personnalisé (Format Auto + émoticônes): No Cache
Bloc Personnalisé (HTML): No Cache
Menu Utilisateur: No Cache
Bloc Personnalisé (HTML): No Cache
Total: 9 blocks
Extra
Timers
XOOPS took 0.315 seconds to load.
XOOPS Boot took 0.068 seconds to load.
Module init took 0.023 seconds to load.
XOOPS output init took 0.190 seconds to load.
Module display took 0.034 seconds to load.



3
capbat
Re: Failed Writing Constant errors...
  • 2006/6/17 22:02

  • capbat

  • Just popping in

  • Posts: 10

  • Since: 2006/3/28


I have done tha modifications above but when I try to access the forum modules of XOOPS 2.0.13.2 I get the following in PHP Debug mode.

Notice [PHP]: Undefined variable: HTTP_SERVER_VARS in file modules/newbb/config.php line 44
Notice [PHP]: Undefined variable: HTTP_SERVER_VARS in file modules/newbb/config.php line 44
Warning [PHP]: Invalid argument supplied for foreach() in file modules/newbb/admin/admin_forums.php line 29
Notice [PHP]: Undefined variable: mode in file modules/newbb/admin/admin_forums.php line 33

Any comments.



4
capbat
How to Install module?
  • 2006/3/29 17:37

  • capbat

  • Just popping in

  • Posts: 10

  • Since: 2006/3/28


Can any of you direct me to some good documention on how to install module. Of the few modules I have downloaded none of them explain in good details how to install them.
I am running at home as localhost.

Tks
Bat



5
capbat
Re: Cant connect to Database Problems.
  • 2006/3/29 17:14

  • capbat

  • Just popping in

  • Posts: 10

  • Since: 2006/3/28


Thanks you where rith Database Users Previleges are fixed.
Now I am looking to install modules I downloaded one but I can't find good instructions on how to install it.
If you can help by anychance.

Tks
Bat



6
capbat
Re: Problems Solved.
  • 2006/3/29 16:08

  • capbat

  • Just popping in

  • Posts: 10

  • Since: 2006/3/28


The username dit not have any previleges. Ok now. And the properties of the field might had something to do with it to.

Tks.



7
capbat
Re: Can't connect to Database Problems.
  • 2006/3/29 15:56

  • capbat

  • Just popping in

  • Posts: 10

  • Since: 2006/3/28


Being on "local" I did not use the CHMOD features to change the properties of the folders mentionned in the earlier message but I modified them and disabled the "read only" feature on them. Still can not connect.

Bat



8
capbat
Re: Can't connect to Database Problems.
  • 2006/3/29 15:51

  • capbat

  • Just popping in

  • Posts: 10

  • Since: 2006/3/28


Tkx for our answer.
But I am installing on localhost on my computer. I would understand if I was on server but I am not for the time being.
I will still investigates.
Would that prevent me from connection to the database thought?

Bat



9
capbat
Can't connect to Database Problems.
  • 2006/3/29 14:08

  • capbat

  • Just popping in

  • Posts: 10

  • Since: 2006/3/28


I will first describe my instalation.
Windows XP SP2
Browser is Firefox Mozila.
Latest version of EasyPhp (Including Apache v1.3.3 , PhP v4.3.10 Extension and MySql 4.1.9)
Downloaded latest vesion of Xoops.
Instalation.
First Page I choose English.
Second Page Welcome Pages.
-I have set up a database called "sadl"
-I have a database user's name
-I have a database password
I am not sure about the following statement on the second page of installation:
"Make the directories of uploads/, cache/ and templates_c/ and the files of mainfile.php writabale"
Cookie and Java script on browser are "On".
Third Page: No errors are detected.
Fourth Page: General Configuration is presented and everything seems ok.
Fifth Page: is as follows.
Database mysql
Database Hostname localhost
Database Username capbat
Database Password capbat
Database Name sadl
Table Prefix 177qN7
Use persistent connection? No
XOOPS Physical Path e:/backup/program files/easyphp1-8/home/html
XOOPS Virtual Path (URL)http://127.0.0.1/home/html

Sixth Page: Resumes the configuration page and gives me the following message:
"Configuration data has been saved successfully to mainfile.php."
Seventh Page: The paths are Ok.
Eight Pages: The following Appears.
Database Hostname localhost
Database Username capbat
Database Name sadl
Table Prefix 177qN7

Ninth Page: The fatal one I get the following.


"Could not connect to the database server.
Please check the database server and its configuration"

WHAT AM I DOING WRONG








TopTop



Login

Who's Online

215 user(s) are online (179 user(s) are browsing Support Forums)


Members: 0


Guests: 215


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Apr 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits