Menu

Minified React error #311

According to react official docuemntation, this error occurs when we call React Hooks from regular JavaScript fucntion. We could fix this error by looking on the use of Hooks and only call Hooks from React Functions.

Don’t call Hooks from regular JavaScript functions. Instead, you can:
- Call Hooks from React function components.
- Call Hooks from custom Hooks (we’ll learn about them on the next page).

Check your fucntion in the code, fucntion should be a React JS function not general JavaScript function. A React function should have following four things into it.

React functions:

  1. Follow React component naming convention, i.e. they must be Capitalized
  2. Take a single props object argument
  3. Return valid JSX
  4. React functions are NEVER invoked. A reference to them is passed or they are referenced as JSX

References

Anonymous access not allowed by configuration | AEM

Error:

org.apache.sling.auth.core.impl.SlingAuthenticator getAnonymousResolver: Anonymous access not allowed by configuration - requesting credentials

Resolution:

1. Login to AEM
2. Go to "Config Manager" and find for "Sling Authenticator Service"
3. Add the path in "Authentication Requirments" 
 
http://localhost:4502/system/console/configMgr/org.apache.sling.engine.impl.auth.SlingAuthenticator
Sling Authenticator Service in AEM Config
AEM Sling Authenticator Service


How to schedule a post in Blogger | Blogging Tips

It is very easy to schedule a post in Google Blogger/Blogspot. For this we have to follow the 4 easy steps. 
  1. Create a new post. 
  2. From right hand side options, find the "Published on" option
  3. Select the option "Set date and time". And from calendar select the date and time when you want this post to get published. Below is screenshot for reference.
    Schedule a blog post in blogger
    Schedule a blog post in blogger

  4. And finally click on "Publish" button from top right. After that you could verify schedule time in post section. You may also use the post filter option to see the scheduled posts. Below is the screenshot.
    Scheduled status of a blog post
    Scheduled status of a blog post

    PS: There could be multiple ways to verify whether your post is published on not. You may copy the link and try to browse as enduser, you will experience 404 error. Also in blogger post section on view you will not see the public URL of that post, instead of that it will show you the preview URL.