简体   繁体   中英

joomla specific component displaying blank page

I try to access my custom components on view and sub controller like

http://www.whizzrd.com/administrator/index.php?option=com_osservicesbooking

I have tried everything, still i didn't know what is the error.

1.added this code on com_yourcomponent/yourcomponent.php

ini_set( 'display_errors', true );
error_reporting( E_ALL );
  1. enable debug in global configuration and set the error_report to development

but I'm still getting blank pages. still not yet find the error Thank you in advanced

Go to Global Configuration in Admin panel and Server Tab and there do Error Reporting to Maximum .

Doing this setting you will be able to view the error you are getting.

Global Configuration-> Server-> Error Reporting -> Maximum

Try with adding your view name.

http://www.whizzrd.com/administrator/index.php?option=com_osservicesbooking&view=osservicesbookings

Also check filename and component names if it seems differ or capital.

My problem was that I had typed defined('__JEXEC') or die (two underlines before JEXEC) and it is supposed to be defined('_JEXEC') or die and as I had not set a message for die it basically just displayed a blank page with nothing. Took me a couple of hours to figure it out. Best thing I did was to start adding a different message in my die statements and then it will display the die message of the page with errors.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM