Error when registering! Offset: 8192

    This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

    • Error when registering! Offset: 8192

      Hi. This happens when correctly registering. I have no clue where to look and what to do at this point.


      Fatal error: Uncaught exception 'ErrorException' with message 'Undefined offset: 8192' in /home/meladze/public_html/includes/GeneralFunctions.php:891Stack trace:#0 /home/meladze/public_html/includes/GeneralFunctions.php(891): errorHandler(8, 'Undefined offse...', '/home/meladze/p...', 891, Array)#1 [internal function]: exceptionHandler(Object(ErrorException))#2 {main} thrown in /home/meladze/public_html/includes/GeneralFunctions.php on line 891
    • PHP Source Code

      1. ob_start();
      2. echo '<!DOCTYPE html>
      3. <!--[if lt IE 7 ]> <html lang="de" class="no-js ie6"> <![endif]-->
      4. <!--[if IE 7 ]> <html lang="de" class="no-js ie7"> <![endif]-->
      5. <!--[if IE 8 ]> <html lang="de" class="no-js ie8"> <![endif]-->
      6. <!--[if IE 9 ]> <html lang="de" class="no-js ie9"> <![endif]-->
      7. <!--[if (gt IE 9)|!(IE)]><!--> <html lang="de" class="no-js"> <!--<![endif]-->
      8. <head>
      9. <title>'.$gameName.' - '.$errorType[$errno].'</title>
      10. <meta name="generator" content="2Moons '.$VERSION.'">
      11. <!--
      12. This website is powered by 2Moons '.$VERSION.'
      13. 2Moons is a free Space Browsergame initially created by Jan Kr�pke and licensed under GNU/GPL.
      14. 2Moons is copyright 2009-2013 of Jan Kröpke. Extensions are copyright of their respective owners.
      15. Information and contribution at http://2moons.cc/
      16. -->
      Display All
    • I don't really know. It's public jeremy's xterium version. 1.7.x I guess. Everything was working normally but one day I noticed that there are no new players for a pretty long time so I checked registration and it threw this error.
    • if you can click on registration but u get the error when submitting.......Make sure u didn't edit anything....( If you did I'll get to that).....In the admin settings under server make sure recaptcha is not active if it is you will get an error....If you did edit anything in the login and don't know how to fix for what was edited just take the login from the ear or zip file you got and reupload to the respective locations.......Includes/login......And styles/template/login......Their is a script folder but if you didn't edit anything their then leave it....... Xterium is a great version of 2moons.... But it does come with its bugs.....U should have a backup directory on your server... When you edit anything do it their devote you implement anything on your live version....Hope that helped
    • Meladze wrote:

      Hi. This happens when correctly registering. I have no clue where to look and what to do at this point.


      Fatal error: Uncaught exception 'ErrorException' with message 'Undefined offset: 8192' in /home/meladze/public_html/includes/GeneralFunctions.php:891Stack trace:#0 /home/meladze/public_html/includes/GeneralFunctions.php(891): errorHandler(8, 'Undefined offse...', '/home/meladze/p...', 891, Array)#1 [internal function]: exceptionHandler(Object(ErrorException))#2 {main} thrown in /home/meladze/public_html/includes/GeneralFunctions.php on line 891
      this error is the errormessage of the errorhandler of 2moons
      to fix all errors not defined and see the stacktrace
      find
      in file includes/generalfunctions.php

      PHP Source Code

      1. $errorType = array(
      2. E_ERROR => 'ERROR',
      3. E_WARNING => 'WARNING',
      4. E_PARSE => 'PARSING ERROR',
      5. E_NOTICE => 'NOTICE',
      6. E_CORE_ERROR => 'CORE ERROR',
      7. E_CORE_WARNING => 'CORE WARNING',
      8. E_COMPILE_ERROR => 'COMPILE ERROR',
      9. E_COMPILE_WARNING => 'COMPILE WARNING',
      10. E_USER_ERROR => 'USER ERROR',
      11. E_USER_WARNING => 'USER WARNING',
      12. E_USER_NOTICE => 'USER NOTICE',
      13. E_STRICT => 'STRICT NOTICE',
      14. E_RECOVERABLE_ERROR => 'RECOVERABLE ERROR'
      15. );
      Display All


      and ADD after

      PHP Source Code

      1. if(!isset($errorType[$errno])){
      2. $errorType[$errno] = $errno;
      3. }
    • this solution is not only for you, if anyone has an error,
      wich is not in the errortype array, he will get this error,
      and this will prevent him to see the real error,
      so this is a valubale fix, and i worte it that people can find the solution if they search.
      cause this error hasn't been fixed till now.