Debugging Turned on to Developer Mode on 1.8.2

Debugging Turned on to Developer Mode on 1.8.2

by R Mc -
Number of replies: 5
Hi,

I recently turned debugging on for Moodle by going to Settings Server -> Debugging I believe, I am not totally sure due to I can not get back there because I am getting the following Error below. I turned it on to developer mode debugging and need to turn it off but cant seem to find out how to do that manually without using the site.

This is the error when i try to access the http://siteURL/moodle/admin/settings.php

XML Parsing Error: mismatched tag. Expected: </img>.
Location: http://moodleSite/moodle/admin/settings.php
Line Number 85, Column 7:
</td>
------^


Now I know that it is expecting a closing </img> tag but I have not modified this install I am just working on it. I tried to go back to the index.php and got this error:

XML Parsing Error: mismatched tag. Expected: </img>.
Location: http://www.moodle.trainwerks.biz/moodle/
Line Number 85, Column 7:
</td>
------^


At this point I am getting the same error could it be with the index? Seems to happen no matter what page I go to.

Any Idea on how to turn off debugging with out access to the Moodle site?

Good news is I backed up the Install prior to enabling maintenance mode and turning on debugging
Average of ratings: -
In reply to R Mc

Re: Debugging Turned on to Developer Mode on 1.8.2

by Anthony Borrow -
Picture of Core developers Picture of Plugin developers Picture of Testers
Ooops. I've been there although thankfully I did this on my test server rather than a development server. This is why whenever I recommend that folks turn on debugging that they do NOT use developer mode (it really is beneficial for developers but otherwise - as you can see - can be a pain). So, let's get you back into business. Either logging into mysql or using phpmyadmin run the following query:

UPDATE mdl_config SET value = '' WHERE name='debug';

That will set it back to no debugging. If you need help getting to the MySQL prompt or using phpMyAdmin let us know. Peace - Anthony
In reply to Anthony Borrow

Re: Debugging Turned on to Developer Mode on 1.8.2

by R Mc -
Thanks smile

Yeah the only saving grace I did was I made a back up before it happened. That worked. I am going to use vmware instance with same config from now on as a test server. Thanks again Anthony
In reply to R Mc

Re: Debugging Turned on to Developer Mode on 1.8.2

by Anthony Borrow -
Picture of Core developers Picture of Plugin developers Picture of Testers
I'm glad to hear you were able to work through it. Happy Moodling!
In reply to Anthony Borrow

Re: Debugging Turned on to Developer Mode on 1.8.2

by Michael Ritter -

Hi Anthony,

I have managed to do the same thing. Can you advise me how to get into phyMyAdmin so I can run the query?

Cheers,

Michael

In reply to Michael Ritter

Re: Debugging Turned on to Developer Mode on 1.8.2

by Anthony Borrow -
Picture of Core developers Picture of Plugin developers Picture of Testers
Michael - phpMyAdmin installs similar to Moodle. Copy the php files to a directory, modify your config file, and then you can use it. I would suggest by reading:

http://www.phpmyadmin.net/documentation/#setup

and let me know if you have specific questions. Alternatively, you can do this without installing any software by using the mysql prompt. If you prefer to do that or find it easier just let me know. Peace - Anthony