Hi guys,
im working on an external script for xenforo where i read and write values into a custom user field. It all worked good for the last 3 custom fields i created. But now when i try to access the 4th custom field i just created, my php script tells me that it doesnt exist:
when i var_dump() the custom field isnt listed. but i can see and edit it in the admin menu.
and here is the crazy part:
when i write a value into it from inside the admin panel, the script suddenly finds it and works as expected.
is it normal that xenforo delays creation of the custom field for each user seperatly? how can i use (or initalize) the custom fields for all users so i can use the field even if i never wrote a value into it before?
i hope i expressed myself clear enough
with best regards
im working on an external script for xenforo where i read and write values into a custom user field. It all worked good for the last 3 custom fields i created. But now when i try to access the 4th custom field i just created, my php script tells me that it doesnt exist:
ErrorException: Undefined index: lastaction
#0 /path/script.php(114): XenForo_Application::handlePhpError(8, 'Undefined index...', '/path/......', 114, Array)
when i var_dump() the custom field isnt listed. but i can see and edit it in the admin menu.
and here is the crazy part:
when i write a value into it from inside the admin panel, the script suddenly finds it and works as expected.
is it normal that xenforo delays creation of the custom field for each user seperatly? how can i use (or initalize) the custom fields for all users so i can use the field even if i never wrote a value into it before?
i hope i expressed myself clear enough
with best regards
Last edited: