Error when trying to access to an unauthorized page

More
13 years 8 months ago #26052 by biowep
Hi, if I try to access to an unauthorized page, the page remains blank.
In developer mode I obtain these errors
Code:
Strict Standards: Only variables should be assigned by reference in /.../httpdocs/administrator/components/com_flexicontent/defineconstants.php on line 32 Strict Standards: Only variables should be assigned by reference in /.../httpdocs/administrator/components/com_flexicontent/defineconstants.php on line 52 Strict Standards: Only variables should be assigned by reference in /.../httpdocs/plugins/system/flexisystem/flexisystem.php on line 46 Strict Standards: Only variables should be assigned by reference in /.../httpdocs/plugins/system/flexiadvroute/flexiadvroute.php on line 50 Strict Standards: Only variables should be assigned by reference in /.../httpdocs/plugins/system/flexisystem/flexisystem.php on line 78 Strict Standards: Only variables should be assigned by reference in /.../httpdocs/plugins/system/flexisystem/flexisystem.php on line 93 Strict Standards: Only variables should be assigned by reference in /.../httpdocs/plugins/system/flexisystem/flexisystem.php on line 96 Strict Standards: Only variables should be assigned by reference in /.../httpdocs/plugins/system/flexisystem/flexisystem.php on line 216 Strict Standards: Only variables should be assigned by reference in /.../httpdocs/plugins/system/flexisystem/flexisystem.php on line 219 Strict Standards: Only variables should be assigned by reference in /.../httpdocs/plugins/system/flexisystem/flexisystem.php on line 222 Strict Standards: Only variables should be assigned by reference in /.../httpdocs/plugins/system/flexiadvroute/flexiadvroute.php on line 84 Strict Standards: Only variables should be assigned by reference in /.../httpdocs/plugins/system/flexiadvroute/flexiadvroute.php on line 85 Strict Standards: Only variables should be assigned by reference in /.../httpdocs/plugins/system/flexiadvroute/flexiadvroute.php on line 86

And there are more "Strict Standards" errors in the backend (developer mode)

Just a detail: In the backend, in the category view, the last td must be colspan="11" instead of 10

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

More
13 years 8 months ago #26055 by micker
hello
witch version of flexicontent and joomla ? ;)

FLEXIcontent is Free but involves a very big effort on our part.
Like the our support? (for a bug-free FC, despite being huge extension) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing reviews. Thanks![/size]

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

More
13 years 8 months ago #26059 by biowep
Flexicontent 2.0 RC5 r1338
Joomla 2.5.4

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

More
13 years 8 months ago #26118 by ggppdk
Usually i don't have PHP E_STRICT warnings enabled, on the development server, because of using J1.5 sites too

About these PHP E_Strict warnings , i cannot reproduce them,
e.g. it seems that lines like this are causing the E_STRICT warnings
$db = &JFactory::getDBO();

You could change them to
$db = JFactory::getDBO();

but i recommend disabling PHP strict warnings on your development server, for how to do this please google or search this forum

Regards


-- 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 review. Thanks!

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

More
13 years 8 months ago #26130 by biowep
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.

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

More
13 years 8 months ago #26273 by biowep
How can I solve the blank page?
I think it's more appropriate to show an error message.

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

More
13 years 8 months 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 review. Thanks!

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

More
13 years 8 months 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 review. Thanks!

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

More
13 years 8 months 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 8 months 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 review. Thanks!

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

Moderators: vistamediajoomlacornerggppdk
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