Debug Module Error

Discussion in 'Technical Support' started by freeze2, Dec 27, 2011.

  1. freeze2 Customer

    What version of 68 Classifieds are you running?
    V4.2.3 Designer

    What template are you using?
    Default

    Please describe in detail the issue you are having:

    I just uploaded the Debug Module and then activated it through the admin. At this point it caused my site to go down showing the following error:

    Code:
    Fatal error: Call to undefined method MySQL::profile() in /home/path_to_script/modules/debug/hooks.php on line 26
    After deleting the module, all things were working fine again.

    Any thoughts?
  2. Mike-N-Tosh Developer & Moderator

    A couple of things to take a look at:
    1. I noticed that when you unzip this module, the main folder for the module is named "debug.php4.v1.2". It should be just "debug" and that would cause an error like this, because it is looking for the "debug" directory and not "debug.php4.v1.2" directory.

    2. It could be that the file, "hooks.php" is corrupt. this happens quite often with ftp uploads.

    Not sure why you are using this module as it is mainly for use with developers that simply shows all of the sql search queries which is helpful in developing modules or modifying core php files in the script.

    For some reason, many people confuse this module for the Smarty debug function which allows you to see what variables are assigned to any template page in a pop up window. To use the Smarty debug, you do NOT need to install anything, you just need to add "{debug}" (without the quotes) as the very first item in your layout.tpl in your template folder.
  3. freeze2 Customer

    Yup...that was it...thanks!
  4. John Snyder Staff

    This is because in 4.2.3 and 4.2.4 the database class was updated. I guess I need to put in a max version for these php4 modules. For the most part they might work with 4.2.3+ but Maintenance and Debug will not likely work unless they are the PHP5 modules. I can update these PHP4 modules, but they would no longer work with versions previous to 4.2.3.

Share This Page