The Joomla! Forum ™



Forum rules


Forum Rules
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 12 posts ] 
Author Message
PostPosted: Thu Apr 16, 2009 6:45 am 
Joomla! Apprentice
Joomla! Apprentice

Joined: Sun Apr 12, 2009 7:37 pm
Posts: 38
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.


Top
 Profile  
 
PostPosted: Thu Apr 16, 2009 7:56 am 
Joomla! Apprentice
Joomla! Apprentice

Joined: Sun Apr 12, 2009 7:37 pm
Posts: 38
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.


Top
 Profile  
 
PostPosted: Thu Apr 16, 2009 9:00 am 
Joomla! Master
Joomla! Master

Joined: Mon Oct 27, 2008 9:27 pm
Posts: 17695
Location: Akershus, Norway
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.


Top
 Profile  
 
PostPosted: Thu Apr 16, 2009 9:43 am 
Joomla! Apprentice
Joomla! Apprentice

Joined: Sun Apr 12, 2009 7:37 pm
Posts: 38
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.


Top
 Profile  
 
PostPosted: Thu Apr 23, 2009 4:51 pm 
Joomla! Fledgling
Joomla! Fledgling

Joined: Thu Apr 23, 2009 4:20 pm
Posts: 2
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


Top
 Profile  
 
PostPosted: Thu Apr 23, 2009 8:12 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Sun Apr 12, 2009 7:37 pm
Posts: 38
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.


Top
 Profile  
 
PostPosted: Sat Apr 25, 2009 11:07 am 
User avatar
Joomla! Exemplar
Joomla! Exemplar

Joined: Thu Aug 18, 2005 8:43 pm
Posts: 7986
Location: New York
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

_________________
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!.


Top
 Profile  
 
PostPosted: Sat Apr 25, 2009 12:36 pm 
Joomla! Fledgling
Joomla! Fledgling

Joined: Thu Apr 23, 2009 4:20 pm
Posts: 2
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


Top
 Profile  
 
PostPosted: Sun Apr 26, 2009 5:10 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Sun Apr 12, 2009 7:37 pm
Posts: 38
Hi!

Thnx for adding the ticket.

Hope to see this fixed properly soon.

Regards,

Mario.


Top
 Profile  
 
PostPosted: Thu Apr 30, 2009 12:41 pm 
Joomla! Fledgling
Joomla! Fledgling

Joined: Tue Apr 28, 2009 9:06 pm
Posts: 4
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


Last edited by Morris77 on Sat May 02, 2009 9:45 am, edited 1 time in total.

Top
 Profile  
 
PostPosted: Thu Apr 30, 2009 1:15 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Sun Apr 12, 2009 7:37 pm
Posts: 38
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.


Top
 Profile  
 
PostPosted: Thu Apr 30, 2009 1:21 pm 
Joomla! Fledgling
Joomla! Fledgling

Joined: Tue Apr 28, 2009 9:06 pm
Posts: 4
No problem, i was confused that it don't raise any error message too.

Regards,
Morris


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 12 posts ] 



Who is online

Users browsing this forum: No registered users and 8 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group