Vcard extension doesn’t work anymore
-
Hi, your Vcard extension works perfectly last week after I implemented the code your side has given. Link of previous post.
But it shows the message ‘This file has been removed’ when a user updates his profile to generate the vcard this week.
Link to the screenshot: https://tinyurl.com/2n8fz6hv
-
Can you try to clear the UM User cache at the UM Dashboard
and let us know if this solves your VCard issue.No, it doesn’t
Can you look at the user upload folder with a file manger or FTP Client if you have any file of the type vcf.
There are only vcard files created previously when the extension works.
1. Look at your browser web console if you have any JavaScript errors.
2. Enable PHP error logging, read this guide: “How to enable debug logging”
https://docs.ultimatemember.com/article/1751-enable-debug-logging
Test editing a user profile.
Test a Registration of a new user.
Both tests should generate a VCard file.You will probably get a PHP log file with notices and errors after these tests:
/wp-content/debug.logPost the content of this file here in the Forum and we can give you the PHP error explanation.
[29-Dec-2022 07:45:02 UTC] PHP Notice: Function wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the
wp_enqueue_scripts,admin_enqueue_scripts, orlogin_enqueue_scriptshooks. This notice was triggered by thetqrtoken-public-confighandle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.) in /var/web/staging/public_html/wp-includes/functions.php on line 5835
[29-Dec-2022 07:50:02 UTC] PHP Notice: Function wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until thewp_enqueue_scripts,admin_enqueue_scripts, orlogin_enqueue_scriptshooks. This notice was triggered by thetqrtoken-public-confighandle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.) in /var/web/staging/public_html/wp-includes/functions.php on line 5835
[29-Dec-2022 07:55:02 UTC] PHP Notice: Function wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until thewp_enqueue_scripts,admin_enqueue_scripts, orlogin_enqueue_scriptshooks. This notice was triggered by thetqrtoken-public-confighandle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.) in /var/web/staging/public_html/wp-includes/functions.php on line 5835These are the errors in the file. No Javascript errors.
This notice was triggered by the tqrtoken-public-config handle.
I can’t find anything about this function causing the PHP notice.
You can try to do a Theme/Plugin conflict test:
https://docs.ultimatemember.com/article/96-how-to-do-a-plugin-theme-conflict-test
Hi, I tried to debug on my live site.
This is the additional error recorded when I was editing a user’s profile
[29-Dec-2022 18:04:39 UTC] PHP Warning: file_put_contents(/var/web/site/public_html/wp-content/uploads/ultimatemember/368/vcard.vcf): Failed to open stream: No such file or directory in /var/web/site/public_html/wp-content/plugins/um-vcard/vendor/jeroendesloovere/vcard/src/Formatter/Formatter.php on line 91
Have you uploaded any other files like Photos for this user 368?
There is a default profile photo for all users. But this doesn’t affect the generation of vcard previously.
The only difference might be I added a custom dropdown field. Not sure whether the dropdown field will affect the generation of vcard
Do you have this folder
.../wp-content/uploads/ultimatemember/368/created?No, the folder isn’t created
The VCard plugin expects the user uploads folder to exist.
This is a bug and I will try to fix it with a code snippet until the UM Developers have fixed the plugin source code.
Thanks!
I have now got this issue at my UM site by removing an user uploads folder.
During the Registration the folder is created and a VCard is created with the Registration fields.
This issue is for the UM sites where the VCard Plugin is being introduced for existing users.
-
This reply was modified 3 years, 4 months ago by
missveronica.
-
This reply was modified 3 years, 4 months ago by
The topic ‘Vcard extension doesn’t work anymore’ is closed to new replies.