Page 1 of 1

Blank page displaying an article in Joomla 1.5

Posted: Thu Apr 16, 2009 6:45 am
by strsljen_joomla
Hi!

Few days ago I made a migration from Joomla 1.0.15 to latest Joomla 1.5.10.

I had no problems with migration process, once I had everything prepared.

Site is working normally.

Today I noticed I can't display one article. When I try to open it, I get completely blank page. I use php 5.2.9 on my primary site and 5.2.4 on other location (I have 2 copies of my site).
I turned on displaying all php errors and stil i get nothing but blank page.

Here is the category with that article:
http://keeper-new.sharanet.org/index.ph ... ut=default

The article is called: "Türkiye (13.07.2008 - 03.08.2008)".
Direct link to that article:
http://keeper-new.sharanet.org/index.ph ... &Itemid=44

I tried turning on debug in Joomla, but stil, I get only blank page.

Should I report this as a bug, or maybe this has something to do with migration and letter "ü" in article title?

Migration was made from latin2 database charset to present utf-8.

P.S. I can edit that article normally in administration interface. I can even preview it.

Thanks!

Mario.

Re: Blank page displaying an article in Joomla 1.5

Posted: Thu Apr 16, 2009 7:56 am
by strsljen_joomla
OK, I did some analysis: it seems that this has something to do with the size of the article.

I split that article in 2 parts:
1. http://keeper-new.sharanet.org/index.ph ... &Itemid=44
2. http://keeper-new.sharanet.org/index.ph ... &Itemid=44

Each works fine for itself, but when I try to put all text in sigle article, I always get blank page, regardless of article title.

It's funny, I'm running Joomla 1.5 on same machine with same software versions as I ran Joomla 1.0. In Joomla 1.0 I had no such issues.

Any idea where to start troubleshooting this?

Mario.

Re: Blank page displaying an article in Joomla 1.5

Posted: Thu Apr 16, 2009 9:00 am
by Per Yngve Berg
Your article is very long and not very reader friendly. Adding some pagination might help. It is probably out of memory on the server error. Check PhP's memory heap size in configuration. Ask your host if it is a shared server.

Re: Blank page displaying an article in Joomla 1.5

Posted: Thu Apr 16, 2009 9:43 am
by strsljen_joomla
Per Yngve Berg wrote:Your article is very long and not very reader friendly. Adding some pagination might help. It is probably out of memory on the server error. Check PhP's memory heap size in configuration. Ask your host if it is a shared server.
Hi!

Very good hint. Pagination helps, but what I find awkward is this: I can edit the entire article in admin interface and I can even make a preview of that article.

But when it comes to user interface, the whole page is left blank when I try to access it.

Re: Blank page displaying an article in Joomla 1.5

Posted: Thu Apr 23, 2009 4:51 pm
by Axalix
Well, I spent some time for this issue and have found bug in sourcecode....

File:
plugins/system/sef.php

line
// Background image
$regex = '#style\s*=\s*[\'\"](.*):\s*url\s*\([\'\"]?(?!/|'.$protocols.'|\#)([^\)\'\"]+)[\'\"]?\)#m';

error: greedy (.*)


short-fast-fix: just comment out this $regex and next line or fix regexp

Re: Blank page displaying an article in Joomla 1.5

Posted: Thu Apr 23, 2009 8:12 pm
by strsljen_joomla
Axalix wrote:Well, I spent some time for this issue and have found bug in sourcecode....

File:
plugins/system/sef.php

line
// Background image
$regex = '#style\s*=\s*[\'\"](.*):\s*url\s*\([\'\"]?(?!/|'.$protocols.'|\#)([^\)\'\"]+)[\'\"]?\)#m';

error: greedy (.*)


short-fast-fix: just comment out this $regex and next line or fix regexp
Hi!

Thanks a lot. This really was a cause of the problem. :)

Now I can display the whole article:
http://keeper-new.sharanet.org/index.ph ... &showall=1

What does that regexp suppose to do in the first place?
How bad it is if I continue running my site without it?
Should this be reported to Joomla development team as a bug to be officially fixed?

Mario.

Re: Blank page displaying an article in Joomla 1.5

Posted: Sat Apr 25, 2009 11:07 am
by mcsmom
Yes, would you please put an issue into the tracker?
Commenting out the regex is not a real solution, but perhaps someone can look at that more closely and see if an improvement can be made.

http://joomlacode.org/gf/project/joomla ... cker_id=32

Re: Blank page displaying an article in Joomla 1.5

Posted: Sat Apr 25, 2009 12:36 pm
by Axalix
Hi,

well, I've added a ticket
http://joomlacode.org/gf/project/joomla ... m_id=16132

I agree that's not a fix in a common sense but I meant that this update can solve this problem at least on a temporary base.



Anyway, I located file and line as well as mentioned the reason: greedy (.*) eats the text because next part of regexp doesn't match to:
\s*url\s*\([\'\"]?(?!/|'.$protocols.'|\#)([^\)\'\"]+)[\'\"]?\)#m'


Thank you,
Dr. Kruchinin Alexey

Re: Blank page displaying an article in Joomla 1.5

Posted: Sun Apr 26, 2009 5:10 pm
by strsljen_joomla
Hi!

Thnx for adding the ticket.

Hope to see this fixed properly soon.

Regards,

Mario.

Re: Blank page displaying an article in Joomla 1.5

Posted: Thu Apr 30, 2009 12:41 pm
by Morris77
Hi All,

I have had this issue with Joomla 1.5.10 and PHP 5.2.0+. This occurred with big article because 'pcre.backtrack_limit' had small value. This settings is available since PHP 5.2.0. I edited PHP config and changed 'pcre.backtrack_limit' option to '-1', also you can use Big Article plugin for this purpose. This plugin only change 'pcre.backtrack_limit' option through ini_set function call.

Regards,
Morris

Re: Blank page displaying an article in Joomla 1.5

Posted: Thu Apr 30, 2009 1:15 pm
by strsljen_joomla
Hi Morris!

This makes sense.

Check this out:
http://bugs.php.net/bug.php?id=40846
http://php.oregonstate.edu/manual/en/ref.pcre.php

I tested it and seems this is a cause of our problems.
Why PHP team decided to include this parameter with such small default value and why they decided not to include *any* output if that limit is reached, is beyond my comprehension.

The fact I had no problems with this while running Joomla 1.0 on same server (same apache, mysql and php versions) can only mean that in Joomla 1.0 pcre were not used the way it is used in Joomla 1.5

@Alexey: can you inform the Joomla team about this?

Thnx!

Mario.

Re: Blank page displaying an article in Joomla 1.5

Posted: Thu Apr 30, 2009 1:21 pm
by Morris77
No problem, i was confused that it don't raise any error message too.

Regards,
Morris