I've just noticed that the Search at the right hand side of the logo doesn't work. Mod-rewrite is turned off 'cause it didn't work for some odd reason so that's not the issue.
I've also noticed that the problem exists on another site that uses this script. (I forget which member owns it) but here's the link to see what I'm referring to:
http://dwtutorials.com/tutorials/.
The same happens with my site. Any fix for this?
Well i attempted to do a search on my site for a tutorial i have posted.
And ended up with a long list of error messages.
Code:
Warning: mysql_result(): supplied argument is not a valid MySQL result resource in /home/alteredi/public_html/******/tutorials/_admin/module_templates/template.function.php on line 37
Warning: mysql_result(): supplied argument is not a valid MySQL result resource in /home/alteredi/public_html/******/tutorials/_admin/module_templates/template.function.php on line 38
Warning: mysql_result(): supplied argument is not a valid MySQL result resource in /home/alteredi/public_html/******/tutorials/_admin/module_templates/template.function.php on line 39
Warning: mysql_result(): supplied argument is not a valid MySQL result resource in /home/alteredi/public_html/******/tutorials/_admin/module_templates/template.function.php on line 40
Warning: mysql_result(): supplied argument is not a valid MySQL result resource in /home/alteredi/public_html/******/tutorials/_admin/module_templates/template.function.php on line 41
Warning: mysql_result(): supplied argument is not a valid MySQL result resource in /home/alteredi/public_html/******/tutorials/_admin/module_templates/template.function.php on line 42
Warning: mysql_result(): supplied argument is not a valid MySQL result resource in /home/alteredi/public_html/******/tutorials/_admin/module_templates/template.function.php on line 43
Warning: mysql_result(): supplied argument is not a valid MySQL result resource in /home/alteredi/public_html/******/tutorials/_admin/module_templates/template.function.php on line 44
Warning: mysql_result(): supplied argument is not a valid MySQL result resource in /home/alteredi/public_html/******/tutorials/_admin/module_templates/template.function.php on line 45
Warning: mysql_result(): supplied argument is not a valid MySQL result resource in /home/alteredi/public_html/******/tutorials/_admin/module_templates/template.function.php on line 46
Warning: mysql_result(): supplied argument is not a valid MySQL result resource in /home/alteredi/public_html/******/tutorials/_admin/module_templates/template.function.php on line 47
Warning: main(_admin/module_templates/_templates/) [function.main]: failed to open stream: No such file or directory in /home/alteredi/public_html/******/tutorials/_admin/module_templates/template.function.php on line 106
Warning: main(_admin/module_templates/_templates/) [function.main]: failed to open stream: No such file or directory in /home/alteredi/public_html/******/tutorials/_admin/module_templates/template.function.php on line 106
Warning: main() [function.include]: Failed opening '_admin/module_templates/_templates/' for inclusion (include_path='.:/usr/php4/lib/php:/usr/local/php4/lib/php') in /home/alteredi/public_html/******/tutorials/_admin/module_templates/template.function.php on line 106
Now this was done by using the search function in the header.
But if i go to tutorials and then do an exact search, it seems to work just fine.
Also this is the url it gives after doing the search from the index page.
http://www.******.com/tutorials/?search=...em&cat=all
I am surprised I missed this... Anyways open the "header" template and find this line:
Code:
<form action="$config[HTTP_SERVER]tutorials/" method="GET">
replace with
Code:
<if condition="$config[MOD_REWRITE_ON] == 1">
<form action="$config[HTTP_SERVER]tutorials/" method="GET">
<else />
<form action="$config[HTTP_SERVER]tutorials.php" method="GET">
</if>
Thank you scott, that resolved the issue.
Worked like a charm. Thanks for the fix.
