This Question is Resolved.

If you have a similiar issue that this thread does not address, click the button below to open a new related support topic.

 
1 of 2
1
Problems with ext.edit_ajax_tab
Posted: 08 May 2008 12:05 PM   [ Ignore ]  
Grad Student
Avatar
Rank
Total Posts:  96
Joined  11-29-2006

We are using a modified version of ext.edit_tab_ajax. It worked perfectly in EE 1.6.0, but we realized that it has a problem in 1.6.3: If you choose to display more than 50 entries, it displays no results.

We had this problem with our modified extension and with the original one. We tried it in two different EE installs, with the same results.

We tried this with EE 1.6.1 and EE 1.6.3 build 20080421, and ext.edit_ajax_tab 1.2.1.

My developer found the problem and corrected it in our modified version of the extension. This is his report:

File: extensions/ext.edit_tab_ajax.php
Method: Edit_tab_ajax::process_search()
Line: 227
Problem:
Regular expression “|<form[^>]+>(.*?)</form>|is”  does not match the content of the second form element in $edit_forms (entries) when variable exp_perpage (cookie) is greater than 100. Only the first form in $edit_forms matches.

Also, we had several problems when searching special characters (our site is in Spanish). We found out that the javascript in the extension uses the escape function to escape the submitted data, but that function doesn’t play well with special characters. My developer suggests using encodeURIComponent instead. We changed it in our version and it works fine now.

Thank you!

