Jump to content

tinymce.inc.js NOT LOADING - ERR_ABORTED 403 (Forbidden)


Tomas Contos

Recommended Posts

Hello,

I have problem in PrestaShop 1.6.1.23 backend .

For example when I am accessing Product in console I get error index.php?controller=AdminProducts&id_product=23&updateproduct&token=2fd931cedeab5c70b7ccc75cc03ea1a9:115 GET xxxxxxxxxxx/js/admin/tinymce.inc.js net::ERR_ABBORTED 403 (Frobidden)

I try access file through browser but I get same error Access Forbidden. I can access this way other files in directory no problem.

777 permission is set up for file and folder

As a result of this Not all product information are loading for BE view, but they are in database alright. The same <textfields> are not formatted.

This is happening everywhere tinyMCE need to be loaded. It seems to me that this is SERVER restriction but provider told me it is not.

After above error, other scripts have problem because configuration for tinyMCE is not loaded

See console below : /* xxxxxxxxxxxxxxxxxxxxxxx = hidding my address */

GET https://xxxxxxxxxxxxxxxxxxxxxxx/js/admin/tinymce.inc.js net::ERR_ABORTED 403 (Forbidden)
index.php?controller=AdminProducts&id_product=23&updateproduct&token=2fd931cedeab5c70b7ccc75cc03ea1a9:1772 Uncaught ReferenceError: tinySetup is not defined
    at index.php?controller=AdminProducts&id_product=23&updateproduct&token=2fd931cedeab5c70b7ccc75cc03ea1a9:1772
    at ProductTabsManager.onLoad (products.js:84)
    at HTMLDocument.<anonymous> (index.php?controller=AdminProducts&id_product=23&updateproduct&token=2fd931cedeab5c70b7ccc75cc03ea1a9:1771)
    at j (jquery-1.11.0.min.js:2)
    at Object.fireWith [as resolveWith] (jquery-1.11.0.min.js:2)
    at Function.ready (jquery-1.11.0.min.js:2)
    at HTMLDocument.K (jquery-1.11.0.min.js:2)
(anonymous) @ index.php?controller=AdminProducts&id_product=23&updateproduct&token=2fd931cedeab5c70b7ccc75cc03ea1a9:1772
ProductTabsManager.onLoad @ products.js:84
(anonymous) @ index.php?controller=AdminProducts&id_product=23&updateproduct&token=2fd931cedeab5c70b7ccc75cc03ea1a9:1771
j @ jquery-1.11.0.min.js:2
fireWith @ jquery-1.11.0.min.js:2
ready @ jquery-1.11.0.min.js:2
K @ jquery-1.11.0.min.js:2
admin.js:12 Uncaught ReferenceError: tinySetup is not defined
    at initTiny (admin.js:12)
    at HTMLDivElement.<anonymous> (admin.js:3)
    at HTMLDivElement.dispatch (jquery-1.11.0.min.js:3)
    at HTMLDivElement.r.handle (jquery-1.11.0.min.js:3)
    at Object.trigger (jquery-1.11.0.min.js:3)
    at Object.e.event.trigger (jquery-migrate-1.2.1.min.js:2)
    at HTMLDivElement.<anonymous> (jquery-1.11.0.min.js:3)
    at Function.each (jquery-1.11.0.min.js:2)
    at e.fn.init.each (jquery-1.11.0.min.js:2)
    at e.fn.init.trigger (jquery-1.11.0.min.js:3)
