admin/pages/edit/show/ID throws 404 errors

Silverstripe Version:
4.9

Question:
Hi There,

I have an odd issue (odd for me, I guess there’s a rational answer somewhere)

So my back end works fine for all DataObjects, I can also have the list of Pages and on the local version I can access the editing of the Pages through admin/pages/edit/show/ID_of_a_page

Though for some reason, after everything worked properly on the VPS for weeks, I have an error 404 only for the editing of pages, all the rest works fine. I have many mixed content error, but I guess it comes as the result of the root cause, as the rest of the site doesn’t throw any mixed content error.

So after spending my entire day on it without understanding where the issue could come from, I would like to ask if anyone would have a clue of what is happening?

Details of your query go here

I have these lines first in the Console

​ Function block inside entwine definition does not take $ argument properly
warn @ /_resources/vendor/s…r.js?m=1679783719:1
​ console.trace
warn @ /_resources/vendor/s…r.js?m=1679783719:1
8:1 Failed to load resource: the server responded with a status of 500 (Internal Server Error)
8:1 Failed to load resource: the server responded with a status of 500 (Internal Server Error)

then I have a list of different mixed content errors which don’t appear on any other page, so not sure that it’s the root cause. In any cases, I haven’t find any way to solve this issue.

// Include any relevant code. If you have a lot of code, link to a gist instead.

Often this message comes with a more detailed error message in the network tab of the developer panel. Alternatively, you can check your logs to see if there are any more details about the error there.

Hi Digitweaks,

I seem to have a similar problem getting an 404 error when I try to edit a page.

I checked the Network tab first and noticed a CORS error, but after reading your issue here I checked the Console and found that I get a 404 error (regarding source maps) as well. Here is my console:

Loading failed for the <script> with source “https://test5.mydomain/assets/_tinymce/tinymce-cms-xxxx.js”.
jQuery.Deferred exception: tinymce is not defined create@https://test5.mydomain/_resources/vendor/silverstripe/admin/client/dist/js/bundle.js?m=1687487826:1:221447

the tinymce exists already…

Uncaught exception ReferenceError: tinymce is not defined
    create bundle.js:13727
    init bundle.js:13660
    onadd bundle.js:13832
    o vendor.js:1
    build_addrem_proxy vendor.js:1
    onmatch bundle.js:13837
    <anonymous> vendor.js:1
    881 vendor.js:1
    dispatch vendor.js:1
    handle vendor.js:1
    trigger vendor.js:1
    triggerHandler vendor.js:1
    triggerEvent vendor.js:1
    e vendor.js:1
    check_id vendor.js:1
    c vendor.js:1
    l vendor.js:1
    setTimeout handler*19755/</Deferred/then/a/< vendor.js:1
    u vendor.js:1
    fireWith vendor.js:1
    fire vendor.js:1
    u vendor.js:1
    fireWith vendor.js:1
    ready vendor.js:1
    W vendor.js:1
    19755 vendor.js:1
    19755 vendor.js:1
    19755 vendor.js:1
    o vendor.js:1
    7865 vendor.js:1
    o vendor.js:1
    <anonymous> vendor.js:1
    <anonymous> vendor.js:1
    <anonymous> vendor.js:1
 in onmatch on 
