PEAK XOOPS - Re: XOOPS 2.0.14 and Protextor 2.56 in englishin japanese

Re: XOOPS 2.0.14 and Protextor 2.56

List posts in the topic

question Re: XOOPS 2.0.14 and Protextor 2.56

msg# 1.1.1
depth:
2
Previous post - Next post | Parent - Children.1 | Posted on 2006/7/6 9:16
skalpa  二等兵   Posts: 4
include/common.php is included several times....

Now there's a test in mainfile.php to prevent this, and it actually doesn't happen in normal cases (I normally test protector compatibility before doing releases).

I could have made a mistake, but here I think more that the cause is coming from a badly edited mainfile.php (the include lines for protector and common.php may have been moved out of the if ( !defined("XOOPS_MAINFILE_INCLUDED") ) { clause).

You may want to change the include line like this, it should fix the problem:
In mainfile.php, replace this line
		include XOOPS_ROOT_PATH."/include/common.php";
with this
		include_once XOOPS_ROOT_PATH."/include/common.php";
Votes:9 Average:10.00

Posts tree

  Advanced search


Login
Username or e-mail:

Password:

Remember Me

Lost Password?

Register now!