Hi Karen, in the readme.txt it says: It will also automatically create a new user in PGV for any logged in Drupal user who tries to access the program, if they don't already exist in PGV.

If this means that any new user who clicks on the phpgedview link from within Drupal will automatically be created as a new user in PGV, then I didn't observe that happening... I tried a test user, but upon accessing PGV embedded in Drupal it has not created a new user.... am I misunderstanding how this works?

How do you get all Drupal users to be able to view/edit all PGV info?

Comments

capitaine’s picture

ps - 'create users' is already set to Yes (within Drupal admin)

capitaine’s picture

Title: automatically create a new user in PGV for any logged in Drupal user » New users are not created in PGV the first time they access it from Drupal

OK after further investigating, I can't map a user because PGV is definitely not creating the new user the first time they access PGV.... any ideas why not?

mattjp03’s picture

I am also having the same issue. I created a test account in Drupal, logged in to my admin account and unblocked the account, logged out of the admin account and then logged into the test account and went to PhpGedView through Drupal.

PhpGedView doesn't display anything at all after logging in using the test account and when I view the user accounts in PhpGedView under the admin account.. there aren't any new accounts being created.

Could it have anything to do with the MySQL information? e.g.:

drupal: databasename1, databaseuser1, password
pgv: databasename1, databaseuser1, password

..or..

drupal: databasename1, databaseuser1, password
pgv: databasename1, databaseuser2, password

..or..

drupal: databasename1, databaseuser1, password
pgv: databasename2, databaseuser2, password

dixieau’s picture

I'll throw in here too as I thought I had it all working nicely, well it does for me on my computers from my IP. But anybody else who I create an account for or even registers cannot gain access at all even with permissions set correctly and users mapped.

I have tried every which way to the point I have moved this to the backburner and switched to TNG in the meanwhile.

I will keep an eye out to see if it all gets resolved and hopefully start using it again

mattjp03’s picture

Alright, so I made a few changes to my MySQL settings:

(the usernames and database names are only examples)

Drupal is now using the database name dbname1, the username is dbuser1 and the password is "password1".

PhpGedView is now using the database name dbname1, the username is dbuser2 and the password is "password1".

I created a new user account, activated it using the admin account, logged in using the new user account and went to the home page. Before I went to the PhpGedView page, I cleared my cookies to attempt to start fresh. After doing so, I went to the embeded PhpGedView page and got a few errors, then went to PhpGedView again and everything works fine and the new user information was sent to PhpGedView. The errors that I got are listed below.

------------------------------

ERROR 8: Undefined variable: post_firstname
0 Error occurred on in function eval
1 called from line 70 of file drupal.php

ERROR 8: Undefined variable: post_lastname
0 Error occurred on in function eval
1 called from line 71 of file drupal.php

ERROR 8: Undefined index: visibleonline
0 Error occurred on in function adduser
1 called from line 717 of file authentication.php in function adduser
2 called from line 95 of file drupal.php

ERROR 8: Undefined index: editaccount
0 Error occurred on in function adduser
1 called from line 719 of file authentication.php in function adduser
2 called from line 95 of file drupal.php

ERROR 8: Undefined index: default_tab
0 Error occurred on in function adduser
1 called from line 721 of file authentication.php in function adduser
2 called from line 95 of file drupal.php

ERROR 8: Undefined index: comment
0 Error occurred on in function adduser
1 called from line 722 of file authentication.php in function adduser
2 called from line 95 of file drupal.php

ERROR 8: Undefined index: comment_exp
0 Error occurred on in function adduser
1 called from line 723 of file authentication.php in function adduser
2 called from line 95 of file drupal.php

ERROR 8: Undefined index: sync_gedcom
0 Error occurred on in function adduser
1 called from line 726 of file authentication.php in function adduser
2 called from line 95 of file drupal.php

ERROR 8: Undefined index: relationship_privacy
0 Error occurred on in function adduser
1 called from line 727 of file authentication.php in function adduser
2 called from line 95 of file drupal.php

ERROR 8: Undefined index: max_relation_path
0 Error occurred on in function adduser
1 called from line 728 of file authentication.php in function adduser
2 called from line 95 of file drupal.php

ERROR 8: Undefined index: auto_accept
0 Error occurred on in function adduser
1 called from line 730 of file authentication.php in function adduser
2 called from line 95 of file drupal.php

ERROR 2: Cannot modify header information - headers already sent by (output started at /home/family/public_html/pgv/includes/functions.php:324)

Warning: Cannot modify header information - headers already sent by (output started at /home/family/public_html/pgv/includes/functions.php:324) in /home/family/public_html/pgv/drupal.php on line 115

------------------------------

Any idea why the error is showing up? I'm still getting the cookies bug and now this error.. which is getting annoying. But at least Drupal is sending the user information over to PhpGedView.

karens’s picture

Status: Active » Closed (fixed)

The PhpGedView maintainers wanted this code moved to their repository, which is why there are no files here any more. I removed all the code from this project at their request. All further work must be done in the PhpGedView repository.

I'm closing the remaining issues and unpublishing the project page.