Facebook RSS Reader Cronjob Error

Discussion in 'HOWTO-Related Questions' started by do3a, Dec 2, 2008.

  1. do3a

    do3a New Member

    hi,

    i have built the application step by step, and everything is working fine, except that the cronjob.php is giving an http 500 error, which is an internal server error, or a programming error.

    i reviewed the code couple of times, and there is no flaws.

    PHP:
    <?php

    include('conf.php');



    require_once(
    'facebook.php');



    $facebook = new Facebook($appapikey$appsecret);



    $facebook->api_client->session_key $infinite_session_key;


    $facebook->api_client->fbml_refreshRefUrl($rss_url);

    ?>


     
  2. falko

    falko Super Moderator Howtoforge Staff

    What's in Apache's error log?
     
  3. do3a

    do3a New Member

  4. falko

    falko Super Moderator Howtoforge Staff

    Did you also check the web site's error log?
     
  5. do3a

    do3a New Member

    i might sound stupid

    but it will be great from a generous person like you, to tell me how to do that?

    because i have no clue how to check the error log?

    thanks a lot Falko

    you are the best
     
  6. falko

    falko Super Moderator Howtoforge Staff

    Apache's error log is most likely in /var/log/apache2 or /var/log/httpd; the web site's error log might be somewhere else, e.g. /var/www/www.example.com/logs.

    You can check the logs with cat (e.g.
    Code:
    cat /var/log/apache2/error.log
    ) or tail (e.g.
    Code:
    tail -n100 /var/log/apache2/error.log
    to display the last 100 lines).
     

Share This Page