Results 1 to 8 of 8

Thread: several Error messages ( need some help )

  1. #1
    Join Date
    May 2005
    Posts
    4

    Default several Error messages ( need some help )

    I tried to install indexu lite, but i got the following error messages :

    Warning: main(c:/www/apache/htdocs/sdir_free/www/indexulite/lang/english.php): failed to open stream: No such file or directory in /home/www/gubule/www/indexulite/application.php on line 130

    Warning: main(): Failed opening 'c:/www/apache/htdocs/sdir_free/www/indexulite/lang/english.php' for inclusion (include_path='.:/usr/local/lib/php') in /home/www/gubule/www/indexulite/application.php on line 130

    Warning: main(c:/www/apache/htdocs/sdir_free/pagination.class.php): failed to open stream: No such file or directory in /home/www/gubule/www/indexulite/application.php on line 131

    Warning: main(): Failed opening 'c:/www/apache/htdocs/sdir_free/pagination.class.php' for inclusion (include_path='.:/usr/local/lib/php') in /home/www/gubule/www/indexulite/application.php on line 131

    Warning: mysql_connect(): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) in /home/www/gubule/www/indexulite/application.php on line 404
    Unable to connect to database
    What should I put in :

    include($base_path."????????");
    include($base_path."????????");

    to get rid of those errors


    Basically, my problem probably comes from the fact that I am not familiar with php, I can understand how to fill the following :

    // ----- database -----

    $dbHostname = "localhost";
    $dbUsername = "my database user name";
    $dbPassword = "my database password";
    $dbName = "database name";


    // ----- administrator password -----

    $admin_username = 'my ID';
    $admin_password = ' my password';

    // ----- site url, without trailing with '/' -----

    $site_url = " my url ";


    But I dont really know what to do with :

    // ----- base path, trailing with '/' -----

    $base_path = "c:/www/apache/htdocs/sdir_free/";

    // ----- template path, trailing with '/' -----

    $template_path = "c:/www/apache/htdocs/sdir_free/templates/";


    Could someone give me some explainations

    Thanking you in advance

    Gubule

  2. #2
    Join Date
    Apr 2003
    Location
    Atlanta GA
    Posts
    3,395

    Default

    I think if you run the install program, it will populate that information for you.

    or ask you host what the path is to your root directory. they also generally provide you with that information at the time you establish your account with them. Check the email they sent you.

    Use that path unless you install INDEXU in a sub-folder. Then use path_to_root/sub-folder.

    The path to my root is: "/home/esm_acct/public_html. so mine looks like:
    // ----- base path, trailing with '/' -----

    $base_path = "/home/esm_acct/public_html/indexu32e/";

    // ----- theme path, trailing with '/' -----

    $theme_path = "/home/esm_acct/public_html/indexu32e/themes/";

    // ----- admin template path, trailing with '/' -----

    $admin_template_path = "/home/esm_acct/public_html/indexu32e/admin_tpl/";

    .
    esm
    "The older I get, the more I admire competence, just simple competence, in any field from adultery to zoology."

    .

  3. #3
    Join Date
    May 2005
    Posts
    4

    Question php for dummies ( still need help )

    Thank you for your answer esm,

    I tried to enter the data via indexulite/install.php , but since I always get a "Unable to select database" message, I entered those data directly in application.php. As a result I was able to open : http://gubule.celeonet.fr/indexulite/index.php, but it does not work properly, I got several message saying there is a problem with :mysql_num_rows() :

    Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/www/gubule/www/indexulite/index.php on line 25

    Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/www/gubule/www/indexulite/new.php on line 14

    Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/www/gubule/www/indexulite/hot.php on line 12

    Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/www/gubule/www/indexulite/pick.php on line 14

    Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/www/gubule/www/indexulite/application.php on line 265


    I tried to add a category but it did not work. I also had a :
    Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/www/gubule/www/indexulite/application.php on line 265 message when I was in /indexulite/admin/index.php.

    What did I missed this time

    Thanks for your help

  4. #4
    Join Date
    Apr 2003
    Location
    Atlanta GA
    Posts
    3,395

    Default

    Generally, only the first error message in a series of msgs will be important. Error msgs after the first error msg are caused by the first error msg. Fix the first error msg and the rest will go way. Unless, there are other errors. Then just repeat the process.

    Quote Originally Posted by gubule
    [SIZE=1]Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/www/gubule/www/indexulite/index.php on line 25
    this just means that there were no categories found when at least one would have been expected.

    Have you added any categories???? See next



    Quote Originally Posted by gubule
    I tried to add a category but it did not work. I also had a :
    Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/www/gubule/www/indexulite/application.php on line 265 message when I was in /indexulite/admin/index.php.
    What error msg did you get when you tried to add a category???



    .
    esm
    "The older I get, the more I admire competence, just simple competence, in any field from adultery to zoology."

    .

  5. #5
    Join Date
    May 2005
    Posts
    4

    Default

    Hi esm,

    I tried to add a category without success, here is what I see when I go to the admin panel in order to add one :




    I enter a new category and get a Message : New category has been added

    but when I go back to the public aera thre is no added category

  6. #6
    Join Date
    Apr 2003
    Location
    Atlanta GA
    Posts
    3,395

    Default

    can you click on the application setup hyperlink?

    do you have the phpmyadmin in your host control panel?

    if so, run the following mysql statement?

    insert into category (parent_id,name,description)
    values('0','test','test description')

    can you now add a category using the indexulite category add?

    I was not aware you were using indexulite. based on the info you have supplied, this is what your application.php should look like:

    // ----- administrator password -----

    $admin_username = 'admin';
    $admin_password = 'admin';

    // ----- site url, without trailing with '/' -----

    $site_url = "http://gubule.celeonet.fr/indexulite";

    // ----- base path, trailing with '/' -----

    $base_path = "/home/www/gubule/www/indexulite/";

    // ----- template path, trailing with '/' -----

    $template_path = "/home/www/gubule/www/indexulite/templates/";

    // ----- administrator email -----

    $admin_email = "to_you@your_site.fr";



    .
    esm
    "The older I get, the more I admire competence, just simple competence, in any field from adultery to zoology."

    .

  7. #7
    Join Date
    May 2005
    Posts
    4

    Default

    I ran

    insert into category (parent_id,name,description)
    values('0','test','test description')

    I got #1146 - La table 'gubule_3.category' n'existe pas Ã* la ligne 1

    the base is empty

    is there a table.sql somewhere I could run ?

  8. #8
    Join Date
    Apr 2003
    Location
    Atlanta GA
    Posts
    3,395

    Default

    Quote Originally Posted by gubule
    is there a table.sql somewhere I could run ?
    the above sql statement is what you would see in a "table.sql" file.

    If you like, you could add it to blank file and upload it and then run.



    Quote Originally Posted by esm
    do you have the phpmyadmin in your host control panel?
    phpmyadmin allows you to insert records. you could add a category that way???


    but I suspect your problem has to do with the "setup." Something is wrong somewhere. Wrong path, register globals is off, wrong server setup, etc

    I suggest you contact nicecoder support at support@nicecoder.com.


    .
    esm
    "The older I get, the more I admire competence, just simple competence, in any field from adultery to zoology."

    .

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •