Unable to turn tracing on
steve.okeefe - September 16, 2008 - 09:25
| Project: | Staging |
| Version: | 6.x-0.1 |
| Component: | Code |
| Category: | bug report |
| Priority: | critical |
| Assigned: | Unassigned |
| Status: | active |
Description
I am able to add the module and set the permissions, but when I go into the staging settings the 'Switch on tracing queries' checkbox will not stay selected when I save the settings, and so tracing queries will not start. Also you cannot unselect the 'Switch production site to maintaince mode before publish'.

#1
I am having the same issues in my installation. I'm running WAMP-server with Apache 2.2.8, mySQL 5.0.51b, and PHP 5.2.6. Are there any specific requirements for versions? Must cron be enabled?
#2
sorry for late reply,
it may because of devel module.
please turn the module on in staging server.
#3
I have the same issue and i tracked the code in staging.admin.inc, there's some places need to change:
line 87
return system_settings_form( $form );
in function staging_admin(), if you call system_settings_form(), the function staging_admin_submit() wouldn't be called.
line 96
if ($form_state['op'] == 'Save configuration' )
in function staging_admin_validate() need to be changed to if ($form_state['values']['op'] == t('Save configuration') ).
line124
if ($form_state['values']['op'] == t('Save'))
in function staging_admin_submit() need to be changed to if ($form_state['values']['op'] == t('Save configuration')).
#4
fixed some bugs in staging.admin.inc, but not exact as above
thx anyway
attached patch.
#5
having a problem with the patch it keeps returning this .rej
Hunk #1 succeeded at 186 with fuzz 1 (offset 91 lines).
Hunk #2 FAILED at 195.
Hunk #3 FAILED at 297.
2 out of 3 hunks FAILED -- saving rejects to file staging.admin.inc.rej
***************
*** 195,201 ****
//dprint_r($form_state);
- if ($form_state['values']['op'] == 'Save settings' ) {
// Decode url-encoded information in the db connection string.
$url['user'] = urldecode($form_state['values']['production_username']);
--- 195,201 ----
//dprint_r($form_state);
+ if ($form_state['values']['op'] == t('Save settings') ) {
// Decode url-encoded information in the db connection string.
$url['user'] = urldecode($form_state['values']['production_username']);
***************
*** 297,303 ****
global $db_type;
- if ($form_state['values']['op'] == 'Publish queries to production' ) {
$prefix = 'production_';
--- 297,303 ----
global $db_type;
+ if ($form_state['values']['op'] == t('Publish queries to production') ) {
$prefix = 'production_';