Profile
 
 
Posted: 09 May 2008 08:54 AM   [ Ignore ]   [ # 1 ]  
Administrator
Avatar
RankRankRankRankRankRankRank
Total Posts:  15869
Joined  06-03-2002

Hey Nelly, thanks for reporting, and with such detail. Are you using any other control panel extensions?  I’m not experiencing this behavior, and I’m not seeing how the exp_perpage cookie is coming into play here.

The comment regarding escape vs. encodeURIComponent is absolutely correct and I’ll make sure that gets changed.  I’ll wait to add that to the release until we get to the bottom of the first issue.

 Signature 
Profile
MSG
 
 
Posted: 09 May 2008 10:17 AM   [ Ignore ]   [ # 2 ]  
Grad Student
Avatar
Rank
Total Posts:  96
Joined  11-29-2006

Hi Derek.

We are using Live-search, and I hadn’t considered it could cause problems too. Let me check that with my developer and I’ll get back to you.

Profile
 
 
Posted: 12 May 2008 07:07 PM   [ Ignore ]   [ # 3 ]  
Professor
Avatar
RankRankRankRankRankRankRank
Total Posts:  12433
Joined  04-29-2002

Nelly, anything new?

 Signature 

Quick Reference - EE Trial Options - EE Wiki - Docs for updating a build

Profile
MSG
 
 
Posted: 12 May 2008 07:37 PM   [ Ignore ]   [ # 4 ]  
Grad Student
Avatar
Rank
Total Posts:  96
Joined  11-29-2006

Hi Sue and Derek, sorry for the delay.

The exp_perpage cookie is involved because it is used to determine the last selected value for the number of results in the Edit panel. When the user chooses to display 100+ entries, the error is toggled.

We don’t believe the problem has to do with ext.live-search.

I hope this is the information you needed, thank you!

Profile
 
 
Posted: 12 May 2008 08:05 PM   [ Ignore ]   [ # 5 ]  
Administrator
Avatar
RankRankRankRankRankRankRank
Total Posts:  15869
Joined  06-03-2002

Nelly, we use that extension on our own site, and I use it on my personal site.  I find no problems with setting the number of results above 50, or to any arbitrary high value, nor can I see any reason how that would cause a failure.  I would suggest disabling all other extensions and see if you can still exhibit the problem, or trying on a separate, clean installation on the same server.

 Signature 
Profile
MSG
 
 
Posted: 09 June 2008 02:28 PM   [ Ignore ]   [ # 6 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  174
Joined  03-31-2002

Just to note that I’m also having this problem, with the error message:

Notice: Undefined offset: 1 in /path/to/extensions/ext.edit_tab_ajax.php on line 233

Interestingly, it only started recently - was working fine before - and I *think* it happened contemporaneously with upgrading to php5.

 Signature 

Les McKeown, President & CEO
Predictable Success®

Profile
 
 
Posted: 09 June 2008 02:33 PM   [ Ignore ]   [ # 7 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  174
Joined  03-31-2002

Nelly, if you felt comfortable posting the change your developer made to ext.edit_tab_ajax.php, I’d be very grateful.


If there is a reason this is not possible, or Derek, if you’d rather not have the code change posted, I understand.


Thanks!

 Signature 

Les McKeown, President & CEO
Predictable Success®

Profile
 
 
Posted: 09 June 2008 02:39 PM   [ Ignore ]   [ # 8 ]  
Administrator
Avatar
RankRankRankRankRankRankRank
Total Posts:  15869
Joined  06-03-2002

Les, can you try disabling all other extensions, or even making a separate temporary fresh installation of EE on this server environment, and seeing if you still experience the problem?  If you do, feel free to email me the source of the HTML on the edit page when receiving this error.

 Signature 
Profile
MSG
 
 
Posted: 11 June 2008 08:50 AM   [ Ignore ]   [ # 9 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  174
Joined  03-31-2002

Hi Derek -

Yep, still occurring. I’ll email you the source.

Thanks for your help.

 Signature 

Les McKeown, President & CEO
Predictable Success®

Profile
 
 
Posted: 11 June 2008 09:13 AM   [ Ignore ]   [ # 10 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  174
Joined  03-31-2002

Some additional info I noticed after I sent you the source code:

1. The error message isn’t in the source code - the entries are actually listed as they should be (!)

2. After causing the error to show (by selecting 75, 100 or 150 entries to display), if I then click on the ‘Edit’ tab, the required number of entries (75, 100 or 150) *will* display without an error message (clicking the ‘search’ button recreates the error message).

Hope this helps.

 Signature 

Les McKeown, President & CEO
Predictable Success®

Profile
 
 
Posted: 11 June 2008 09:17 AM   [ Ignore ]   [ # 11 ]  
Administrator
Avatar
RankRankRankRankRankRankRank
Total Posts:  15869
Joined  06-03-2002

Les, the source you sent me indicates that you have other modifications or extensions enabled.  There is Javascript after the closing HTML tag that does not belong to the Edit Tab Ajax extension.  I have a feeling that you have multiple extensions using the same hook that are not playing nice with one another.

 Signature 
Profile
MSG
 
 
Posted: 11 June 2008 09:23 AM   [ Ignore ]   [ # 12 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  174
Joined  03-31-2002

Hi Derek -

Sorry, I should have made clear: while the html source code is from my main site (which does have other extensions), I did as you suggested and set up a temporary fresh install - with the same exact result. I can email you the code from it if you wish (I’ll need to recrerate it again) but I assure you the result was exactly the same.

Sorry for the confusion.

 Signature 

Les McKeown, President & CEO
Predictable Success®

Profile
 
 
Posted: 11 June 2008 09:30 AM   [ Ignore ]   [ # 13 ]  
Administrator
Avatar
RankRankRankRankRankRankRank
Total Posts:  15869
Joined  06-03-2002

Ah, yes please.  And if it’s not too much trouble, save the source to a file and zip and attach it, so I can also be sure that nothing’s been modified by email servers and clients.

 Signature 
Profile
MSG
 
 
Posted: 11 June 2008 09:33 AM   [ Ignore ]   [ # 14 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  174
Joined  03-31-2002

No problem - gimme a bit o’ time smile. Feel free to knock out the 2.0beta while you’re waiting for me to get back to you.

 Signature 

Les McKeown, President & CEO
Predictable Success®

Profile
 
 
Posted: 11 June 2008 09:40 AM   [ Ignore ]   [ # 15 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  174
Joined  03-31-2002

Hi Derek -

The temp install was still there…I pm’d it rather than emailed, so that I could include the attachment.

Let me know if you need anything more.

 Signature 

Les McKeown, President & CEO
Predictable Success®

Profile
 
 
Posted: 11 June 2008 10:26 AM   [ Ignore ]   [ # 16 ]  
Administrator
Avatar
RankRankRankRankRankRankRank
Total Posts:  15869
Joined  06-03-2002

Thanks Les, I see in the markup why this is occurring, but I’m not recreating on my fresh install, i.e. my markup does not exhibit this problem.  Can you give me a step by step to reproduce this?

 Signature 
Profile
MSG
 
 
Posted: 11 June 2008 10:50 AM   [ Ignore ]   [ # 17 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  879
Joined  02-05-2002

Could this be related to those rogue invisible UTF characters on line 118 ?

These characters have caused the extension to bug out on some servers.
Maybe this is a good time to remove them wink

 Signature 

Member of the EE Pro Network

Profile
 
 
Posted: 11 June 2008 10:58 AM   [ Ignore ]   [ # 18 ]  
Administrator
Avatar
RankRankRankRankRankRankRank
Total Posts:  15869
Joined  06-03-2002

Er, where did those come from?  ::looks at Paul::  Is this something you found and reported previously, Cocoaholic?

Les, give this file a shot and see if it is related.

File Attachments
edit_tab_ajax.zip  (File Size: 3KB - Downloads: 34)
 Signature 
Profile
MSG
 
 
 

This Question is Resolved.

If you have a similiar issue that this thread does not address, click the button below to open a new related support topic.

 
1 of 2
1
 
Post Marker Legend
New Topic New posts Hot Topic Hot Topic with new posts New Poll New Poll Moved Topic Moved Topic Sticky Topic Sticky topic
Old Topic No new posts Hot Old Topic Hot Topic with no new posts Old Poll Old Poll Closed Topic Closed Topic Announcement Announcements
Theme
Change Theme
Visitor Statistics
The most visitors ever was 1149, on July 16, 2007 09:33 AM
Total Registered Members: 65087 Total Logged-in Users: 32
Total Topics: 82229 Total Anonymous Users: 20
Total Replies: 441929 Total Guests: 198
Total Posts: 524158    
Members ( View Memberlist )