Results 1 to 2 of 2

Thread: Internal server error on delete

  1. #1
    New user
    Join Date
    09-13-17.
    Posts
    26

    Default Internal server error on delete

    I created a backend custom module . The listing of records is looking fine.But When I was trying to delete or copy it returns internal server error.Why?

    screenshot-192.168.1.42-14005-2017-09-21-16-16-14-549.png

    screenshot-192.168.1.42-14005-2017-09-21-16-15-46-959.png



    Code:
    // List
    	'list' => array
    	(
    		'sorting' => array
    		(
    			'mode'                    => 1,
    			'fields'                  => array('title'),
    			'flag'                    => 1,
    			'panelLayout'             => 'filter;search,limit'
    		),
    		'label' => array
    		(
    			'fields'                  => array('title', 'teaser'),
    			'format'                  => '%s <span style="color:#b3b3b3;padding-left:3px;">[%s]</span>'
    		),
    		'global_operations' => array
    		(
    			'all' => array
    			(
    				'label'               => &$GLOBALS['TL_LANG']['MSC']['all'],
    				'href'                => 'act=select',
    				'class'               => 'header_edit_all',
    				'attributes'          => 'onclick="Backend.getScrollOffset()" accesskey="e"'
    			)
    		),
    		'operations' => array
    		(
    			
    			'editheader' => array
    			(
    				'label'               => &$GLOBALS['TL_LANG']['tl_solutions']['editheader'],
    				'href'                => 'act=edit',
    				'icon'                => 'edit.gif'
    			),
    			'copy' => array
    			(
    				'label'               => &$GLOBALS['TL_LANG']['tl_solutions']['copy'],
    				'href'                => 'act=copy',
    				'icon'                => 'copy.gif'
    			),
    			'delete' => array
    			(
    				'label'               => &$GLOBALS['TL_LANG']['tl_solutions']['delete'],
    				'href'                => 'act=delete',
    				'icon'                => 'delete.gif',
    				'attributes'          => 'onclick="if(!confirm(\'' . $GLOBALS['TL_LANG']['MSC']['deleteConfirm'] . '\'))return false;Backend.getScrollOffset()"'
    			),
    			'show' => array
    			(
    				'label'               => &$GLOBALS['TL_LANG']['tl_solutions']['show'],
    				'href'                => 'act=show',
    				'icon'                => 'show.gif'
    			)
    		)
    	),

  2. #2
    User Spooky's Avatar
    Join Date
    01-03-13.
    Posts
    339

    Default

    Use the example.org/app_dev.php entry point for a more detailed stack trace. May be create the file app/config/config_dev.yml with the following content:
    Code:
    framework:
        profiler: false
    
    contao:
        image:
            bypass_cache: false
    for better performance in the dev environment. Don't forget to clear the dev cache after creating this file.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •