1
vinc3
Fatal error in my template for html in Xoops
  • 2004/7/25 12:03

  • vinc3

  • Just popping in

  • Posts: 2

  • Since: 2004/7/25


With the underlying code, I can insert a page html in the structure of Xoops, without use of a specific module.
<?php


include("../mainfile.php");

include(
"../header.php");

 

global 
$xoopsDB$xoopsConfig;

 

OpenTable();

?>



// insert html here


<?php 

CloseTable
();

 

include(
"../footer.php");

 

?>


But...
the template, that worked very well with XOOPS 2.0.6 (seen here), give this problem with XOOPS 2.0.7 (tested in localhost):
Quote:


Warning: Failed opening '../mainfile.php' for inclusion (include_path='.;c:\php4\pear') in c:\phpdev5\www\xoops\template.php on line 4

Warning: Failed opening '../header.php' for inclusion (include_path='.;c:\php4\pear') in c:\phpdev5\www\xoops\template.php on line 6

Fatal error: Call to undefined function: opentable() in c:\phpdev5\www\xoops\template.php on line 14



Which changes have been effected from version 2.0.6 to 2.0.7?
What it needs to change in the old template code?

Thank, Vinc3

2
chapi
Re: Fatal error in my template for html in Xoops
  • 2004/7/25 13:03

  • chapi

  • Theme Designer

  • Posts: 611

  • Since: 2002/1/22


You have to watch for your path! If you put this file in your XOOPS root folder, you need to include the files without the ../ e.g. include("mainfile.php");

3
vinc3
Re: Fatal error in my template for html in Xoops
  • 2004/7/25 13:25

  • vinc3

  • Just popping in

  • Posts: 2

  • Since: 2004/7/25


Now it goes.
Thanks so many

Login

Who's Online

209 user(s) are online (130 user(s) are browsing Support Forums)


Members: 0


Guests: 209


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: May 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits