james.iwate
Forum Replies Created
-
Thanks again for the reply.
First, I turned of all my plugins accept for Ultimate Member and changed the WP theme to 2022. Still, I had the same error.
Second, I turned on the web console to send screenshots of the AJAX request. I tried this in two browsers, Safari and Firefox.
Below are the screenshots. Just for the sake of it, I have attached a screen shot of the syntax error I saw when the WP Debugger plugin was on (Screenshot 4). I am not sure how informative the other screenshots are.
If there is anything else I can do, please let me know.
Screen Shot 1: Invalid Image Error in Safari with Browser console on

Screen Shot 2: Invalid Image Shot Firefox with Web Console

Screen Shot 3: Invalid Image Firefox, Web Console – Headers

Screenshot 4: WE Debugger Error Screenshot (ScreenShot 3: ERROR: SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data)

Screenshot 5: Invalid image stack response

Thank you very much for your reply. The error log consists of PHP Warnings but nothing about Ultimate Member. HOWEVER, using the WP Debugging Plugin, I can see the following syntax error message when trying to upload the photo:
ERROR: SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data
@kelyhall, I am sorry for the late reply, I did not notice your comment. Are you still having this issue?
Basically, I had to have the university server administrator write the no-cache commands for me.
However, if you use a normal cache plugin, you should be able to disable cache for the login pages.
This issue was persistent for about four months but I have not had this error since November of last year.
- This reply was modified 5 years, 1 month ago by james.iwate.
It seems like now the only time we get the invalid nonce error is when the user’s login page was not reloaded in the browser and this invariably happens with mobile devices rather than PCs. Now, though, the error message is much more user friendly. Instead of the “invalid nonce” error and a white screen the login page reloads with a message that the page was probably cached and to try again. This is MUCH better, @champsupertramp , did you make this change?
Thank you, for permalinks I was using the post id. Adding only the “/subdirectory/postid” seems to have worked.
Hello, I thought I would provide one last update. I am not confident enough to say the issue is completely resolved because I, myself, got the invalid nonce error once yesterday, but, to my knowledge, over 100 site users have not received this error in two weeks. Here is what I did:
First, my cache plugin was not disabling cache. Therefore, I have to write the following into the httpd file of the server to make sure cache was disabled for the login pages
<IfModule mod_cache.c> CacheDisable https://mysite/login CacheDisable https://mysite/logout CacheDisable https://mysite/wp-.*\.php CacheDisable https://mysite/index\.php CacheDisable https://mysite/register CacheDisable https://mysite/user </IfModule>Second, after doing this, I was still having problems (When I clicked on the ulitmate member ‘logout’ button; I would not be logged out). I deleted the site data on my browser and turned off all the plugins except ultimate member. This seemed to resolve the problem.
Third, I had some code in my ipconfig file that made it possible for the superadmin to visit the dashboards of various sites on the multisite without logging in. I deleted this code. This caused the “invalid nonce” error to disappear on the child sites of my multisite. The bad code is below:
define( 'COOKIE_DOMAIN', ''); define( 'ADMIN_COOKIE_PATH', '/' ); define( 'COOKIEPATH', '' ); define( 'SITECOOKIEPATH', '' );*/Ultimate member seems to have updated its login.php form on June 1, 2020, that is when my invalid nonce problems began.
Again, I did get the error yesterday accessing my site on a browser I seldom use(google chrome) on my mac. I do not know if the reason for this was because I had not deleted the browser cache after resolving the issue with the site or if there is still a problem. However, I am marking this issue as resolved as currently, I cannot replicate the error.
@champsupertramp , Unfortunately, I updated to the pre-release version but the problem still persists. Aside from not caching the login page, does ultimate member have any recommended server cache settings?
@champsupertramp ,
Thank you for this. I have a lot of classes today but will test it by Monday and let you know how it goes!Hi, here is an update to my update.
First, I realized that for some reason my caching program was not disabling cache so we wrote the following into the httpd file on the server. These are paths that are supposed to be cached.
<IfModule mod_cache.c> CacheDisable https://mysite/login CacheDisable https://mysite/logout CacheDisable https://mysite/wp-.*\.php CacheDisable https://mysite/index\.php CacheDisable https://mysite/register CacheDisable https://mysite/user </IfModule>However, we are still sporadically receiving the invalid nonce error. It seems like the error has decreased in frequency, but it id difficult to know for sure.
Are there any other pages or URL strings I should disable caching for?
Second, a user received an “invalid nonce” error when uploading a picture to her profile. I have tried @cer0c ‘s suggestion of disabling the user cache under misc on the Ultimate member settings panel on the dashboard.
Third, someone recommended that I use the login form from WPLogin plugin. I can do this by uploading the plugin and changing the shortcode on the ultimate member login page. If this problem persists, I might do that. I have tried it on my test site.
I wonder why this happens with ultimate member but not the normal way of logging in on WordPress.
Hi @champsupertramp ,
The issue is not resolved, I am waiting to here back from the Server administrator about the hosting settings. I have confirmed that the login page is indeed being cached even though I set the my caching plugin to exclude it.
Also, the problem has worsened. Now, I cannot even log out of some sites on my multisite!
I will update the thread when there is a resolution.
Could you leave this thread as unresolved?
James
- This reply was modified 5 years, 7 months ago by james.iwate.
@champsupertramp , When we changed the permissions of the profile file folders in the uploads directory, we were able to resolve this problem.
I have one question, I use ultimate member on four sites in a sub-directory multisite. Many of my users belong to all four sites. When a user changes or adds his/her profile picture, is this supposed to carry over for other sites in a multisite? When I change a profile picture or profile background picture for one site, sometimes it seems to carry over to other sites, and sometimes it doesn’t.
@visi19 ,
Thanks for the reply and sorry it took me so long to get back to you. I discovered the problem. Somehow the login customizer page template was set to the default page template rather than the login customizer template. When I set the template to login customizer I could see the login page in the theme customizer.
Thanks for the plugin recommendation!
James@marce1963 , Unfortunately, I do not use WordFence. I hope that you are able to resolve everything!
@singhvirat , I am using a multisite and the two sites receiving traffic right now are:
(1) https://etm.edu.iwate-u.ac.jp
and
(2) https://etm.edu.iwate-u.ac.jp/pigsYesterday, 44 students used site (1) for the first time and about 30 students were using site (2). The night before, I did what was recommended in your article. As far as I know, there were no problems.
Last night, when accessing site (2) on my ipad safari browser, to my great surprise I got an invalid nonce error. I then logged in again, though, and did not get the error. I logged in and out several times after that and could not reproduce the error. So, it is kind of a mystery. I have told my students to tell me if they get the error.
Anyway, thanks again for sharing your solution.
@marce1963 , I also have WP-Optimize. I just tried @singhvirat ‘s solution. After entering the strings and clearing page cache, I logged in and out 10 times in the same window. The error did not occur. However, I did not produce the error beforehand. Tomorrow, I will have 40 new users on my site. This might be a good test to see if it works. I am keeping my fingers crossed!