WebsiteBaker Logo
  • *
  • Templates
  • Help
  • Add-ons
  • Download
  • Home
*
Welcome, Guest. Please login or register.

Login with username, password and session length
 

News


WebsiteBaker 2.13.6 is now available!


Will it continue with WB? It goes on! | Geht es mit WB weiter? Es geht weiter!
https://forum.websitebaker.org/index.php/topic,32340.msg226702.html#msg226702


The forum email address board@websitebaker.org is working again
https://forum.websitebaker.org/index.php/topic,32358.0.html


R.I.P Dietmar (luisehahne) and thank you for all your valuable work for WB
https://forum.websitebaker.org/index.php/topic,32355.0.html


* Support WebsiteBaker

Your donations will help to:

  • Pay for our dedicated server
  • Pay for domain registration
  • and much more!

You can donate by clicking on the button below.


  • Home
  • Help
  • Search
  • Login
  • Register

  • WebsiteBaker Community Forum »
  • WebsiteBaker Support (2.10.x) »
  • Modules »
  • Uncatched exception in Multipart Pages
  • Print
Pages: [1]   Go Down

Author Topic: Uncatched exception in Multipart Pages  (Read 7866 times)

thefly

  • Guest
Uncatched exception in Multipart Pages
« on: June 12, 2017, 02:59:13 PM »
Hi, everyone! Just installed Multipart Pages from Ruud. Super modules, Ruud! I'm looking forward for PageTags :))

But I saw a little problem in MultiPart Pages (Running on last 2.10 WB and PHP7): After trying to create a new PageType I got this:

Quote
There was an uncatched exception
Call to undefined function mysql_insert_id()
in line (62) of (/modules/multipage/addpagetype.php):

I am far from programming myself, but it seems to me that it is an old PHP function? Or I was able to mess something?
Logged

Offline Ruud

  • Posts: 3671
  • Gender: Male
  • Do not use PM for help! Please use the forum!
    • Dev4Me - Professional WebsiteBaker Development
Re: Uncatched exception in Multipart Pages
« Reply #1 on: June 12, 2017, 03:17:14 PM »
This is a pretty old module ... And yes, the error is about an old function that does not exist since some time.

You can fix it on WB2.10 (actually on WB283-SP3 and newer) by replacing that line 62 with
Code: [Select]
$pagetype = $database->getLastInsertId() ;
Logged
Dev4me - WebsiteBaker modules - WBhelp.org

thefly

  • Guest
Re: Uncatched exception in Multipart Pages
« Reply #2 on: June 12, 2017, 03:36:09 PM »
Thanks, Ruud! I did it. And new PageType is added smoothly. In fact it was possible to add the new PageTypes, or at least I saw new PageTypes in the dropdown list. When I tried to delete some PageType WB returned error:
Quote
This page isn’t working

nocommentgroup.eu is currently unable to handle this request.
HTTP ERROR 500

Anytime, may be the future PageItems module will be more convenient for my needs. As I understand, it will add some fields to the usual WYSIWYG-pages and it will be possible to list pages with specific content of these fileds. May be it I should be patient for you to finish this module :))
Logged

Offline Ruud

  • Posts: 3671
  • Gender: Male
  • Do not use PM for help! Please use the forum!
    • Dev4Me - Professional WebsiteBaker Development
Re: Uncatched exception in Multipart Pages
« Reply #3 on: June 12, 2017, 03:56:40 PM »
If I was you I would have a look at the oneforall module first.
https://addon.WebsiteBaker.org/pages/en/browse-add-ons.php?id=04238F62

It does more-or-less the same thing, and a bit more.. :)
It also is in active development and is working fine on the latest WB and PHP versions.
Logged
Dev4me - WebsiteBaker modules - WBhelp.org

thefly

  • Guest
Re: Uncatched exception in Multipart Pages
« Reply #4 on: June 12, 2017, 04:24:19 PM »
Thanks! You're right!
Logged

  • Print
Pages: [1]   Go Up
  • WebsiteBaker Community Forum »
  • WebsiteBaker Support (2.10.x) »
  • Modules »
  • Uncatched exception in Multipart Pages
 

  • SMF 2.0.19 | SMF © 2017, Simple Machines
  • XHTML
  • RSS
  • WAP2