Installation problem

86 views
Skip to first unread message

Joy Betty

unread,
Feb 22, 2012, 4:10:42 AM2/22/12
to ajaximrpg
Was trying to install ajaximrpg 5.00 and I got this error.

installing...

Notice: Undefined property: AjaxActionServer::$json in C:\wamp\www
\chatservice\ajax_act.php on line 519

Fatal error: Call to a member function encode() on a non-object in C:
\wamp\www\chatservice\ajax_act.php on line 519


What should I do about coz am stack?
Thanks in advance

ajaximrpg

unread,
Feb 22, 2012, 1:24:54 PM2/22/12
to ajaximrpg
Is json.php in the same folder as ajax_act.php? Does the server have
the correct permissions to access json.php?

AjaxActionServer::$json is the one and only JSON object created to
parse/stringify to/from JSON. All its code is in json.php.

If the json.php does not exist in the right place or is inaccessible,
I'd expect an error like you are getting.

Does that help? Please post again if you need more help.

Dan
----------------
Play: http://www.svexpertise.com/ajaximrpg/server
Code: http://ajaximrpg.sourceforge.net
Tweet: http://www.twitter.com/ajaximrpg
Discuss: http://groups.google.com/group/ajaximrpg
Totally free. Totally easy. Totally open. Play RPGs instantly.

Joy Betty

unread,
Mar 9, 2012, 3:50:22 AM3/9/12
to ajaximrpg
json.php is in the same folder as ajax_act.php and it has finally
installed however, it has no any sense of privacy as long as you've
singed on, you're able to see and chat with any one who is online even
if you're not the administrator. And also when you try to send a chat,
it returns this error. "Deprecated: Function
set_magic_quotes_runtime() is deprecated in C:\wamp\www\chatservice
\ajax_act.php on line 40" What should I replace this function with?

Secondly about AjaxIm 3.41, I tried to install it several times but
this what happens. whenever i try to install it, after I've created db
and on the installation page I put the username, password and email
then click install, it doesn't continue. The browser says it's taking
long to load and stops there. However when I check the database, I
find out that it has been created and when I try to login it says
"you have signed off!" Reconnect.
Please help tell me if there is anything else I needed to do to
succeed. Thanks in advance.

ajaximrpg

unread,
Mar 9, 2012, 9:58:12 AM3/9/12
to ajaximrpg
To solve your privacy problem, in js/config.js, find:

var haveLobby = true;

And replace it with:

var haveLobby = false;

This will make ajaximrpg operate more like Ajax IM 3.41 where you must
create an account before you can login. If there is a lobby, you are
automatically logged in as an anonymous user and, to login as a
specific user, you press the "Login" button at the bottom of the Room
panel. Right now, by default, any user can talk to any other user
unless a user sets himself to "Friends Only" and manipulates his buddy
list to indicate his buddies.

The set_magic_quotes_runtime() is a more serious problem. The code
is:

if (get_magic_quotes_runtime()) {
set_magic_quotes_runtime(false);
}

Which means that "magic quotes" are on so I have to turn them off but,
in the process of turning them off, there is a deprecated warning.
I'll have to reproduce this and then make a fix. My only suggestion
as a workaround is to turn magic quotes off on your server or, if you
are on a hoster, to consult with them about what kind .htaccess or
php.ini file that you could put in your account to turn off magic
quotes for your account. I'll have to get back to you with a
permanent fix.

For Ajax IM 3.41, could you look in the 'ajaxim_users' table in the
database and see if the user was created when you registered in? If
the 'ajaxim_users' table is empty, you may be using a MySQL account
that doesn't have write access to the 'ajaxim' database. Please let
me know if any of the tables have any data and if Ajax IM is
configured to use the 'root' user or not.

Sorry that you are having so much trouble.

Joy Betty

unread,
Mar 12, 2012, 4:23:32 AM3/12/12
to ajaximrpg
Thanks a lot for your quick response.
More especially about ajaximrpg.

About AjaxIm 3.41, yes the root user is created and even when I try to
create another user it works however, non of the users is able to
login. Whenever I try to login, I just get this message "You have
signed out! Reconnect". And all the times I have tried to install, it
doesn't finish installation irrespective of the browser used. I tried
using safari, Mozila and internet explorer. After I have created the
database and configured the Config.php file, when I nevigate to /
ajaxim/install.php, it brings the first page where am supposed to fill
in the details of username, password and email address with two
exceptions. I'e (1. Notice: Undefined index: go in C:\wamp\www\ajaxim
\install.php on line 98 and 2. Notice: Undefined variable:
maxBuddyIconSize in C:\wamp\www\ajaxim\install.php on line 106) .
However, when I go ahead and fill in the details and click install, it
returns the page saying
( Safari can't open the page. (?)
safari can't open the page "http://localhost/ajaxim/install.php?
go=true". The error is ""(kCFErrorDomainWinSock:10054) Please choose
Safari > Report Bugs to Apple, note the error number, and describe
what you did before you saw this message.) This is when I use safari
but it's the same with other browsers.
Then when I check the database, I realize it has been created plus the
registered user.

Thanks

ajaximrpg

unread,
Mar 13, 2012, 11:11:54 AM3/13/12
to ajaximrpg
I'm sorry that you are having so much difficulty with ajaximrpg.
Please accept my apologies.

Could you tell me something about your server?

