Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.
Not a member yet? Click here to register.
Forgot Password?

External Wrapper Infusion

Asked Modified Viewed 1,732 times
A
afoster
A
  • Senior Member, joined since
  • Contributed 725 posts on the community forums.
  • Started 128 threads in the forums
  • Started this discussions
asked
Senior Member

I have been struggling with this infusion in version 8 of php-fusion. At one time I was getting an Internal Server Error message that I believe has been fixed by changing the stripBBcodes to strip_bbcodes in wrapper.php. The problem I am still having is that when setting up a page, the wrapper infusion generates a link as follows: infusions/wrapper/wrapper.php?wrapper_id=0

As I have been told by douwe_yntema, there is no such code and of course he is correct. The problem is that the wrapper infusion continues to generate that id number. When I change the id=0 to id=1, then the page is displayed with no problem. Unfortunately, the next page that is generated also puts out the id=0 so that now I am forced to keep track of the id numbers that have already been used.

I am hopeful that someone on this board can tell me where to change the code so that the id numbers generated start with id=1 and auto increase as the pages are generate. This all applies to external wrapper 3.0 as the 2.0 version does not even infuse on my system. Thanks in advance for any assistance.

This applies to version 8 of php-fusion
Edited by N/A on 16-01-2019 18:15,
afoster attached the following file:
wrapper_3.zip [No information available / 137 Downloads]
0 replies

12 posts

F
Falk
F
Falk 131
Need help?, Having trouble?
• View our Documentation for Guides, Standards and Functions
• Name and Organize your Topics and Content correctly in the corresponding Forums for best support results
• Attaching Log Files and Screenshots when reporting issues will help
• Provide with an URL to live example if one exists
• Please read the How to Report an Error post
• Please read and comply with the Code of Conduct

(¯·._.·(¯°·._.·°º*[ Project Manager ]*º°·._.·°¯)·._.·¯)
  • Super Admin, joined since
  • Contributed 6,201 posts on the community forums.
  • Started 639 threads in the forums
  • Answered 11 questions
answered
Super Admin

Try the one I attached, it is pretty general fixes with rewrites of functions and sql save from '' > NULL and the issue I mentioned above was present. If it Infuse. ( Should ) I think it will work.
0 replies
A
afoster
A
  • Senior Member, joined since
  • Contributed 725 posts on the community forums.
  • Started 128 threads in the forums
  • Started this discussions
answered
Senior Member

Falk, it works. Thanks so much for your help on this.
0 replies
— 3 years later —
A
afoster
A
  • Senior Member, joined since
  • Contributed 725 posts on the community forums.
  • Started 128 threads in the forums
  • Started this discussions
answered
Senior Member

Tried this infusion with version 9 and as expected, it does not work...doesn't even infuse. Anyone using it that works on version 9? I've tried using custom pages to replace this but there is no place (that I can see) where you point to a url to display the custom page.
0 replies
G
Grimloch
G
Energy can neither be created nor destroyed; only transformed !
  • Senior Member, joined since
  • Contributed 722 posts on the community forums.
  • Started 141 threads in the forums
  • Answered 2 questions
answered
Senior Member

@Falk
OOPPsss... sorry Falk!
afoster and I are coding buddies and I downloaded the fixed wrapper infusion that you provided for him. I modified it some more for v9 and actually infused it on v9.10.10 successfully. But there are some errors. First of all it did not like the 'db_lastid' so I just commented it out Seems to work anyway. Also I get this error which I have seen before but can't remember how to fix it: BTW it saved the test page I created in spite of the errors.
// Visibility options for link in navigation 
$visibility_opts = ""; $sel = "";
   $user_groups = getusergroups();
   while(list($key, $user_group) = each($user_groups)){
      $sel = ($link_visibility == $user_group['0'] ? " selected='selected'" : "");
      $visibility_opts .= "<option value='".$user_group['0']."'$sel>".$user_group['1']."</option>n";
   }
The error is deprecated each function. I also get many errors about undefined wrapper id. Any help would be appreciated.
Edited by Grimloch on 17-02-2022 21:20,
0 replies
G
Grimloch
G
Energy can neither be created nor destroyed; only transformed !
  • Senior Member, joined since
  • Contributed 722 posts on the community forums.
  • Started 141 threads in the forums
  • Answered 2 questions
answered
Senior Member

