We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 25388
    • 31 Posts
    After a fresh installation i get this error when i turn the stopOnNotice = true option in index.php and have no clue what’s missing. I checked the configuaration.inc.php and put the database_connection_encoding in it but with no luck :-S

    « MODx Parse Error »
    MODx encountered the following error while attempting to parse the requested resource:
    « PHP Parse Error »
     
    PHP error debug
      Error: 	Undefined variable: charset	 
      Error type/ Nr.: 	Notice - 8	 
      File: 	/home/../domain.com/manager/includes/extenders/dbapi.mysql.class.inc.php	 
      Line: 	85	 
      Line 85 source: 	$charset = $charset ? $charset : $this->config['charset']; 	 
     
    Parser timing
      MySQL: 	0.0000 s	(0 Requests)
      PHP: 	0.0998 s	 
      Total: 	0.0998 s	 
    Error while inserting event log into database.
    
    • Interesting, I think that should be:
      $charset = isset($charset) ? $charset : $this->config['charset'];
      

        Garry Nutting
        Senior Developer
        MODX, LLC

        Email: [email protected]
        Twitter: @garryn
        Web: modx.com
      • That’s supposed to be modx_charset.
          Studying MODX in the desert - http://sottwell.com
          Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
          Join the Slack Community - http://modx.org
          • 25388
          • 31 Posts
          And how can i fix this? The database charset and the modx charset in the backend is set ... as i’ve seen earlier versions have been equally so i guess the error is not the dbapi code, probably the constructor call somewhere?

          Weird is also that the Manager works pretty well :-/
            • 7231
            • 4,205 Posts
            Any particular reason you have stopOnNotice = true? What drove you to consider this, was there an error or an event log issue?

            I see this in your error that I do not get:
            Error while inserting event log into database.
              [font=Verdana]Shane Sponagle | [wiki] Snippet Call Anatomy | MODx Developer Blog | [nettuts] Working With a Content Management Framework: MODx

              Something is happening here, but you don't know what it is.
              Do you, Mr. Jones? - [bob dylan]
              • 25388
              • 31 Posts
              After the installation the index.php showed nothing so i turned this debug option on to see what’s happening.
                • 25388
                • 31 Posts
                I reinstalled MODx several times and now it seems to work fine, i guess there was something wrong with the transmission of a file :-S