Authorization required when click on pageNext/pagePrev

Posted in: Newspaper
Post count: 3

Hello,
When I click on “PageNext/PagePrev” or “Load More” buttons in homepage blocks I see the Authorization Required window.
I think this request appears due to the fact that the access to “\wp-admin” folder is restricted by .htaccess file.
How can I fix this problem?

Post count: 9544

Not normal to restrict access to wp-admin from your .htaccess unless you’re in a test setup and are using something like limited access to one IP for testing.

Likely you need to fix your .htaccess file setup. The theme doesn’t manage that or change it.

Post count: 3

Chris S, thank you for your reply!
I’ve founded the similar issue in this topic: https://forum.tagdiv.com/topic/a-list-with-problems-i-have-with-newsmag/ but it applies to admin-ajax.php file in Newsmag theme.
May be somebody know what php-file does implement ajax-pagination functions in Newspaper theme?

Post count: 6600

Hi,

Both next/prev pagination or load more pagination work using ajax and make requests to the admin-ajax.php file. Try the rule provide in the tread you found to allow access to the admin ajax file. This doesn’t need to be different for newspaper theme.

# Allow access to wp-admin/admin-ajax.php
<Files admin-ajax.php>
Order allow,deny
Allow from all
Satisfy any
</Files>

Thanks

Post count: 3

Hi, Lucian.
I tried to add this rule but it had no effect. Authorization window has disappeared but the pagination script still doesn’t work.
After all I have solved the problem by disabling restriction for /wp-admin folder.
Thank you.

Viewing 5 posts - 1 through 5 (of 5 total)
The forum ‘Newspaper’ is closed to new topics and replies.