Error when trying to access to an unauthorized page

More
13 years 1 month ago #26276 by ggppdk

biowep wrote: You can reproduce the warnings by going to the Global Configuration > Server and setting the "Error Reporting" to Development.
And you can reproduce the blank page by creating a menu item for the submission item form and accessing the page using the guest user.


This will turn on error reporting but not enable E_STRICT warnings you will need to change this in PHP.ini


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

Please Log in or Create an account to join the conversation.

More
13 years 1 month ago #26277 by ggppdk

How can I solve the blank page?
I think it's more appropriate to show an error message.

The blank page in this case is the result of a fatal PHP error and not the result of code terminating deliberately, so how can we display an error message?

And joomla error reporting will not always work if there is a PHP parse error,
because if parsing of a file is not finished then NO PHP commands are executed, thus error reporting enabling command will not be executed

-- We need to enable error reporting inside a file whose parsing finishes without error e.g. defineconstants.php

Please do these
1. disable E_STRICT warning
2. ADD at the top
/administrator/components/com_flexicontent/defineconstants.php

just after
// no direct access
defined( '_JEXEC' ) or die( 'Restricted access' );
Code:
error_reporting(E_ALL & ~E_STRICT); ini_set('display_errors',1);


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

Please Log in or Create an account to join the conversation.

More
13 years 1 month ago #26297 by biowep
Same result, I also tried to enable the error reporting in the index page ("httpdocs/index.php"), the page remains blank.

System Information

PHP Built On Linux web5.flamenetworks.com 2.6.38 #1 SMP Thu Mar 31 15:00:46 CEST 2011 x86_64
Database Version 5.0.51a-24+lenny5-log
Database Collation utf8_general_ci
PHP Version 5.2.6-1+lenny16
Web Server Apache/2.2.9 (Debian) PHP/5.2.6-1+lenny16 with Suhosin-Patch mod_python/3.3.1 Python/2.5.2 mod_ssl/2.2.9 OpenSSL/0.9.8g mod_perl/2.0.4 Perl/v5.10.0
WebServer to PHP Interface cgi-fcgi
Joomla! Version Joomla! 2.5.6 Stable [ Ember ] 19-June-2012 14:00 GMT
Joomla! Platform Version Joomla Platform 11.4.0 Stable [ Brian Kernighan ] 03-Jan-2012 00:00 GMT
User Agent Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/536.5 (KHTML, like Gecko) Chrome/19.0.1084.56 Safari/536.5


Relevant PHP Settings

Safe Mode On
Open basedir None
Display Errors On
Short Open Tags On
File Uploads On
Magic Quotes On
Register Globals Off
Output Buffering Off
Session Save Path /var/lib/php5
Session Auto Start 0
XML Enabled Yes
Zlib Enabled Yes
Native ZIP Enabled Yes
Disabled Functions None
Mbstring Enabled Yes
Iconv Available Yes

I don't have access to the php.ini file or to the "conf" directory.

Please Log in or Create an account to join the conversation.

More
13 years 1 month ago #26303 by ggppdk
Since page remains blank i wonder if there is some command terminating execution, e.g. for a system plugin you have installed

Also because page is blank we cannot do much.

1. Please do a view page source on the page , since some times you might get an error inside a js script tag that is not visible in view normal mode.

2. Please provide a detail scenario that leads in the blank page, e.g. i am logged as user of this type, and i am in frontend category view and i click on an item that is this , etc , etc


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

Please Log in or Create an account to join the conversation.

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.409 seconds
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Essential
These cookies are needed to make the website work correctly. You can not disable them.
Display
Accept
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline
Save