Forums

[resolved] [Plugin: Countdown Timer] Error loading countdown js in WP2.6.3 on Windows (6 posts)

  1. bengtatnancodotse
    Member
    Posted 1 year ago #

    Hi,

    Have some error when running countdown in WP on a Windows PC server.
    It seems that the code expect it to be a "real" server/OS with the slashes pointing in the "right" direction or something in that category.

    The first respons below comes from the following line o code:

    Line 947: echo '<script language="JavaScript" type="text/javascript" src="'.get_bloginfo('url').'/'.str_replace(ABSPATH, '', dirname(__FILE__)).'/fergcorp_countdownTimer_java.js"></script>';

    Extract from the response:
    <title>403 Forbidden</title>
    //-------------
    <p>You don't have permission to access /Sites/Site1_FAS/wp/C:ProgramApacheSoftwareFoundationApache2.2htdocsSitesSite1_FASwpwp-contentpluginscountdown-timer
    /fergcorp_countdownTimer_java.js
    on this server.</p>

    Extract from the next response:
    <title>403 Forbidden</title>
    //------------
    <p>You don't have permission to access /Sites/Site1_FAS/wp/C:ProgramApacheSoftwareFoundationApache2.2htdocsSitesSite1_FASwpwp-contentpluginscountdown-timer/webtoolkit.sprintf.js on this server.</p>

    Could You help me on this one?

    Regards
    Bengt

  2. fergbrain
    Member
    Posted 1 year ago #

    This has been a known problem for a while and I'm happy to report that I believe the bug has finally been quashed in the next release!

    You can either wait until the official 2.3 release of Countdown Timer or you can grab the latest development version (2.2.9.5) from http://downloads.wordpress.org/plugin/countdown-timer.zip

    Hope that helps!

    -Andrew

  3. bengtatnancodotse
    Member
    Posted 1 year ago #

    Thanks!

    Now its loading without problems!

    Regards
    Bengt

  4. andybala
    Member
    Posted 11 months ago #

    For some reason, when I load the widget into my sidebar on WP 2.7, the countdown of seconds does not update dynamically when I view it on the page (ie., it does not keep counting down), but does get keep getting updated when I refresh the page everytime.

    But, on the admin side, I can see the seconds ticking on the Example Display. Thoughts?

    Thanks,
    Andy

  5. andybala
    Member
    Posted 11 months ago #

    Hi, I saw the reply in topic 178665, "The program has an action that hooks on to wp_head and wp_footer", is there a way around to make it work?

    I created custom pages and sidebars for my own use. Thanks.

  6. fergbrain
    Member
    Posted 11 months ago #

    andybala:

    The quickest way to fix the issue is to add the appropriate calls to wp_head() and wp_footer().

    Alternatively, you can also make php calls to fergcorp_countdownTimer_LoadUserScripts() in the header and afdn_countdownTimer_js() in footer.

Topic Closed

This topic has been closed to new replies.

About this Topic