Nevermind Falk we found the fix and so far that also sees to have fixed the other errors.
Edited by Grimloch on 17-02-2022 21:20,
0 replies
F
Falk
F
Falk 131
Need help?, Having trouble?
• View our Documentation for Guides, Standards and Functions
• Name and Organize your Topics and Content correctly in the corresponding Forums for best support results
• Attaching Log Files and Screenshots when reporting issues will help
• Provide with an URL to live example if one exists
• Please read the How to Report an Error post
• Please read and comply with the Code of Conduct

(¯·._.·(¯°·._.·°º*[ Project Manager ]*º°·._.·°¯)·._.·¯)
  • Super Admin, joined since
  • Contributed 6,201 posts on the community forums.
  • Started 639 threads in the forums
  • Answered 11 questions
answered
Super Admin

Good to hear, but please do not mix me and Rob wink
0 replies
A
afoster
A
  • Senior Member, joined since
  • Contributed 725 posts on the community forums.
  • Started 128 threads in the forums
  • Started this discussions
answered
Senior Member

Actually, the same problem has arisen...the wrapper infusion generates a link as follows: infusions/wrapper/wrapper.php?wrapper_id=0 so that the page doesn't display until the id number is changed. The correct id is entered into the database however. Any ideas?
0 replies
D
douwe_yntema
D
  • Senior Member, joined since
  • Contributed 667 posts on the community forums.
  • Started 57 threads in the forums
  • Answered 1 question
answered
Senior Member

Your database function lastinsert_id is not working on adding new wrapper record. This is because of change to mysqli or pdo from mysql
1 reply
A
afoster
A
  • Senior Member, joined since
  • Contributed 725 posts on the community forums.
  • Started 128 threads in the forums
  • Started this discussions
answered
Senior Member

Douwe_yntema, thanks for your input. I can't find "lastinsert_id in the files...are you perhaps referring to $wrapper_id = db_lastid();
0 replies
G
Grimloch
G
Energy can neither be created nor destroyed; only transformed !
  • Senior Member, joined since
  • Contributed 722 posts on the community forums.
  • Started 141 threads in the forums
  • Answered 2 questions
answered
Senior Member

That's what he's talking about Fred and I'm working on it.
0 replies
A
afoster
A
  • Senior Member, joined since
  • Contributed 725 posts on the community forums.
  • Started 128 threads in the forums
  • Started this discussions
answered
Senior Member

douwe_yentema, disregard my last post....I found the answer in another post. Thanks as always for your help.

https://www.php-fusion.co.uk/infusion...pid=209004
Edited by afoster on 17-02-2022 22:09,
0 replies
F
Falk
F
Falk 131
Need help?, Having trouble?
• View our Documentation for Guides, Standards and Functions
• Name and Organize your Topics and Content correctly in the corresponding Forums for best support results
• Attaching Log Files and Screenshots when reporting issues will help
• Provide with an URL to live example if one exists
• Please read the How to Report an Error post
• Please read and comply with the Code of Conduct

(¯·._.·(¯°·._.·°º*[ Project Manager ]*º°·._.·°¯)·._.·¯)
  • Super Admin, joined since
  • Contributed 6,201 posts on the community forums.
  • Started 639 threads in the forums
  • Answered 11 questions
answered
Super Admin

Yes, for v9 it is $wrapper_id = dblastid();
0 replies

Labels

None yet

Statistics

  • Views 0 views
  • Posts 12 posts
  • Votes 0 votes
  • Topic users 4 members

4 participants

F
F
Falk 131
Need help?, Having trouble?
• View our Documentation for Guides, Standards and Functions
• Name and Organize your Topics and Content correctly in the corresponding Forums for best support results
• Attaching Log Files and Screenshots when reporting issues will help
• Provide with an URL to live example if one exists
• Please read the How to Report an Error post
• Please read and comply with the Code of Conduct

(¯·._.·(¯°·._.·°º*[ Project Manager ]*º°·._.·°¯)·._.·¯)
  • Super Admin, joined since
  • Contributed 6,201 posts on the community forums.
  • Started 639 threads in the forums
  • Answered 11 questions
A
A
  • Senior Member, joined since
  • Contributed 725 posts on the community forums.
  • Started 128 threads in the forums
  • Started this discussions
G
G
Energy can neither be created nor destroyed; only transformed !
  • Senior Member, joined since
  • Contributed 722 posts on the community forums.
  • Started 141 threads in the forums
  • Answered 2 questions
D
D
  • Senior Member, joined since
  • Contributed 667 posts on the community forums.
  • Started 57 threads in the forums
  • Answered 1 question

Notifications

Track thread

You are not receiving notifications from this thread.

Related Questions

Not yet