+ Reply to Thread
Results 1 to 4 of 4

Thread: please help mee :)

  1. Join Date
    Sep 2004
    Posts
    6

    please help mee :)

    ok im setting up a website on my pc with phpbb. im using easyphp and i want to use this news thingy for my homepage. i dont have an ftp thing because im using my pc....is this the right thing to do?? so does this mean i cant chmod the files and will this matter?? i have installed this mod but when using this for my testing homepage to try and get it to work **<HTML>
    <HEAD>
    <TITLE> News </TITLE>
    <LINK rel="stylesheet" type="text/css" href="style.css">
    </HEAD>

    <?php include_once("d:/program files/easyphp1-7/www/forum-news/news.php");
    Show_News("3"); ?>

    <?php include_once("d:/program files/easyphp1-7/www/forum-news/news.php");
    Show_Headlines("3"); ?>

    </BODY>
    </HTML>**

    it comes up with this message when trying to view that page **Notice: Undefined index: page in d:\program files\easyphp1-7\www\forum-news\news.php on line 605

    Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in d:\program files\easyphp1-7\www\forum-news\data\classes\mysql.php on line 47
    There is no news to display in specified category**

    what noobish thing am i doing wrong, can anyone help h34r: im trying to go back and think what could of gone wrong.


    Also if it helps, when trying to open the examples.php it comes up with this **Warning: main(news.php): failed to open stream: No such file or directory in d:\program files\easyphp1-7\www\forum-news\extra\examples.php on line 9

    Warning: main(): Failed opening 'news.php' for inclusion (include_path='.;D:\Program Files\EasyPHP1-7\php\pear\') in d:\program files\easyphp1-7\www\forum-news\extra\examples.php on line 9
    Example of calling all default forum ids (that were specified in config.inc.php):

    Fatal error: Call to undefined function: show_news() in d:\program files\easyphp1-7\www\forum-news\extra\examples.php on line 14**

  2. Join Date
    Aug 2004
    Posts
    781

    please help mee :)

    Hello!

    The notice error is actually an error generated by PHP to avoid sloppy programming. That is not to suggest the programming of the script is sloppy (although it needs some rewriting), but rather that your PHP configuration is set to catch all errors & notices. You can either change this in the php.ini file or you can open up the news.php file of the script, and find the following:
    Code:
    switch($_GET['page'])
    And replace it with
    Code:
    switch((!empty($_GET['page']) ? $_GET['page'] : "main"))
    As for your other error, the mysql one, check to see:
    1. Your database information is correct.
    2. You actually have something posted in the forum you are pulling news from.

  3. Join Date
    Sep 2004
    Posts
    6

    please help mee :)

    now when i try to go on the templates i just get a blank page

    i dont know much about the mysql but i have 2 databases....one called forum1 which is for phpbb and the other called mysql which im not quite sure what its for <_< i have tried both but it doesnt seem to change anything :unsure: also when i go to the admin page i get some errors at the top....**Notice: Undefined index: username in d:\program files\easyphp1-7\www\forum-news\admin\index.php on line 1043

    Notice: Undefined property: MenuData in d:\program files\easyphp1-7\www\forum-news\admin\admin_template.php on line 223

    Notice: Undefined index: url in d:\program files\easyphp1-7\www\forum-news\admin\admin_template.php on line 226**

    but i opened up these and went to the line it said but im not sure if i should change anything??

    and now on the homepage which i want the news to be on it says **Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in d:\program files\easyphp1-7\www\forum-news\data\classes\phpbb-v2.php on line 93

    Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in d:\program files\easyphp1-7\www\forum-news\data\classes\phpbb-v2.php on line 208

    Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in d:\program files\easyphp1-7\www\forum-news\data\classes\phpbb-v2.php on line 93

    Notice: Undefined variable: all_headlines in d:\program files\easyphp1-7\www\forum-news\news.php on line 482**

    please dont give up on me lol

  4. Join Date
    Aug 2004
    Posts
    781

    please help mee :)

    All of those notice errors are due to your PHP settings being turned up way to high. Not exactly sure how easyphp works, so I can't really advise you as how to change it. I can tell you that in a normal php install there is a php.ini file somewhere on your computer. You can find this file (on windows it is usually in the C:\windows folder), open it, and locate:
    error_reporting = E_ALL
    or something similar to that in the php.ini file. Change it to
    error_reporting = E_ALL & ~E_NOTICE


    As for your mysql errors, you should configure the forum news script with the correct database information that you used when you installed PHPBB. You can probably find this information in some phpBB configuration file as well.

+ Reply to Thread

Posting Permissions

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