Forum Plugin 404 error Forum Plugin 404 error
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

Forum Plugin 404 error

Started by Owen34, March 24, 2015, 07:14:32 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Owen34

Hello,
I installed the forum plugin, all queries ran, it seemed to fully install.

The link in header goes to /forum.php but this file doesn't exist & I don't see it in the package to copy over? Is some of the files missing or am I missing something.

Thanks

ΑndrĂ©

That file usually will be created on plugin install. Obviously it hasn't, probably because of permission issues. However, you can manually create that file in the gallery root with the following content:
<?php
// define some basic element
define('NBSP''&nbsp;'); // mass use
define('BR''<br />'); // mass use
define('DS'DIRECTORY_SEPARATOR);
define('BASE_DIR'str_replace('\\'DSdirname(__FILE__)).DS);
// load coppermine
define('IN_COPPERMINE'true);
include(
BASE_DIR.'include'.DS.'init.inc.php');
//$fr_time_start = cpgGetMicroTime();
// load class and file
include(BASE_DIR.'plugins'.DS.'forum'.DS.'forum'.DS.'import.php');
// init the forum
include(BASE_DIR.'plugins'.DS.'forum'.DS.'forum'.DS.'initialize.php');
//$fr_time_end = cpgGetMicroTime();
//echo round($fr_time_end - $fr_time_start, 3);
if (!USER_ID && ($CONFIG['fr_guest_browse'] == 0)) {
    
header("Location: login.php?force_login=1&referer=forum.php");
    exit();
}

Owen34