dojo require fails - dojo

see this fiddle. This upon running gives an error in console. I'm currently on chrome. Is this a bug?
doing require(["dijit/tree" ] should load .../digit/tree.js but it gives a 404
GET http://ajax.googleapis.com/ajax/libs/dojo/1.7.2/dijit//tree.js 404 (Not Found)
there should be only one / but there are two!

You need to capitalize tree
require(["dijit/Tree"]

Related

Direct nested URL fails with error "Uncaught SyntaxError: Unexpected token '<'" - Create React App/React-router-dom/Netlify

I've got an app created with create-react-app (with react-router-dom) and deployed with Netlify. Whenever I try and route to a page through a direct (nested) URL, such as 'https://jvcparry.com/products/indie', it fails to load a page and gives the errors
Uncaught SyntaxError: Unexpected token '<' main.e3eaf229.chunk.js:1
However when I navigate the deployed version through links, everything loads fine. I also don't get this error when I'm running the app locally, which I guess means it must be something to do with deployment?
I've trawled through all the other posts I can find with this error, and also things to do with Netlify/CRA deployments. I've got a _redirects file with '/* /index.html 200' in it in my /public folder, and I've tried refactoring my routes to use code-splitting but that's made no difference.
My code is on github here: https://github.com/NatClamp/jvcparry
Deployed version is here: https://jvcparry.com/
and if you go to https://jvcparry.com/products/indie you'll see the error I'm getting.
Can anyone shed any light on this? Thanks in advance
A rigid but working solution is to update _redirects file this way:
/*/main.e3eaf229.chunk.js /main.e3eaf229.chunk.js 200
/* /index.html 200
You can also be updating this file every time you build new js bundle during your CICD run

Prestashop Productcomments Module Issue

I am experiencing a problem with the Productcomments module which I am using in a custom module and I cannot figure out how to fix it. The problem is with the star rating in the Productcomments form itself. This form works perfectly in a localhost environment - see images 1 and 2, but not on a live server - see images 3 and 4. On the live server it is showing no stars, just radio buttons, and no delete button for removing the stars.
Form as it looks on WAMP
Code from Chromes Inspect for WAMP
Form as it looks on Live Server
Code from Chromes Inspect for Live Server
Disabling the link to the following 2 js files recreates the problem on the local server which would suggest that the problem lies in the links to these two files on the live server, however I have checked all links to these files and they are correct, as are the permissions for these files.
jquery.rating.pack.js and productcomments.js
Occasionally when I clear cache under Advanced Parameters > Performance I get the following error message:
Fatal error: Uncaught --> Smarty: unable to write file /home/productm/public_html/cache/smarty/compile/10/e2/20/wrt5cbbb0747109d3_91450142
<-- thrown in /home/productm/public_html/tools/smarty/sysplugins/smarty_internal_write_file.php on line 46
This problem applies to all 1.6 versions of Prestashop tested.
Any suggestions on how to fix this problem would be appreciated.
Thanks
Kathleen
The error code you've got from clearing cache is linked to permission problems.
Here's probably a duplicate of your issue: How to fix erorr "Fatal error: Uncaught --> Smarty: unable to write file"?
Check that your prestashop files are set to 644 and folders 755 permission. (not just the js files you've mentioned).
Also if you manually moved the module to your live server(ftp), check the ownership of those files.
Edit:
I'll add this to the answer since the permissions didn't fix your problem.
looks like you have a prestashop bug going on with the JS (Synchronous loaded scripts)
here's a patch to fix that, maybe it fixes your original problem.
https://github.com/PrestaShop/PrestaShop/pull/6749/commits/73fd8dbed9f413a70f7d04fc4badd48f00ca501a

Yiii2 - 500 internal error

someone gave a copy of a project created with yii2 and I had to Execute composer to get all the packages for the project, but I get this error:
This is what I get in the Runtime/app.log file:
[127.0.0.1][-][-][error][yii\web\HttpException:404] yii\web\NotFoundHttpException: Page not found. in C:\xampp\htdocs\prueba-desarrolladores\vendor\yiisoft\yii2\web\Request.php:189
I haven't been able to access the main view of the project. I've been looking at the related post in here, but nothing works I have no idea what to do, thanks for the help.
I had this twice.Firstly I seen my "Network Tab" in Chrome Developer Options and it said:
PHP Notice 'yii\base\ErrorException' with message 'unserialize(): Error at offset 0 of 16105 bytes'
I was delete my cookies with EditThisCookie Chrome extension and solved temporary.Tomorrow day I had this error again and I found the solution in this answer and I delete my project runtime/debug folder and my problem solved.

Prestashop module page not working

i've loaded a backup from an old prestashop 1.4.6.2 website on a subdomain. now i'm experiencing some problems with the module page. whenever i want to expand a module category it refers me to a 404 page. i have error reporting on and only have one error :
Strict Standards: Declaration of jbx_custominvoice::l() should be compatible with ModuleCore::l($string, $specific = false, $id_lang = NULL) in public_html/presta1.4/classes/Module.php(551) : eval()'d code on line 149
I checked if it was just as easy as adding those variables to the function, but that didnt change anything except make the error go away. Also when i look in the console from chrome i see the error:
Uncaught TypeError: $(...).on is not a function
I've looked all over google and prestashop forums but couldnt find a working solution.
I think it can be a firewall to block the access issue

Yet another net::ERR_INCOMPLETE_CHUNKED_ENCODING in chrome

I'm facing the error "net::ERR_INCOMPLETE_CHUNKED_ENCODING" on a specific page only with chrome after I reload it.
When I restart apache it fixes the issue for the first load, if I hit refresh I face the same error again.
Can you help me diagnose this kind of chrome trolling? I tried to remove everything in my .htaccess but I faced the same problem.
i also face this same problem,when i use chrome to run my web.
before the problem is fixed:
1、use $.getJSON('url***',params,callback_function);
and then run my web,the "net::ERR_INCOMPLETE_CHUNKED_ENCODING" is showed.
after a long time trying,when i put one '/' to url,the "net::ERR_INCOMPLETE_CHUNKED_ENCODING" idoesn't show .the problem seems liked be fixed.which is more amazing is that the number the '/' doesn't face the result.the problem is decided by whether '/' exsits in url.
I upgraded php and it fixed the problem.