What Windows version are you running? (I assume windows because of
your C:\ path).

Do you have an idea what PHP version you are running?

What webserver are you running? Apache?

I looked up kCFErrorDomainWinSock:10054 and this seems to be a
connection error.

You can try changing line 98 from:

if(!$_GET['go']) {

to:

if(!isset($_GET['go'])) {

You can also try deleting line 106. It only relates to the buddy
icons (which are buggy anyway).

Line 106 should be:

<?php if ($maxBuddyIconSize > 0 && trim(substr(sprintf('%o',
fileperms('./buddyicons/')), -4)) != 777) { echo '<li>CHMOD
<strong>buddyicons/</strong> to 0777, it is at: '.
substr(sprintf('%o', fileperms('./buddyicons/')), -4) .'?</li>'; } ?>

Again, sorry that this is not working for you easily. Thanks for
hanging in there.

Dan
----------------
Play: http://www.svexpertise.com/ajaximrpg/server
Code: http://ajaximrpg.sourceforge.net
Tweet: http://www.twitter.com/ajaximrpg
Discuss: http://groups.google.com/group/ajaximrpg
Totally free. Totally easy. Totally open. Play RPGs instantly.

Joy Betty

unread,
Mar 15, 2012, 4:02:18 AM3/15/12
to ajaximrpg
Thanks once again for the response. I've tried to change if(!
$_GET['go']) { to: if(!isset($_GET['go'])) {
but the error still persists I can't finish the installation.

Am using windows 7 ultimate, php version 5.3.0, mysql ver 5.1.36 and
Apache as a webserver.

ajaximrpg

unread,
Mar 16, 2012, 7:23:14 PM3/16/12
to ajaximrpg
I'm stumped. I'm on vacation right now; give me a few days to think
this over and get back to you.

I may have to get a copy of Windows Ultimate and try to replicate this
problem.

Sorry about this.

Dan
----------------
Play: http://www.svexpertise.com/ajaximrpg/server
Code: http://ajaximrpg.sourceforge.net
Tweet: http://www.twitter.com/ajaximrpg
Discuss: http://groups.google.com/group/ajaximrpg
Totally free. Totally easy. Totally open. Play RPGs instantly.

Joy Betty

unread,
Mar 20, 2012, 3:09:04 AM3/20/12
to ajaximrpg
Alright then, Thank you so much.

ajaximrpg

unread,
Mar 23, 2012, 1:53:07 PM3/23/12
to ajaximrpg
I'm sorry that I'm so slow. I'm off vacation but catching up on my
day job and struggling with some personal issues.

Bear with me. I haven't forgotten you.

Dan
----------------
Play: http://www.svexpertise.com/ajaximrpg/server
Code: http://ajaximrpg.sourceforge.net
Tweet: http://www.twitter.com/ajaximrpg
Discuss: http://groups.google.com/group/ajaximrpg
Totally free. Totally easy. Totally open. Play RPGs instantly.

ajaximrpg

unread,
Mar 23, 2012, 5:57:05 PM3/23/12
to ajaximrpg
I'm still acquiring Windows 7 Ultimate.

However, if you are willing, you might try this procedure.

1. Uninstall your current Apache, MySQL and PHP.

2. Download and run Zend Server CE (PHP 5.3) from
http://www.zend.com/en/products/server-ce/downloads .

3. Use default (sensible) selections until the "Setup Type" page.

4. Select "Custom" radio button in "Setup Type" page (instead of
"Typical") and press the "Next" button.

5. Check "MySQL Server (separate download)" from the "Custom Setup"
page.

6. Use default selections until the installer finishes.

7. Then, configure the Apache server using your browser; no special
configuration is needed.

(The MySQL "root" password is "", the empty string, by default. This
password is always empty, even if you put in a different password
configuring Apache.)

All the previous steps will install Apache, PHP and MySQL all together
and make them work together with no effort.

8. Unzip Ajax IM 3.41 into C:\Program Files\Zend\Apache2\htdocs .
(4.0 and 5.0 will be a little different.)

9. Rename config-sample.php to config.php. (No need to edit.)

10. Run Zend Server|MySQL Server 5.1|MySQL Command Line Client from
the Start menu

11. The password is the empty string so just press Enter at the
"Enter password:" prompt

12. Type CREATE DATABASE ajaxim;

It should say "Query OK, 1 row affected".

13. Type "http://localhost/install.php" into your browser. If you
put it in a subdirectory of htdocs, you'll have to include that in
your browser address.

14. If in IE, press the button to go into Compatibility Mode. (Ajax
IM 3.41 is old so it needs help.)

15. Do "admin", "adminpw" and "ad...@admin.com" for the username,
password and e-mail and click "Install"

16. It should have a bunch of successful steps although it might say
"error" at the end (again, Ajax IM 3.41 is old).

17. Go to "http://localhost/" or "http://localhost/index.php" and see
if it works.

18. If you get a dialog with missing prompts, try switching on
Compatibility Mode.

19. You should be able to login with "admin" as the user and
"adminpw" as the password.

Dan
----------------
Play: http://www.svexpertise.com/ajaximrpg/server
Code: http://ajaximrpg.sourceforge.net
Tweet: http://www.twitter.com/ajaximrpg
Discuss: http://groups.google.com/group/ajaximrpg
Totally free. Totally easy. Totally open. Play RPGs instantly.


Reply all
Reply to author
Forward
0 new messages