The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Xoops installation error("[% xxx %]")

Discussion in 'cPanel Developers' started by PondRicefied, Dec 12, 2006.

  1. PondRicefied

    PondRicefied Well-Known Member

    Joined:
    Dec 13, 2004
    Messages:
    52
    Likes Received:
    0
    Trophy Points:
    6
    When Xoops was installed using the Addon installer of Cpanel, I viewed the following errors.

    I am looked like the error of an installer.
    I want to learn the fixed step.

    --[Access to install url]-------------------------
    Warning: main([% installdir %]/include/common.php) [function.main]: failed to open stream: No such file or directory in /home/user/public_html/xoops/mainfile.php on line 95

    Warning: main([% installdir %]/include/common.php) [function.main]: failed to open stream: No such file or directory in /home/user/public_html/xoops/mainfile.php on line 95

    Fatal error: main() [function.require]: Failed opening required '[% installdir %]/include/common.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/user/public_html/xoops/mainfile.php on line 95
    -------------------------

    --[/home/user/public_html/xoops/mainfile.php]-----
    ...
    // XOOPS Physical Path

    // Physical path to your main XOOPS directory WITHOUT trailing slash

    // Example: define('XOOPS_ROOT_PATH', '/path/to/xoops/directory');

    define('XOOPS_ROOT_PATH', '[% installdir %]');



    // XOOPS Virtual Path (URL)

    // Virtual path to your main XOOPS directory WITHOUT trailing slash

    // Example: define('XOOPS_URL', 'http://url_to_xoops_directory');

    define('XOOPS_URL', '[% url_to_install_without_trailing_slash %]');

    ...
    (line91-99)
    if ( !count($xoopsScriptPath) ) {

    die("XOOPS path check: this file cannot be requested directly");

    }

    $xoopsScriptPath = $xoopsScriptPath[0]['file'];

    } else {
    ...
    --------------------------------------------------------------
     
  2. PondRicefied

    PondRicefied Well-Known Member

    Joined:
    Dec 13, 2004
    Messages:
    52
    Likes Received:
    0
    Trophy Points:
    6
    Anyone, please.

    I think that it is a problem not to be changed while the value of the define function of a mainfile.php file has been "[% xxx %]", when it installs using the Addon installer of Cpanel.

    I have the problem same at OsCommerce.

    Is my way of thinking wrong?

    --- As an additional report. -----
    The MySQL database and the database user are created.
    -----------------------------------

    How should I be fixed?
     
Loading...

Share This Page