Blank page displaying an article in Joomla 1.5
-
- Joomla! Apprentice
- Posts: 38
- Joined: Sun Apr 12, 2009 7:37 pm
Blank page displaying an article in Joomla 1.5
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.
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.
-
- Joomla! Apprentice
- Posts: 38
- Joined: Sun Apr 12, 2009 7:37 pm
Re: Blank page displaying an article in Joomla 1.5
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.
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.
- Per Yngve Berg
- Joomla! Master
- Posts: 30923
- Joined: Mon Oct 27, 2008 9:27 pm
- Location: Romerike, Norway
Re: Blank page displaying an article in Joomla 1.5
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.
-
- Joomla! Apprentice
- Posts: 38
- Joined: Sun Apr 12, 2009 7:37 pm
Re: Blank page displaying an article in Joomla 1.5
Hi!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.
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.
-
- Joomla! Fledgling
- Posts: 2
- Joined: Thu Apr 23, 2009 4:20 pm
Re: Blank page displaying an article in Joomla 1.5
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
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
-
- Joomla! Apprentice
- Posts: 38
- Joined: Sun Apr 12, 2009 7:37 pm
Re: Blank page displaying an article in Joomla 1.5
Hi!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
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.
- mcsmom
- Joomla! Exemplar
- Posts: 7897
- Joined: Thu Aug 18, 2005 8:43 pm
- Location: New York
- Contact:
Re: Blank page displaying an article in Joomla 1.5
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
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
So we must fix our vision not merely on the negative expulsion of war, but upon the positive affirmation of peace. MLK 1964.
http://officialjoomlabook.com Get it at http://www.joomla.org/joomla-press-official-books.html Buy a book, support Joomla!.
http://officialjoomlabook.com Get it at http://www.joomla.org/joomla-press-official-books.html Buy a book, support Joomla!.
-
- Joomla! Fledgling
- Posts: 2
- Joined: Thu Apr 23, 2009 4:20 pm
Re: Blank page displaying an article in Joomla 1.5
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
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
-
- Joomla! Apprentice
- Posts: 38
- Joined: Sun Apr 12, 2009 7:37 pm
Re: Blank page displaying an article in Joomla 1.5
Hi!
Thnx for adding the ticket.
Hope to see this fixed properly soon.
Regards,
Mario.
Thnx for adding the ticket.
Hope to see this fixed properly soon.
Regards,
Mario.
-
- Joomla! Apprentice
- Posts: 5
- Joined: Tue Apr 28, 2009 9:06 pm
- Contact:
Re: Blank page displaying an article in Joomla 1.5
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
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
Last edited by Morris77 on Sat May 02, 2009 9:45 am, edited 1 time in total.
-
- Joomla! Apprentice
- Posts: 38
- Joined: Sun Apr 12, 2009 7:37 pm
Re: Blank page displaying an article in Joomla 1.5
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.
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.
-
- Joomla! Apprentice
- Posts: 5
- Joined: Tue Apr 28, 2009 9:06 pm
- Contact:
Re: Blank page displaying an article in Joomla 1.5
No problem, i was confused that it don't raise any error message too.
Regards,
Morris
Regards,
Morris