How to fix the 404 error in Strapi routes pages? - strapi

I am using the Strapi v3.0.0-beta.18.7 when I am trying to open the routes pages with the json, I see 404 error.
I had this error previously.
I solved it just started the new empty project and copied the /config, /api, /components directories in the
new project. But after some time it starts to show 404 again.
Starting a new project each time when Strapi through 404 error doesn't sound like a good solution.
Does anyone have an idea why does this error occur and how to fix or prevent it?

Related

Uncaught SyntaxError: Unexpected token '<' in app.js in Gcloud

I'm very new to Gcloud after 4 attempts I deployed local Laravel + Vue Project to Gcloud. It worked fine in local env, but the app showing blank page after deployment and the console showing below error message.
Uncaught SyntaxError: Unexpected token '<' app.js.
Even the resource files also not visible.
App link: https://fluted-vehicle-277421.el.r.appspot.com/
Can anyone suggest what went wrong?
This error typically gets thrown when in js file you have put html.
Try checking if you have html inside js file and remove it.
Regarding the error you mentioned in your post, as you can see here, this error is most likely the result of a 404 page or a redirect to a page that serves regular html instead of the JavaScript files.
On the other hand, I am not sure if you deployed a new version but currently, the error I see if I go to your site is "There is no existing directory at "C:\xampp\htdocs\LMS_project\storage\logs" and its not buildable: Permission denie". So, as I can see these errors are because you are not change correctly the paths in your app. You need to ensure the right paths in order to avoid this errors.

500 Internal Server Error when logging into Magento front end?

This used to work fine but we've just moved the site from the development area to httpdocs. I've changed all relevant MySQL entries and file paths, but still we're having this error.
In the Apache error log, This is the corresponding error:
client denied by server configuration: /var/www/vhosts/website.com/httpdocs/var/www/vhosts...
It looks like it is getting the wrong path somehow, as the /var/www/vhosts is repeating.
I did try using powergrep to locate where the path is getting set, but it didn't return any results.
Is there a setting which I can specify the exact path?
First of all, check your PHP log, it will give you a detailed info about this error.
Have you checked your permissions?
The folders var and media must be writtable.
And also, could you see correctly the homepage, categories and the error only appears when you log in?
Best regards.

Strange error showing up in laravel logs

I have a site built with Laravel 5.2, and everything is running smoothly, but I keep seeing this in my logs:
'ErrorException' with message 'Route [baldeaglecontracting.home] not
defined
The way I have my routes configure, this means someone is trying to hit a baldeaglecontracting subdomain on my site like baldeaglecontracting.mydomain.com
What I can't figure out is, why would someone be trying to hit this same subdomian on my site over and over again?

Deploying laravel app on Fortrabbit - 403 internal server serror

I followed the setup to deploy laravel app on fortrabbit but now I am stuck with this error:
Error 403
Internal server error
Overload: More requests than the App can handle.
A script stops with an error. Are your config files up to date? Maybe turn on debugging to trace the error.
There is an error in the .htaccess file.
Something else. Please check the fortrabbit status.
I have checked the configurations but I keep find a cause for that or even a solution for this issue.
That's not really a good question to post her on StackOverflow. It's too specific - probably App- or even service-related. For such cases: please try customer support.

Manage category is not saving

i have a problem with the manage categories. When i tries to change the already created category "Name" then it cant changes and not saved into the database and gives me the below error in the console.
"NetworkError: 403 Forbidden - http://www.test.com/index.php/admin/catalog_category/save/key/9487ff918e8f40544635df5359718b53/id/41/?isAjax=true" But, when i create the new category then it is saved and does not created the above error. The Problem is arise when i edit the old categories already created.
when i have seen in the console POST?Ajax=true the response gives as belowin the form of javascript parent.updateContent("http://www.test.com/index.php/admin/catalog_category/edit/id/41/key/f437a3f3555a03e0f9f7750af5b4fb6c/", {}, true);
It returns the null value as response.
Please, help me.....
It might be your mod_security causing the 403 errors.
Try adding the following at the top of your .htaccess file in your Magento root directory:
SecFilterEngine Off
SecFilterScanPOST Off
If that doesn't work, it would be easier to determine the exact cause my examining your apache error logs. The logs will give you more insight into why you are receiving 403 errors.

Resources