Error with CurrentUserEmail() in custom file

This public forum is for user-to-user discussions of PHPMaker. Note that this is not support forum.
Post Reply
dquinlan
User
Posts: 38

Error with CurrentUserEmail() in custom file

Post by dquinlan »

I have a simple custom file that tries to set session variables but I'm getting an error. (v2024)

The error is
/opt/bitnami/apache/htdocs/atria/src/AbstractEntity.php(61): Too few arguments to function PHPMaker2024\atria\AbstractEntity::get(), 0 passed in /opt/bitnami/apache/htdocs/atria/src/AbstractEntity.php on line 66 and exactly 1 expected

The code is

<?php
// 
$_SESSION["User_Id"] = CurrentUserID();
$_SESSION["User_Level"] = CurrentUserLevel();
$_SESSION["User_Name"] = CurrentUserName();
$_SESSION["User_Email"] = CurrentUserEmail();
//
echo "hello world".CurrentUserID();
?>
<div class="container-fluid">
    <div class="row">
	<div class="col-md-6 text-center">
        <a href="https://accountdata.io/atria/wfm_connection.php"><i class="fas fa-plus"></i> WorkflowMax</a></br>
	</div>
	</div>
</div>

If I comment out the setting of the session variables the echo returns the correct CurrentUserID() so I presume the error is related to the session?


arbei
User
Posts: 9719

Post by arbei »

Make sure the Email field is set up properly or CurrentUserEmail() will fail.


dquinlan
User
Posts: 38

Post by dquinlan »

Many thanks, your awesome


Post Reply