NuEngine Technologies
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Quick Heal gives this warningyes it is suspicious and spreading malware, it is not including JS file, but it is calling PHP script on other site.
That script is also stealing your cookies.
Forum: Installing WordPress
In reply to: blank screen wordpress wp-admin/install.php?language=en_USAsk your host to increase PHP memory limit, It is a PHP setting.
67108864 Bytes is just 67MB so setting up memory limit to anything more than 100M will do.
Forum: Fixing WordPress
In reply to: Can′t access wp-admin after move to another hostThanks, Yes there is a whitespace and newline.
I sent a pull request, https://github.com/WordPress/WordPress/pull/233
Hopefully it will be accepted.
For time being, you cam make this changes in your file.
Forum: Fixing WordPress
In reply to: Can′t access wp-admin after move to another hostWhich WordPress version; Which PHP version installed on the server?
Forum: Hacks
In reply to: WordPress admin_post not workingUse admin_post while submitting a form in wp-admin area;
admin_post_*
works well when user is logged in and has admin access,admin_post_nopriv_*
is for guest users.But when you want to submit form in front end (for logged or non logged in users)
You should use
wp_ajax_*
andwp_ajax_nopriv_*
hooks, It works exactly same asadmin_post
.You will also need to change your form action to
admin_url('admin-ajax.php')
which is/wp-admin/admin-ajax.php
wp_ajax is used for ajax form submission but you can also use it for normal form submissions.While doing normal form submission please also remember to redirect page at the end of your function. Avoid using PHP
header
function usewp_redirect
instead.Forum: Fixing WordPress
In reply to: admin_post.php not working only when logged in and not adminPlease use admin_post while submitting a form in wp-admin area;
admin_post_*
works well when user is logged in and has admin access,admin_post_nopriv_*
is for guest users.But when you want to submit form in front end (for logged or non logged in users)
You should use
wp_ajax_*
andwp_ajax_nopriv_*
hooks, It works exactly same asadmin_post
.You will also need to change your form action to
admin_url('admin-ajax.php')
; wp_ajax is used for ajax form submission but you can also use it for normal form submissions.While doing normal form submission please also remember to redirect page with
wp_redirect
at the end of your function.