Announcement

Collapse
No announcement yet.

Getting a Re-Occuring Fatal Error in my Logs "fetch_microtime_difference()"

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • [Forum] Getting a Re-Occuring Fatal Error in my Logs "fetch_microtime_difference()"

    [24-Sep-2010 09:23:34] PHP Fatal error: Cannot redeclare fetch_microtime_difference() (previously declared in /home/[SITE]/public_html/includes/functions_misc.php:15) in /home/[SITE]/public_html/includes/functions_misc.php on line 21
    vBulletin Version: 4.0.7

    Let me know how to fix this. Thanks.
    47. Software of the kind released by XL generally takes several years to research and develop, as did vBulletin. Based, in part, on the speed in which the XenForo product was released slightly more than a year after Darby and Sullivan left VBSI, VBSI is informed and believes, and on that basis alleges, that Darby and Sullivan retained Jelsoft's and VBSI's proprietary materials obtained during their employment by Jelsoft pertaining to existing and future versions of vBulletin ...

  • #2
    What does the first 50 lines of your functions_misc.php look like? I don't see the function being declared twice.
    Translations provided by Google.

    Wayne Luke
    The Rabid Badger - a vBulletin Cloud demonstration site.
    vBulletin 5 API - Full / Mobile
    Vote for your favorite feature requests and the bugs you want to see fixed.

    Comment


    • #3
      fetch_microtime_difference is the first function in functions_misc.php


      It seems that you have included the file already somewhere with include/require instead of include_once / require_once.

      Does this happen if you deactivate the pluginsystem?

      Comment


      • #4
        Sorry for not posting this earlier, but here is the first 50 lines of my functions_misc.php:

        Code:
        <?php
        /*======================================================================*\
        || #################################################################### ||
        || # vBulletin 4.0.7 - Licence Number VBS2EB8C1C
        || # ---------------------------------------------------------------- # ||
        || # Copyright ©2000-2010 vBulletin Solutions Inc. All Rights Reserved. ||
        || # This file may not be redistributed in whole or significant part. # ||
        || # ---------------- VBULLETIN IS NOT FREE SOFTWARE ---------------- # ||
        || # http://www.vbulletin.com | http://www.vbulletin.com/license.html # ||
        || #################################################################### ||
        \*======================================================================*/
        
        // ###################### Start microtime_diff #######################
        // get microtime difference between $starttime and NOW
        function fetch_microtime_difference($starttime, $addtime = 0)
        {
            $finishtime = microtime();
            $starttime = explode(' ', $starttime);
            $finishtime = explode(' ', $finishtime);
            return $finishtime[0] - $starttime[0] + $finishtime[1] - $starttime[1] + $addtime;
        }
        
        // ###################### Start mktimefix #######################
        // mktime() workaround for < 1970
        function mktimefix($format, $year)
        {
            $two_digit_year = substr($year, 2);
        
            // note: the ISO (%G) replaces here are not always correct, but it's the best we can do
            $replace = array(
                '%Y' => $year,
                '%y' => $two_digit_year,
                '%G' => $year,
                '%g' => $two_digit_year,
                'Y'  => $year,
                'y'  => $two_digit_year,
                'o'  => $year
            );
        
            return str_replace(array_keys($replace), $replace, $format);
        }
        
        // ###################### Start getlanguagesarray #######################
        function fetch_language_titles_array($titleprefix = '', $getall = true)
        {
            global $vbulletin;
        
            $out = array();
        
            $languages = $vbulletin->db->query_read_slave("
        47. Software of the kind released by XL generally takes several years to research and develop, as did vBulletin. Based, in part, on the speed in which the XenForo product was released slightly more than a year after Darby and Sullivan left VBSI, VBSI is informed and believes, and on that basis alleges, that Darby and Sullivan retained Jelsoft's and VBSI's proprietary materials obtained during their employment by Jelsoft pertaining to existing and future versions of vBulletin ...

        Comment


        • #5
          As wrote already
          Originally posted by ragtek View Post
          Does this happen if you deactivate the pluginsystem?

          Comment

          Loading...
          Working...
          X