2 extensions with the same hook. One is broken, the other is fine (EDIT)
Posted: 07 August 2008 03:39 AM   [ Ignore ]  
Summer Student
Total Posts:  21
Joined  04-14-2008

Hello,

I’ve developed an extension. Read: I changed an existing extension and makes it more usuable and dynamic for the sites I’m developing.

I used this 2 identical extensions on my localhost on 1.6.3 and everything works fine.

I moved the 2 extensions to the web on a 1.6.4 installation. This caused a problem.
One ext works fine, the other doesn’t. They use the same “hook” and are almost identical… If I look to the variable I’m returning to the hook, everything looks fine but Expression engine doesn’t make the change :(

Anybody?

More information can be given but If you say me what you need to test things around…

Thanks on beyond!
Jonas

Profile
 
 
Posted: 07 August 2008 06:39 AM   [ Ignore ]   [ # 1 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  608
Joined  07-02-2007

Maybe you are not using $EXT->last_call correctly?

http://expressionengine.com/docs/development/extensions.html#hook

 Signature 

Addons:
» Crawltrack Track Google/Yahoo/etc on your site
» EntryData (Get Custom_fields/etc without weblog tag)
» reCAPTCHA Extension
» Rewrite Redirect URL’s to new ones (301/302/etc)

See all my addons

Profile
 
 
Posted: 07 August 2008 09:46 AM   [ Ignore ]   [ # 2 ]  
Summer Student
Total Posts:  21
Joined  04-14-2008

Thanks for your response. Indeed their was a problem with calling the same hook. I made from my 2 extensions ONE begin one.. That did the trick.. smile

Sorry for my mistake but after checking up my localhost-installation, the “error” appeared here also…

Maybe someone can explain how I can solve the problem in the future when 2 extensions calling the same hook and have a different priority?

Profile
 
 
   
 
 
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 10:33 AM
Total Registered Members: 61049 Total Logged-in Users: 16
Total Topics: 73853 Total Anonymous Users: 8
Total Replies: 398371 Total Guests: 442
Total Posts: 472224    
Members ( View Memberlist )