<textarea id="Form_EditForm_Content" class="htmleditor stacked" style="height: 400px;" name="Content" rows="20" cols="20" data-editor="tinyMCE" data-config='{"fix_list_elements":tru…"name":"originalsize"}]}'>
Stack Trace:
create@https://test5.mydomain/_resources/vendor/silverstripe/admin/client/dist/js/bundle.js?m=1687487826:1:221447
init@https://test5.mydomain/_resources/vendor/silverstripe/admin/client/dist/js/bundle.js?m=1687487826:1:220406
onadd@https://test5.mydomain/_resources/vendor/silverstripe/admin/client/dist/js/bundle.js?m=1687487826:1:223581
o@https://test5.mydomain/_resources/vendor/silverstripe/admin/client/dist/js/vendor.js?m=1687487828:1:90547
881/build_addrem_proxy/<@https://test5.mydomain/_resources/vendor/silverstripe/admin/client/dist/js/vendor.js?m=1687487828:1:101987
onmatch@https://test5.mydomain/_resources/vendor/silverstripe/admin/client/dist/js/bundle.js?m=1687487826:1:223660
@https://test5.mydomain/_resources/vendor/silverstripe/admin/client/dist/js/vendor.js?m=1687487828:1:100247
881/<@https://test5.mydomain/_resources/vendor/silverstripe/admin/client/dist/js/vendor.js?m=1687487828:1:101699
dispatch@https://test5.mydomain/_resources/vendor/silverstripe/admin/client/dist/js/vendor.js?m=1687487828:1:897269
19755/</add/m.handle@https://test5.mydomain/_resources/vendor/silverstripe/admin/client/dist/js/vendor.js?m=1687487828:1:895264
trigger@https://test5.mydomain/_resources/vendor/silverstripe/admin/client/dist/js/vendor.js?m=1687487828:1:925968
triggerHandler@https://test5.mydomain/_resources/vendor/silverstripe/admin/client/dist/js/vendor.js?m=1687487828:1:926649
triggerEvent@https://test5.mydomain/_resources/vendor/silverstripe/admin/client/dist/js/vendor.js?m=1687487828:1:93798
this.prototype[e]@https://test5.mydomain/_resources/vendor/silverstripe/admin/client/dist/js/vendor.js?m=1687487828:1:75766
881/changed/this.check_id<@https://test5.mydomain/_resources/vendor/silverstripe/admin/client/dist/js/vendor.js?m=1687487828:1:93947
c@https://test5.mydomain/_resources/vendor/silverstripe/admin/client/dist/js/vendor.js?m=1687487828:1:884231
19755/</Deferred/then/a/</l<@https://test5.mydomain/_resources/vendor/silverstripe/admin/client/dist/js/vendor.js?m=1687487828:1:884533
setTimeout handler*19755/</Deferred/then/a/<@https://test5.mydomain/_resources/vendor/silverstripe/admin/client/dist/js/vendor.js?m=1687487828:1:884742
u@https://test5.mydomain/_resources/vendor/silverstripe/admin/client/dist/js/vendor.js?m=1687487828:1:882513
fireWith@https://test5.mydomain/_resources/vendor/silverstripe/admin/client/dist/js/vendor.js?m=1687487828:1:883261
fire@https://test5.mydomain/_resources/vendor/silverstripe/admin/client/dist/js/vendor.js?m=1687487828:1:883297
u@https://test5.mydomain/_resources/vendor/silverstripe/admin/client/dist/js/vendor.js?m=1687487828:1:882513
fireWith@https://test5.mydomain/_resources/vendor/silverstripe/admin/client/dist/js/vendor.js?m=1687487828:1:883261
ready@https://test5.mydomain/_resources/vendor/silverstripe/admin/client/dist/js/vendor.js?m=1687487828:1:886247
W@https://test5.mydomain/_resources/vendor/silverstripe/admin/client/dist/js/vendor.js?m=1687487828:1:886025
EventListener.handleEvent*19755/<@https://test5.mydomain/_resources/vendor/silverstripe/admin/client/dist/js/vendor.js?m=1687487828:1:886396
19755/<@https://test5.mydomain/_resources/vendor/silverstripe/admin/client/dist/js/vendor.js?m=1687487828:1:853981
19755@https://test5.mydomain/_resources/vendor/silverstripe/admin/client/dist/js/vendor.js?m=1687487828:1:854094
o@https://test5.mydomain/_resources/vendor/silverstripe/admin/client/dist/js/vendor.js?m=1687487828:1:2017367
7865@https://test5.mydomain/_resources/vendor/silverstripe/admin/client/dist/js/vendor.js?m=1687487828:1:719453
o@https://test5.mydomain/_resources/vendor/silverstripe/admin/client/dist/js/vendor.js?m=1687487828:1:2017367
@https://test5.mydomain/_resources/vendor/silverstripe/admin/client/dist/js/vendor.js?m=1687487828:1:2019730
@https://test5.mydomain/_resources/vendor/silverstripe/admin/client/dist/js/vendor.js?m=1687487828:1:2020084
@https://test5.mydomain/_resources/vendor/silverstripe/admin/client/dist/js/vendor.js?m=1687487828:1:2020096
Source map error: Error: request failed with status 404
Resource URL: https://test5.mydomain/_resources/vendor/silverstripe/admin/thirdparty/bootstrap/js/dist/util.js?m=1687487022
Source Map URL: util.js.map

Source map error: Error: request failed with status 404
Resource URL: https://test5.mydomain/_resources/vendor/silverstripe/admin/thirdparty/bootstrap/js/dist/collapse.js?m=1687487021
Source Map URL: collapse.js.map

Source map error: Error: request failed with status 404
Resource URL: https://test5.mydomain/_resources/vendor/silverstripe/admin/thirdparty/bootstrap/js/dist/tooltip.js?m=1687487022
Source Map URL: tooltip.js.map

I have this site running on a different server where I can edit everything fine. I checked and I only get a source map error for .css files.

Did yours look similar to mine?

Did you manage to solve your problem? If so, could you please let me know how?

Thanks

2 posts were split to a new topic: Mixed content errors