Problems with 3.0.3RC1 [message #165637] |
Fri, 29 July 2011 08:39 |
|
dcars
Messages: 4 Registered: July 2011
Karma: 0
|
Junior Member |
|
|
hi guys, im really new to this so i went ahead and followed the instructions until this showed up:
Fatal error: Call to undefined function q() in C:\xampp\htdocs\fudforum\sql\mysql\db.inc on line 167
any ideas?
thanks
update: pls disregard this post. i was able to figure this one out. i was able to get it running in 13mins including the time i spent reading thru the selections and trying to figure out the problem. now, im hooked.
[Updated on: Fri, 29 July 2011 09:17] Report message to a moderator
|
|
|
|
|
|
Re: Install FUDforum on your PC in under 15 minutes [message #165648 is a reply to message #165646] |
Sat, 30 July 2011 04:04 |
|
dcars
Messages: 4 Registered: July 2011
Karma: 0
|
Junior Member |
|
|
hi guys,
i did some test runs over the internet and encountered these errors:
Warning: getmypid() has been disabled for security reasons in xxxx/index.php on line 389
line 389 at index.php says:
$ses_id = md5($uid . __request_timestamp__ . getmypid());
now, if going to make that line as a comment, it would return this error:
Fatal error: Allowed memory size of 16777216 bytes exhausted (tried to allocate 40 bytes) in xxxx/index.php on line 117
and if i remove the comments and try to login, this is what i get:
Warning: Cannot modify header information - headers already sent by (output started at xxxx/index.php:389) in xxxx/theme/default/login.php on line 25
any ideas as to how to overcome these errors.
i appreciate all the help. just wanted to learn.
TIA!
[Updated on: Sat, 30 July 2011 04:10] Report message to a moderator
|
|
|
|
Re: Install FUDforum on your PC in under 15 minutes [message #165653 is a reply to message #165649] |
Sat, 30 July 2011 14:16 |
|
dcars
Messages: 4 Registered: July 2011
Karma: 0
|
Junior Member |
|
|
naudefj wrote on Sat, 30 July 2011 00:31This is not a FUDforum problem. Your options:
1. Ask your hosting provider to allow getmypid() - the best solution.
this might not be an easy solution. im just running it on a free hosting site, so chances are slim on getting it done. but will try. im only doing this for educational purposes only so i cant afford to have a full featured hosting. i do realize the limitations of what im doing so im just taking my chances asking for alternate solutions. i just wanted to have the look and feel how it would be online rather than just running it off from my computer.
2. Replace all occurrences of getmypid() with mt_rand(0,32000).
so far applicable changes were made to index.php and login.php. but when i try to login, it only gave me a blank page so i really dont know were to go from here.
appreciate all the help!
special thanks to naudef for continuously helping out!
[Updated on: Sat, 30 July 2011 14:18] Report message to a moderator
|
|
|
Re: Problems with 3.0.3RC1 [message #165823 is a reply to message #165637] |
Mon, 15 August 2011 19:16 |
|
dcars wrote on Fri, 29 July 2011 04:39
Fatal error: Call to undefined function q() in C:\xampp\htdocs\fudforum\sql\mysql\db.inc on line 167
I am posting this for other people like me who use google on the error and find this thread.
This error occurs when the database is not yet created. The solution is to create the database:
mysql -uusername -p
(enter password)
create database fudforum;
quit
and rerun the script.
Make sure the user has rights to that database. If not, the quick and easy solution is:
mysql -uroot
(if you get a denied error: mysql -uroot -p)
create user fudforum identified by 'fudforum';
grant all on fudfoum.* to fudforum;
quit
It would be nice if the install script checked if the passed database existed, and if not, told the user.
|
|
|
|