Welcome, Guest. Please login or register.
Did you miss your activation email?
May 23, 2012, 10:32:28 AM

Login with username, password and session length
Search:     Advanced search
Interested in joining the WebsiteBaker team?
For more Information read here or on our new website.
155402 Posts in 21698 Topics by 7729 Members
Latest Member: adnan
* Home Help Search Login Register
Pages: [1]   Go Down
Print
Author Topic: Pb creating a module - (for developers)  (Read 554 times)
Shooye

Offline Offline

Posts: 14


« on: July 07, 2008, 06:30:57 PM »

Hello everybody,

I am actullay trying to create a module into websitebaker.
my file install.php successfully install databases tables and files are well copied into the modules/"mymodule" folder.

When i add a "mymodule" section on a page the module file add.php seems to work (a line is successfully added in the database) but when I arrive to the modify.php page i have a blank page with no php error instead of what i would have.

Anyone had this problem ?
Any idea ?
Logged
doc
Guest
« Reply #1 on: July 07, 2008, 07:01:32 PM »

Hello,

enable error reporting via the php.ini (display_errors = on; error_reporting = E_ALL). Remeber to set WB error handler to E_All (WB options, advanced settings). Search for any error messages displayed.

When adding more than one section on a single page, remember to make use of function_exist to avoid that functions are declared twice.

Christian
Logged
Shooye

Offline Offline

Posts: 14


« Reply #2 on: July 08, 2008, 10:28:44 AM »

Hello doc, thanks for your help.
I'v set up error reporting but it seems ther is no difference...
The modify.php seems not to be included as well, because when I add exit("test); or echo "<javascript>alert('test')</javascript>" at the beginning of the file nothing is shown.

I have really no idea of what it could be...
Logged
doc
Guest
« Reply #3 on: July 08, 2008, 11:30:32 AM »

Hello,

have you read through the information available on the WB Help website (section Advanced docu).
Depending on the module type you have choosen, different files (e.g. include.php, tool.php or modify.php) are expected. Details see help page.

In addition please check out the Hello world module available from the addons repository which provides some basic information about creating own modules.

Regards Christian
Logged
Shooye

Offline Offline

Posts: 14


« Reply #4 on: July 08, 2008, 11:57:40 AM »

RE doc,

i'v already download and seen the hello world module and advanced documentation.
I'm using a page module type and i have an info.php page and a modify.php page (for this module type i don't need include.php or tool.php if i have understand as well).
... i don't think i'v a problem with my modify.php page code, it must be some include error but i really don't know why.

I know i't note easy for you to view the problem ^^ but I'm really interested about creating my own modules so if ever you have an idea, it would be fine.

When I arrive on my modify.php page I just have a blank page...

Regards, Rémi
Logged
Shooye

Offline Offline

Posts: 14


« Reply #5 on: July 08, 2008, 12:50:09 PM »

Sorry but i'v finally find the problem ^^
It was that i had replaced the original WB modify.php file by my module's modify.php file by error..

Thanks for your help !
Logged
Pages: [1]   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!