PhpDig.net

Go Back   PhpDig.net > PhpDig Forums > Troubleshooting

Reply
 
Thread Tools
Old 10-09-2004, 08:33 PM   #1
sanfly
Green Mole
 
Join Date: Oct 2004
Posts: 1
Function_phpdig_form.php issues

Okay, so as directed in the config.php instructions i have copied search.php and clickstats.php into my main directory from phpdig dir. I have also added ./phpdig where directed.

My problem is, if i dont set $relative_script_path to ./phpdig, then search.php just displays as a blank white page. When i do set it, the search page loads, but when I try and search for anything I get an error message "Unable to find connect.php file for dropdown menu."

This error message is defined in function_phpdig_form.php, but I dont understand why it is occuring. Several other places call connect.php without a problem, it just seems to be this page that has an issue with it.

THis is the code
PHP Code:
if (DISPLAY_DROPDOWN) {
  
$dropdown_flag 0;
  
$relative_script_path './phpdig';
  if (isset(
$_GET['template_demo'])) { $template_demo $_GET['template_demo']; } else { $template_demo ""; }
  
    if (
is_file("$relative_script_path/includes/connect.php")) {
        include 
"$relative_script_path/includes/connect.php";
    }
    else {
        die (
"Unable to find connect.php file for dropdown menu.\n");
    } 
For now i have made DISPLAY_DROPDOWN in config.php false, but I am curious to know why this error is occuring
sanfly is offline   Reply With Quote
Old 10-10-2004, 09:14 AM   #2
vinyl-junkie
Purple Mole
 
Join Date: Jan 2004
Posts: 694
I don't know your directory structure, but I believe all you need to do is change this value to something else:
Code:
$relative_script_path = './phpdig';
PhpDig is looking for connect.php in a path
./phpdig/includes/connect.php

Is this correct?
vinyl-junkie is offline   Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Spider Issues LauzonRSD Troubleshooting 10 11-05-2005 12:46 PM
Newb to PHP; install issues Vespa Script Installation 1 09-27-2005 08:17 AM
Security issues Niele How-to Forum 1 04-25-2005 09:52 AM
Authentication Issues tdsongo Troubleshooting 1 10-04-2004 11:40 AM
Hardcoded Language In function_phpdig_form.php AllKnightAccess Bug Tracker 0 09-23-2004 10:26 PM


All times are GMT -8. The time now is 07:37 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright © 2001 - 2005, ThinkDing LLC. All Rights Reserved.