initTiny @ admin.js:12
(anonymous) @ admin.js:3
dispatch @ jquery-1.11.0.min.js:3
r.handle @ jquery-1.11.0.min.js:3
trigger @ jquery-1.11.0.min.js:3
e.event.trigger @ jquery-migrate-1.2.1.min.js:2
(anonymous) @ jquery-1.11.0.min.js:3
each @ jquery-1.11.0.min.js:2
each @ jquery-1.11.0.min.js:2
trigger @ jquery-1.11.0.min.js:3
success @ products.js:129
j @ jquery-1.11.0.min.js:2
fireWith @ jquery-1.11.0.min.js:2
x @ jquery-1.11.0.min.js:4
b @ jquery-1.11.0.min.js:4
XMLHttpRequest.send (async)
send @ jquery-1.11.0.min.js:4
ajax @ jquery-1.11.0.min.js:4
ProductTabsManager.display @ products.js:111
ProductTabsManager.displayBulk @ products.js:155
(anonymous) @ products.js:196
setTimeout (async)
ProductTabsManager.displayBulk @ products.js:193
(anonymous) @ products.js:196
setTimeout (async)
ProductTabsManager.displayBulk @ products.js:193
(anonymous) @ products.js:196
setTimeout (async)
ProductTabsManager.displayBulk @ products.js:193
(anonymous) @ products.js:196
setTimeout (async)
ProductTabsManager.displayBulk @ products.js:193
(anonymous) @ products.js:196
setTimeout (async)
ProductTabsManager.displayBulk @ products.js:193
(anonymous) @ products.js:196
setTimeout (async)
ProductTabsManager.displayBulk @ products.js:193
(anonymous) @ products.js:196
setTimeout (async)
ProductTabsManager.displayBulk @ products.js:193
(anonymous) @ products.js:196
setTimeout (async)
ProductTabsManager.displayBulk @ products.js:193
(anonymous) @ products.js:196
setTimeout (async)
ProductTabsManager.displayBulk @ products.js:193
(anonymous) @ products.js:196
setTimeout (async)
ProductTabsManager.displayBulk @ products.js:193
(anonymous) @ products.js:196
setTimeout (async)
ProductTabsManager.displayBulk @ products.js:193
(anonymous) @ products.js:196
setTimeout (async)
ProductTabsManager.displayBulk @ products.js:193
(anonymous) @ index.php?controller=AdminProducts&id_product=23&updateproduct&token=2fd931cedeab5c70b7ccc75cc03ea1a9:1182
dispatch @ jquery-1.11.0.min.js:3
r.handle @ jquery-1.11.0.min.js:3
load (async)
add @ jquery-1.11.0.min.js:3
e.event.add @ jquery-migrate-1.2.1.min.js:2
(anonymous) @ jquery-1.11.0.min.js:3
each @ jquery-1.11.0.min.js:2
each @ jquery-1.11.0.min.js:2
on @ jquery-1.11.0.min.js:3
(anonymous) @ bootstrap.min.js:6
(anonymous) @ bootstrap.min.js:6


Any ideas ? Much appreciated

Link to comment
Share on other sites

  • 2 weeks later...

Hi. I had the problem of "Uncaught ReferenceError: tinySetup is not defined" error.

I solved it by this way: 

1) Download all Prestahop 1.6.1.23 files from https://www.prestashop.com/en/previous-versions?version=1.6
2) Open the ZIP files and extract: /js/admin/tinymce.inc.js
3) Use FTP and replace the same file in your Prestahop installation.

In my case, the file installed was different to the file I downloaded. I don't know wy Prestashop changed it during the installation (!).

 

Link to comment
Share on other sites

1 hour ago, Alvaro Tarela said:

Hi. I had the problem of "Uncaught ReferenceError: tinySetup is not defined" error.

I solved it by this way: 

1) Download all Prestahop 1.6.1.23 files from https://www.prestashop.com/en/previous-versions?version=1.6
2) Open the ZIP files and extract: /js/admin/tinymce.inc.js
3) Use FTP and replace the same file in your Prestahop installation.

In my case, the file installed was different to the file I downloaded. I don't know wy Prestashop changed it during the installation (!).

 

Hi Alvaro,

 

Thank you for coming back. This did not solve problem in my case.

Link to comment
Share on other sites

Hi all,

Solution working in my environment.

1. Make duplicate of /js/admin/tinymce.inc.js into same folder and use different name, for example tinymceconf.js

2. Go through whole your code and search for tinymce.inc.js. Replace all occurence by new name tinymceconf.js

This work for me. Tested on 2 sites.

Link to comment
Share on other sites

I'm sorry.

Have you try to look for mod_security  PHP extension? It could cause the :ERR_ABBORTED 403 (Frobidden) error.
Some times, this securiry extension blocks certain types of files because they could be dangeorus.
You could try to set mod_security to OFF and try again. (YOu need access to PHP.INI configuration file in the server, of course)

 

Link to comment
Share on other sites

  • 2 weeks later...
On 4/2/2019 at 2:09 PM, Alvaro Tarela said:

Could you explain your solution?  
Are you only renaming the file to tinymceconf.js ?
And how the file is loaded?

So, the problem could be the ".inc" extension?

problem is tinyMCE can not access tinymce.inc.js due some restriction. There is no server restriction for the file, file was set to 777 but problem still persisted. I can not access the same file even I was viewing file through browser. I was able see other files in the same folder folder using browser.

The file is used to configure tinyMCE. So you can rename it to whatever name then access is allowed to copy. I left it in the same folder. Then I search through whole prestashop code to find all occurrence of tinymce.inc.js and change it to new name of file we created at the beginning / renamed copy of tinymce.inc.js / This way all scripts look for configuration in new file.

I had not experience issues since changes made.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...