2 extensions with the same hook. One is broken, the other is fine (EDIT)
Posted: 07 August 2008 02:39 AM   [ Ignore ]  
Summer Student
Total Posts:  26
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 05:39 AM   [ Ignore ]   [ # 1 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  716
Joined  07-02-2007

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

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

 Signature 

Truly ExpressionEngine


Fielder Module ( Mass Custom Fields )
Super Cache (Cache heavy tag output)
reCAPTCHA Extension
Rewrite Module


See all my EE Addons (8)

Profile
 
 
Posted: 07 August 2008 08:46 AM   [ Ignore ]   [ # 2 ]  
Summer Student
Total Posts:  26
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 09:33 AM
Total Registered Members: 64918 Total Logged-in Users: 22
Total Topics: 81873 Total Anonymous Users: 13
Total Replies: 440156 Total Guests: 208
Total Posts: 522029    
Members ( View Memberlist )