Page 1 of 2 12 LastLast
Results 1 to 10 of 19

Thread: Pausing RSS scroller: Death on my web

  1. #1
    Join Date
    Apr 2006
    Posts
    11
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Unhappy Pausing RSS scroller: Death on my web

    Script: Pausing RSS scroller
    http://www.dynamicdrive.com/dynamici...ller/index.htm
    Author: Dynamic Drive ( Hey, That's you!)

    So, the script worked great for days on my site... then I did some installs on my site (including phpMyadmin for sql...) and now the script does not work.

    1. I did not change any *.htm *.php or *js files as it relates to rss scroller...

    2. The sever (omnis.com) seems to be the problem, because I own a couple domains on the same server, and when I upload the script to other sites it still does not work. see:
    site 1 (standard): http://www.awig.org/rss
    site 2: http://www.bcacricket.org/test/index_use.htm

    So the big question is: what php.ini settings can I change in my default settings file for my domain? And what other reasons this dreadful death could of been cause?


    ps:
    I have read and done all at this thread: http://www.dynamicdrive.com/forums/s...ead.php?t=8672 Nothing worked!

  2. #2
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    Is your server even configured to run php scripts? One of the first things to do when you're trying to debug the RSS scripts, whether Pausing RSS scroller or RSS ticker, is to try and run the scrollerbridge.php script directly with an appropriate parameter. In your case, if I run:

    http://www.awig.org/rss/lastrss/scro...dge.php?id=cnn

    The browser prompts me to download the file instead of output something on the screen, a sign that your server isn't configured to run PHP files.

    Have you asked your web host about any changes to PHP lately?

  3. #3
    Join Date
    Apr 2006
    Posts
    11
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Well, considering that all my other PHP scripts are working, and the fact that it (rss scroller) worked for days and days, then just stoped. It tells me that I do have php support. I have a php search on the site, it works. I have phpbb it works. I have a poll app in php, and that works too.... so I think you are right in the sense that the configuration of the php "changed" recently.

    I can't contact them (web host) until tomorrow to ask about their changes but my (domain) server allows me to config my own php settings, via php.ini in my root /etc folder.

    Not being any kind of expert on php... I can oly assume that because phpBB and other php apps work, it must be a setting I mess up... but not in your script because I did not modify the "core" script code.

    see: http://www.bcacricket.org/test/index_use.htm

    It has the rss about midway down..... and this is the site where other php works (phpBB)....

    I know we can solve this!!!!

  4. #4
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    Ok, if you're sure PHP is working on your server, the next likely problem is that your server somehow cannot handle JavaScript (.js) mine types. This is relevant to scrollerbridge.php by way of this line inside it:

    Code:
    Header("content-type: application/x-javascript");
    To test this theory, edit the above line to something like:

    Code:
    header("Content-type: text/plain");
    If by changing this then visiting http://www.awig.org/rss/lastrss/scro...dge.php?id=cnn inside your browser displays some text, then that confirms the issue. Talk to your host about enabling .JS mine types, either inside httpd.conf or elsewhere.

  5. #5
    Join Date
    Apr 2006
    Posts
    11
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Got it solved. Web server reboot and the Zend Optimizer upgrade did the trick... thanks so much.

    Now: can RSS Scroller get a back and forward button!

  6. #6
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    Glad to hear.

    Now: can RSS Scroller get a back and forward button!
    Now that's a feature request, and there's quite a line up with that line. I do have plans to create a manual RSS viewer soon, where the user can manually go back and forth between RSS items.

  7. #7
    Join Date
    May 2006
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Hi!

    I have a similar problem to Sig - take a look at the page in question: http://zappsinc.awardspace.com/demo.htm

    I am pretty (99%) sure my server supports php, and I've followed the instructions on the Dynamic Drive page to the letter... yet when the scroller loads, it returns a "Sorry: It's not possible to reach RSS file http://rss.cnn.com/rss/cnn_topstories.rss" error.

    I tried your trick, ddadmin, of going to http://zappsinc.awardspace.com/lastr...dge.php?id=cnn, and although I don't get prompted to download the file, I do get that same error string.

    Have you got any ideas what might be wrong? It's probably something really obvious, knowing my luck!

    Thanks in advance!
    DZ

  8. #8
    Join Date
    May 2006
    Posts
    37
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    I couldnt get it to work at ALL on my site. THEN I found out that they do NOT permit the "FOPEN" and similar PDP commands on my webhosting server.

    My only hope is that someone can MODIFY this script using cURL commands instead, but no one has yet.

    Nelson

  9. #9
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    Hi DZ:
    It's hard to say exactly what the problem could be based just on the error:

    "Sorry: It's not possible to reach RSS file http://rss.cnn.com/rss/cnn_topstories.rss"

    though it does indicate the problem is on the server side. The most obvious thing to check first is that the path to your "cache" directory inside scrollerbridge.php is correct:

    Code:
    $rss->cache_dir = 'cache'; //path to cache directory on your server relative to scrollerbridge.php. Chmod 777!
    This assumes that the "cache" directory is directly beneath where "scrollerbridge.php" is, and that it's chmodded to 777 to allow read/write. Look inside this directory via FTP to make sure the script has deposited some "cache" files into it, indicating it has read/write permissions.

  10. #10
    Join Date
    May 2006
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Hi ddadmin!

    Thanks for your speedy response! I have checked the scrollerbridge.php file, and the link to the cache directory is correct: the cache folder is on the same level as the php file, so the reference sould be simply "cache". That's right isn't it?

    The cache has 777 permissions, and there are cache files inside it (eg: "rsscache_4a557f2f685dba25493c4f53092d421c") - so that bit is surely working.

    What else could be wrong, do you think?

    Thanks!
    DZ

    ps: sorry about the double post - won't do it again.

Bookmarks

Posting Permissions

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