Forum Replies Created

Viewing 4 replies - 46 through 49 (of 49 total)
  • It sounds as if there are permission issues with the cache directory. I suggest you connect to site via ftp/cpanel, and verify you have write permission to the cache directory.

    Have you tried to simply disable the caching?

    The caching issue and “deleted posts” issues may not be related.

    An old version of the prepare function:
    function prepare($args=NULL) {
    The current version of prepare function:
    public function prepare( $query, $args ) {

    Function prepare currently requires two parameters $query & $args. If the $args (second parameter) is null, the function simply returns. The purpose of the prepare function is to “sanitize” the query, removing any double quoted or single quoted wild cards. You could try to simply add “,NULL” to the prepare call.

    I was unable to load the plugin, so I can’t reproduce your error.

    I did find an alternative to this plugin, which is a paid plugin, and it may resolve your issues. Here is the link to the alternative

    ArtK,
    It looks like there may be a plugin that may do this for you:
    https://www.ads-software.com/plugins/post-views-stats/

    taghaboy,

    I inserted your script into footer.php, and it worked well as long as the script is after the defined span & div.

    In your example, this appeared to work ok:

    <span id="Bonjour">Bonjour</span>
    <div id="Time"></div>
    .
    . more code
    
    <?php wp_footer(); ?>
    
    <script type='text/javascript'>
    today = new Date();
    document.getElementById('Time').innerHTML = today.getHours();
      if (today.getHours() < 0 || today.getHours() >= 18) {
        document.getElementById('Bonjour').innerHTML = 'Test Bonsoir';
    }
    </script>

    This did not work:

    <script type='text/javascript'>
    today = new Date();
    document.getElementById('Time').innerHTML = today.getHours();
      if (today.getHours() < 0 || today.getHours() >= 18) {
        document.getElementById('Bonjour').innerHTML = 'Test Bonsoir';
    }
    </script>
    
    <span id="Bonjour">Bonjour</span>
    <div id="Time"></div>
    .
    . more code
    
    <?php wp_footer(); ?>
Viewing 4 replies - 46 through 49 (of 49 total)