2 errors: symlink() and Table 'fudforum._level' doesn't exist [message #165156] |
Wed, 04 May 2011 12:57 |
|
The 1st is the error
PHP Warning: symlink(): Operation not supported in /www/kisekimanga/FUDforum/include/glob.inc on line 163
Another is
FATAL ERROR!
Failed to load seed data into table def_levels:<br />Query: INSERT INTO _level (name,post_count) VALUES ('Senior Member',100)<br />SQL error: 1146: Table 'fudforum._level' doesn't exist @ INSERT INTO _level (name,post_count) VALUES ('Senior Member',100)
(_ is a table prefix)
What do I do wrong?
|
|
|
|
|
|
|
|
|
|
|
|
|
Re: 2 errors: symlink() and Table 'fudforum._level' doesn't exist [message #165167 is a reply to message #165166] |
Wed, 04 May 2011 18:51 |
|
I compiled a custom installation pack.
The symlink is fixed.
When it sets up the database it issues another error:
Failed to load seed data into table def_mime:
Query: INSERT INTO fud30_mime (fl_ext,mime_hdr,descr,icon) VALUES('aiff','audio/x-aiff','AIFF File','sound.gif')
SQL error: 1146: Table 'fudforum.fud30_mime' doesn't exist @ INSERT INTO fud30_mime (fl_ext,mime_hdr,descr,icon) VALUES('aiff','audio/x-aiff','AIFF File','sound.gif')
Now it can't create table 'fudforum.fud30_mime'
[Updated on: Wed, 04 May 2011 19:02] Report message to a moderator
|
|
|
|
|
Re: 2 errors: symlink() and Table 'fudforum._level' doesn't exist [message #165173 is a reply to message #165171] |
Thu, 05 May 2011 11:46 |
|
I found out that listing of a folder on a partition mounted by CIFS does not show more then ~40 entries (files/folders)
Both `ls` or a glob() function - this looks like a filesystem problem.
If I move visible files to another folder, it starts showing the other 40.
The direct access to the file by name works fine, but the script just can't find all files in a folder - and create all tables in DB.
I don't really know a solution, other then to try to use a newer Linux, this one is quite old one, or make a file with the folder listing and get its contents instead of calling glob().
[Updated on: Thu, 05 May 2011 11:50] Report message to a moderator
|
|
|
|
Re: 2 errors: symlink() and Table 'fudforum._level' doesn't exist [message #165175 is a reply to message #165174] |
Thu, 05 May 2011 13:30 |
|
sad, but no
I created 2 text files with lists in windows:
W:\FUDforum\sql>dir /b *.sql >sql.txt
W:\FUDforum\sql>dir /b *.tbl >tables.txt
replaced glob() in install.php with
$tbl = file($DATA_DIR .'sql/tables.txt',FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES );
$sql = file($DATA_DIR .'sql/sql.txt', FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES );
and
foreach ($tbl as $t) {
$t = $DATA_DIR .'sql/'.$t;
|
|
|
|
|
|
|