using Ajax in wordpress and receive this error message "NetworkError: 404 Not Found" - wordpress

I am using Ajax in Wordpress and receive this error message "NetworkError: 404 Not Found".
And I have no clue what is going wrong.
EDIT: This is my link: http://www.myfavouritelink.nl/?page=bookmark#
More details: via Firebug console, I could see the correct response. However I still receive this error ""NetworkError: 404 Not Found - http://www.myfavouritelink.nl/wp-content/themes/arthemia/js/ajax/getBookmark.php?id=54&action=edit""

Try changing this line:
url: "/wp-content/themes/arthemia/js/ajax/getBookmark.php"
to this:
url : "bloginfo('wpurl')/wp-content/themes/arthemia/js/ajax/getBookmark.php",

Related

404 Error on WordPress Site index file for Chrome only

A relative asked me to fix some things on their website and I noticed that there was an error on Chrome. The home page would return the following text:
No Results Found
The page you requested could not be found. Try refining your search, or use the navigation above to locate the post.
The rest of the website functions normally, it is only the home page that has this issue. The Developer tools on Chrome return this error:
(index):1 Failed to load resource: the server responded with a status of 404 (Not Found) contentscript.js:73 undefined (index):1 Unchecked runtime.lastError: The message port closed before a response was received. DSC_0943-1274378_74x74.jpg:1 Failed to load resource: the server responded with a status of 404 (Not Found) (index):12 Uncaught DOMException: Failed to read the 'cssRules' property from 'CSSStyleSheet': Cannot access rules
at et_core_page_resource_fallback (http://website.com/:12:154)
at HTMLLinkElement.onload (http://website.com/:54:325) et_core_page_resource_fallback # (index):12 onload # (index):54 (index):1 Failed to load resource: the server responded with a status of 404 (Not Found)
I have already saved permalinks and modified the .htaccess file and I am genuinely at a loss. Does anyone have an idea?

Wordpress - Plugin H5P - Error 403 when I click on get to install an activity, I get the 403 error message

I get a 403 error with the plugin H5P when I click to install activities.
I deleted every other plugins
I suppressed htaccess
The button still doesn't work. The plugin is unusable.
Error in the console :
Failed to load resource: the server responded with a status of 403 ()
When I click on it, I get this message :
{"success":false,"message":"Un message est nécessaire pour accéder au point de terminaison donné","errorCode":"REQUIRES_POST"}
(In english : A message is necessary to get to the given termination point)
Error I get when I click on "Installer"
Also, it's a subsite but I don't see why it could make problems since I used the same plugin on another website without any problems.
If you have any idea how to solve this, it would be very appreciated.

Woocommerce checkout page keeps loading only on HTTPS, but fine on HTTP

I'm getting this error when on https://www.website.com the page loads but the checkout and order summary wheel keeps spinning none stop, I used google chrome to inspect and I got this
JQMIGRATE: Migrate is installed, version 1.4.1
checkout.min.js:1 Uncaught TypeError: Cannot read property 'toString' of undefined
at update_checkout_action (checkout.min.js:1)
user-avatar-pic.php Failed to load resource: the server responded with a status of 403 ()
user-avatar-pic.php Failed to load resource: the server responded with a status of 403 ()
now if I removed the s from HTTPs and went to http://www.website.com then the check works fine and this error doesn't get generated
did anyone face this before? I kinda don't know where to start to debug this

Difference between messages : 'server returning 404' AND 'No route found for GET /routeName

windows 8. symfony 2.7 installed with default settings on d:\htdocs\sym\again\blog\
With apache, running the URL: http://localhost/sym/again/blog/web/hello , returns the following error:
Oops! An Error Occurred
The server returned a "404 Not Found".
Something is broken. Please let us know what you were doing when this error...
INFO: The above error is different from regular apache 404 'object not found' message. for http://localhost/NonExistingPage
With the built in PHP server php app/console server:run,
running the URL http://localhost:8000/NonExistingRoute returns
No route found for "GET /NonExistingRoute" 404 Not Found - NotFoundHttpException 1 linked Exception: ResourceNotFoundException »
while running the URL http://localhost:8000/hello, returns the actual page.
Question: What is the different between the errors ? My understanding:
the regular apache error is simply when a file is requested that is not found by apache
The 'Oops! An Error Occurred The server returned a "404 Not Found". Something is broken' is what is confusing me, I don't understand why/how it is different from the route not found errors.
the route not found means that it reached symfony but did not find any route matching /NonExistingRoute in the routes file.
Another Strange thing:
if routing.yml is changed to:
offtopic_books_homepage:
path: /sym/again/blog/web/hello
defaults: { _controller: OfftopicBooksBundle:Default:index }
then
http://localhost:8000/sym/again/blog/web/hello - returns the expected page. (with app/console running)
Whereas
http://localhost/sym/again/blog/web/hello - gives the following error:
Oops! An Error Occurred
The server returned a "404 Not Found".
Why ?
In this case please reset cache for prod env:
php app/console c:c -e prod
Note:
Please use dev env and app_dev.php for development, not production environment.

How to solve Silverstripe User error Uncaught InvalidArgumentException?

I am getting error message in silverstripe
[User Error] Uncaught InvalidArgumentException: Unable to parse string: Malformed inline YAML string ({count} {class} saved successfully.).
I have added screenshot of error page.
Thanks guys for your reply. it was a YAML parser error. There was a bug in the 'gridfield-bulk-editing-tools' module, I got a help from silverstripe forum

Resources