Jump to content

how to debug admin panel


Tomas
 Share

Recommended Posts

Hi everyone, Im using processwire for a while now,

but Today I ran into strange problem, 

I was filling repeater field with info and after hitting SAVE '/page/edit' responded with blank page, so now I can update this page no more.
Is there any way to debug what has happaned, because this blank page tells nothings.

Thanks : )

 

Link to comment
Share on other sites

Hi,

In wire/config.php, you can see:

/*** 1. SYSTEM MODES ****************************************************************************/

/**
 * Enable debug mode?
 * 
 * Debug mode causes additional info to appear for use during site development and debugging. 
 * This is almost always recommended for sites in development. However, you should
 * always have this disabled for live/production sites since it reveals more information
 * than is advisible for security. 
 * 
 * #notes This enables debug mode for ALL requests. See the debugIf option for an alternative.
 * 
 * @var bool
 *
 */
$config->debug = false;

/**
 * Enable debug mode if condition is met
 *
 * Set debug mode to be false above, and then specify any one of the following here:
 * 1) IP address of user required to enable debug mode;
 * 2) Your own callable function name (i.e. "debug_mode") in /site/config.php that returns
 * true or false for debug mode;
 * 3) PCRE regular expression to match IP address of user (must start and end with a "/"
 * slash). If IP address matches, then debug mode is enabled. Regular expression
 * example: /^123\.456\.789\./ would match all IP addresses that started with 123.456.789.
 * 
 * #notes When used, this overrides $config->debug, changing it at runtime automatically. 
 * @var string
 *
 */
$config->debugIf = '';

/**
 * Tools, and their order, to show in debug mode (admin)
 * 
 * Options include: pages, api, session, modules, hooks, database, db, timers, user, input, cache 
 * 
 * @var array
 * 
 */
$config->debugTools = array(
	'pages',
	'api',
	'session',
	'modules',
	'hooks',
	'database', // PDO
	'db', // mysqli
	'timers',
	'user',
	'input',
	'cache',
);

/**
 * Enable ProcessWire advanced development mode?
 * 
 * Turns on additional options in ProcessWire Admin that aren't applicable in all instances.
 * Be careful with this as some options configured in advanced mode cannot be removed once
 * set (at least not without going directly into the database). 
 * 
 * #notes Recommended mode is false, except occasionally during ProcessWire core or module development.
 * @var bool
 *
 */
$config->advanced = false;

/**
 * Enable demo mode?
 * 
 * If true, disables save functions in Process modules (admin).
 * 
 */
$config->demo = false;

Putting

$config->debug = true;

in site/config.php enables debug mode.

You also have Admin > Setup > Logs >

Logs are in site/assets/logs/ (and perhaps elsewhere(?)).

  • Like 2
Link to comment
Share on other sites

but Today I ran into strange problem, 

I was filling repeater field with info and after hitting SAVE '/page/edit' responded with blank page, so now I can update this page no more.

Is there any way to debug what has happaned, because this blank page tells nothings.

In order to properly help you, please let us know a little more about your environment (Versions of ProcessWire, PHP and MySQL), to include information about your repeater field and any other changes (fields, modules, configuration) that are unique to your installation.  Thanks.

  • Like 1
Link to comment
Share on other sites

Version is 2.6.0

Had only FieldTypeMapMaker from 3rd party modules.

When problem occured PHP version was 5.4,
since you asked for version I tried to change it(as my server allows this) to 5.6 and page (the one this topic is about) load as normal.
then I tried rolling back to 5.4 and it did load ok again.

So, no problem anymore. 

Thank you for asking me php version :) 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...