|
Re: Deleted Files [message #2510 is a reply to message #2509] |
Fri, 10 May 2002 16:05 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
The include files in the "include" folder with the exception of GLOBALS.php are built during the compile process. You can fix the problem using the following php script:
<?php define('SHELL_SCRIPT', 1); include "FULL_PATH_TO_GLOBALS.php"; fud_use('static/adm.inc'); fud_use('static/compiler.inc'); $ts = time(); compile_all(); $te = time();
echo "recompiled in: ".($te-$ts)." seconds\n"; ?>
Although if you didn't fix up your GLOBALS.php with all the proper paths and mysql access info or don't have a backup of that file you have got your self a problem that can only be fixed by a re-install.
FUDforum Core Developer
|
|
|
Re: Deleted Files [message #2512 is a reply to message #2510] |
Fri, 10 May 2002 16:48 |
|
esm2002
Messages: 339 Registered: May 2002 Location: Atlanta Georgia
Karma: 0
|
Senior Member |
|
|
yep, I have a copy of the GLOBALS file
but I keep getting the following error
Warning: Failed opening '/home/acct351/public_html/fudforum/nb/include/core.inc' for inclusion (include_path='.:/usr/local/lib/php') in /home/saint351/public_html/fudforum/nb/include/GLOBALS.php on line 119
Fatal error: Call to undefined function: fud_use() in /home/acct351/public_html/fudforum/nb/include/ii2.php on line 4
I have the following in the ii2.php file and run from the include folder:
1<?php 2 define('SHELL_SCRIPT', 1); 3 include "/home/saint351/public_html/fudforum/nb/include/GLOBALS.php"; 4 fud_use('static/adm.inc'); 5 fud_use('static/compiler.inc');
my GLOBALS show
$INCLUDE = "/home/acct351/public_html/fudforum/nb/include/";
and there is no core.inc in the include folder...( I did see one in the template\src folder though ).
Gene
"The older I get, the more I admire competence, just simple competence in any field from adultery to zoology."
[Updated on: Fri, 10 May 2002 16:58] Report message to a moderator
|
|
|
Re: Deleted Files [message #2513 is a reply to message #2512] |
Fri, 10 May 2002 16:58 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
I see the problem...
Edit your GLOBALS.php file, go to the 2nd last line which does "include_once" and add
if( !defined('SHELL_SCRIPT') )
right before that line.
FUDforum Core Developer
|
|
|
Re: Deleted Files [message #2514 is a reply to message #2513] |
Fri, 10 May 2002 17:00 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
Errr 1 sec ignore the previous post...
You also need to add the following piece of code to your "compile script".
function fud_use($file) { include_once $GLOBALS["INCLUDE"].$file; }
FUDforum Core Developer
[Updated on: Fri, 10 May 2002 17:01] Report message to a moderator
|
|
|
|
Re: Deleted Files [message #2517 is a reply to message #2516] |
Fri, 10 May 2002 17:15 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
Easily fixed...
You need to make 2 symlinks to the GLOBALS.php inside the include dir. One symlink from the "/home/acct351/public_html/fudforum/br/" directory and 1 symlink from the "/home/acct351/public_html/fudforum/br/adm/" directory. If they already exist check the permissions on the GLOBALS.php file, make sure the webserver can read/write to it, the permissions on the file should be 666.
FUDforum Core Developer
|
|
|
|
Re: Deleted Files [message #2527 is a reply to message #2520] |
Fri, 10 May 2002 17:58 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
you can create symlinks using "ln" utility. For example: ln -s SOURCE DESTINATION
FUDforum Core Developer
|
|
|
|
|
|
|
|
Re: Deleted Files [message #2537 is a reply to message #2536] |
Fri, 10 May 2002 19:43 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
That is because you got source which is more recent then the templates files. The compiler complained about a missing template as the result.
You need to grab stats.tmpl from the CVS and replace your stats.tmpl with it.
Instead of building broken pages the compiler actually told you what was wrong, very good idea IMHO.
FUDforum Core Developer
|
|
|
|