FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum Development » Bug Reports » Problems with 3.0.3RC1
Show: Today's Messages :: Unread Messages :: Show Polls :: Message Navigator
| Subscribe to topic | Bookmark topic 
Switch to threaded view of this topic Create a new topic Submit Reply
Problems with 3.0.3RC1 [message #165637] Fri, 29 July 2011 04:39 Go to next message
dcars is currently offline  dcars
Messages: 4
Registered: July 2011
Karma: 0
Junior Member
add to buddy list
ignore all messages by this user
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. Very Happy

[Updated on: Fri, 29 July 2011 05:17]

Report message to a moderator

Re: Install FUDforum on your PC in under 15 minutes [message #165638 is a reply to message #165637] Fri, 29 July 2011 05:16 Go to previous messageGo to next message
naudefj is currently offline  naudefj   South Africa
Messages: 3632
Registered: December 2004
Karma: 17
Senior Member
Administrator
Core Developer
add to buddy list
ignore all messages by this user
dcars wrote:
Fatal error: Call to undefined function q() in C:\xampp\htdocs\fudforum\sql\mysql\db.inc on line 167


Can you please provide more details: Version of FUDforum, OS version, PHP version, where does it fail, etc?
Re: Install FUDforum on your PC in under 15 minutes [message #165639 is a reply to message #165638] Fri, 29 July 2011 05:24 Go to previous messageGo to next message
dcars is currently offline  dcars
Messages: 4
Registered: July 2011
Karma: 0
Junior Member
add to buddy list
ignore all messages by this user
naudefj wrote on Fri, 29 July 2011 05:16
dcars wrote:
Fatal error: Call to undefined function q() in C:\xampp\htdocs\fudforum\sql\mysql\db.inc on line 167


Can you please provide more details: Version of FUDforum, OS version, PHP version, where does it fail, etc?


hi, i had it figured out. i failed to indicate the name of the database which caused the error.

OS: Microsoft Windows 6.1 Build 7600
FUDforum version: 3.0.3RC1
PHP version: 5.3.5

my bad!
Re: Install FUDforum on your PC in under 15 minutes [message #165646 is a reply to message #165639] Fri, 29 July 2011 23:38 Go to previous messageGo to next message
naudefj is currently offline  naudefj   South Africa
Messages: 3632
Registered: December 2004
Karma: 17
Senior Member
Administrator
Core Developer
add to buddy list
ignore all messages by this user
Aanhaling:
I failed to indicate the name of the database which caused the error.


Thanks for the feedback. It's a small bug in the installer that we will fix with the next release.
Re: Install FUDforum on your PC in under 15 minutes [message #165648 is a reply to message #165646] Sat, 30 July 2011 00:04 Go to previous messageGo to next message
dcars is currently offline  dcars
Messages: 4
Registered: July 2011
Karma: 0
Junior Member
add to buddy list
ignore all messages by this user
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 00:10]

Report message to a moderator

Re: Install FUDforum on your PC in under 15 minutes [message #165649 is a reply to message #165648] Sat, 30 July 2011 00:31 Go to previous messageGo to next message
naudefj is currently offline  naudefj   South Africa
Messages: 3632
Registered: December 2004
Karma: 17
Senior Member
Administrator
Core Developer
add to buddy list
ignore all messages by this user
This is not a FUDforum problem. Your options:

1. Ask your hosting provider to allow getmypid() - the best solution.

2. Replace all occurrences of getmypid() with mt_rand(0,32000).
Re: Install FUDforum on your PC in under 15 minutes [message #165653 is a reply to message #165649] Sat, 30 July 2011 10:16 Go to previous messageGo to next message
dcars is currently offline  dcars
Messages: 4
Registered: July 2011
Karma: 0
Junior Member
add to buddy list
ignore all messages by this user
naudefj wrote on Sat, 30 July 2011 00:31
This 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 10:18]

Report message to a moderator

Re: Problems with 3.0.3RC1 [message #165823 is a reply to message #165637] Mon, 15 August 2011 15:16 Go to previous messageGo to next message
chacham is currently offline  chacham
Messages: 5
Registered: August 2011
Location: Oak Park, MI
Karma: 0
Junior Member
add to buddy list
ignore all messages by this user

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.




Re: Problems with 3.0.3RC1 [message #165824 is a reply to message #165823] Mon, 15 August 2011 15:58 Go to previous message
naudefj is currently offline  naudefj   South Africa
Messages: 3632
Registered: December 2004
Karma: 17
Senior Member
Administrator
Core Developer
add to buddy list
ignore all messages by this user
If I remember correctly this bug was fixed, and will be included into the 3.0.3RC2 release.
Quick Reply
Formatting Tools:   
  Switch to threaded view of this topic Create a new topic
Previous Topic: Call to a member function fetch_row() on a non-object
Next Topic: consistency check error
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sun Dec 17 16:21:06 EST 2017

Total time taken to generate the page: 0.00874 seconds