I host my pfpbb forum through Godaddy and am in the process of moving from one of their legacy servers to one of the current servers. Once all the code and databases were copied, most of my phpbb forum worked, but my file section did not. My file section is an add-on mod by Mohd called pafiledb. When I would click any of the links to do with the file section, the screen would just go completely blank.
I'm not a php programmer, but by painstakingly going through the code line by line, I have isolated three lines of code that were causing the problem, in two members: functions.php and functions_pafiledb.php. Once I commented these lines out, things seem to work, but I know that something will be broken somewhere, so I am looking for some advice.
The line in functions.php is the final line below:
$url = parse_url($file_url);
$host = $url['host'];
$path = $url['path'];
$port = (!empty($url['port'])) ? $url['port'] : 80;
$fp = @fsockopen($host, $port, &$errno, &$errstr, 20);
The first problematic line in functions_pafiledb.php is:
$this->category_nav($this->cat_rowset[$cat_id]['cat_parent'], &$cat_nav);
and the second line is:
$this->category_nav($this->cat_rowset[$parent_id]['cat_parent'], &$cat_nav);
I have saved both files, with the code still commented out - look for "Rob", here:
http://www.rockabilly.net/temp/functions-php.zip
Anyone have any ideas?
Thanks,
Rob