Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • Slob Friend
    #120288

    “JA Newsflash

    Fatal error: Maximum execution time of 30 seconds exceeded in /…/ja_newsflash/ja-newsflashloader.php on line 274″

    How to solve this?

    ShannonN Friend
    #220269

    Slob;15665“JA Newsflash

    Fatal error: Maximum execution time of 30 seconds exceeded in /…/ja_newsflash/ja-newsflashloader.php on line 274”

    How to solve this?

    set the time between fade, duration of show etc lower?

    Cheers ShannonN

    Slob Friend
    #220274

    <em>@ShannonN 15756 wrote:</em><blockquote>set the time between fade, duration of show etc lower?

    Cheers ShannonN</blockquote>

    No, I know it is in here: (because it won’t give an error when commenting these lines out)

    // check if any results returned
    if ( $numrows ) {
    $curnews = intval( mosGetParam( $_REQUEST, ‘curnews’ ) );

    srand ((double) microtime() * 1000000);
    while (true) {
    $flashnum = rand( 0, $numrows-1 );
    if ($flashnum != $curnews) break;
    }
    $row = $rows[$flashnum];
    }

    Slob Friend
    #220279

    I have noticed the problem occurs when having only 1 item in the category the module uses as the source. When having more articles in the category, the problem dissappears. But…
    there is no ramdomizer… it is showing only 1 article.

    ctogramm Friend
    #220471

    I edited the code like this:
    [PHP]
    srand ((double) microtime() * 1000000);
    $countdown = 5;
    while ($countdown–) {
    $flashnum = rand( 0, $numrows-1 );
    if ($flashnum != $curnews) break;
    }
    [/PHP]
    Now it does not go into an infinite loop if there is only one newsflash item.

    bossballer Friend
    #220475

    same problem here.
    i have 2 items but its only showing the the first one.
    is it possible to make the module play all the articles in the section ?
    thanks

Viewing 6 posts - 1 through 6 (of 6 total)

This topic contains 6 replies, has 4 voices, and was last updated by  bossballer 17 years, 6 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum