Bug #79592

JavaScript-Error in Extension-Manager

Added by David Bruchmann almost 3 years ago. Updated almost 3 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Extension Manager
Target version:
-
Start date:
2017-02-02
Due date:
% Done:

0%

TYPO3 Version:
7
PHP Version:
5.6
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

Description

In the extension-manager on the updtae-tab I get the following message shown:

Update Extension List
parsererror(SyntaxError: Unexpected token < in JSON at position 0): <script type="text/javascript">
/*<![CDATA[*/
    (function debug() {
        var message = '\u003Cstyle\u0020type=\u0027text\/css\u0027\u003E\u000A\u0009\u0009\u0009\u0009\u0009.extbase-debugger-tree{position:relative}\u000A\u0009\u0009\u0009\u0009\u0009.extbase-debugger-tree\u0020input{position:absolute\u0020\u0021important;float:\u0020none\u0020\u0021important;top:0;left:0;height:14px;width:14px;margin:0\u0020\u0021important;cursor:pointer;opacity:0;z-index:2}\u000A\u0009\u0009\u0009\u0009\u0009.extbase-debugger-tree\u0020input~.extbase-debug-content{display:none}\u000A\u0009\u0009\u0009\u0009\u0009.extbase-debugger-tree\u0020.extbase-debug-header:before{position:relative;top:3px;content:\u0022\u0022;padding:0;line-height:10px;height:12px;width:12px;text-align:center;margin:0\u00203px\u00200\u00200;background-image:url(data:image\/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz48c3ZnIHZlcnNpb249IjEuMSIgaWQ9IkViZW5lXzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4IiB2aWV3Qm94PSIwIDAgMTIgMTIiIHN0eWxlPSJlbmFibGUtYmFja2dyb3VuZDpuZXcgMCAwIDEyIDEyOyIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSI+PHN0eWxlIHR5cGU9InRleHQvY3NzIj4uc3Qwe2ZpbGw6Izg4ODg4ODt9PC9zdHlsZT48cGF0aCBpZD0iQm9yZGVyIiBjbGFzcz0ic3QwIiBkPSJNMTEsMTFIMFYwaDExVjExeiBNMTAsMUgxdjloOVYxeiIvPjxnIGlkPSJJbm5lciI+PHJlY3QgeD0iMiIgeT0iNSIgY2xhc3M9InN0MCIgd2lkdGg9IjciIGhlaWdodD0iMSIvPjxyZWN0IHg9IjUiIHk9IjIiIGNsYXNzPSJzdDAiIHdpZHRoPSIxIiBoZWlnaHQ9IjciLz48L2c+PC9zdmc+);display:inline-block}\u000A\u0009\u0009\u0009\u0009\u0009.extbase-debugger-tree\u0020input:checked~.extbase-debug-content{display:inline}\u000A\u0009\u0009\u0009\u0009\u0009.extbase-debugger-tree\u0020input:checked~.extbase-debug-header:before{background-image:url(data:image\/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz48c3ZnIHZlcnNpb249IjEuMSIgaWQ9IkViZW5lXzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4IiB2aWV3Qm94PSIwIDAgMTIgMTIiIHN0eWxlPSJlbmFibGUtYmFja2dyb3VuZDpuZXcgMCAwIDEyIDEyOyIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSI+PHN0eWxlIHR5cGU9InRleHQvY3NzIj4uc3Qwe2ZpbGw6Izg4ODg4ODt9PC9zdHlsZT48cGF0aCBpZD0iQm9yZGVyIiBjbGFzcz0ic3QwIiBkPSJNMTEsMTFIMFYwaDExVjExeiBNMTAsMUgxdjloOVYxeiIvPjxnIGlkPSJJbm5lciI+PHJlY3QgeD0iMiIgeT0iNSIgY2xhc3M9InN0MCIgd2lkdGg9IjciIGhlaWdodD0iMSIvPjwvZz48L3N2Zz4=)}\u000A\u0009\u0009\u0009\u0009\u0009.extbase-debugger{display:block;text-align:left;background:#2a2a2a;border:1px\u0020solid\u0020#2a2a2a;box-shadow:0\u00203px\u00200\u0020rgba(0,0,0,.5);color:#000;margin:20px;overflow:hidden;border-radius:4px}\u000A\u0009\u0009\u0009\u0009\u0009.extbase-debugger-floating{position:relative;z-index:999}\u000A\u0009\u0009\u0009\u0009\u0009.extbase-debugger-top{background:#444;font-size:12px;font-family:monospace;color:#f1f1f1;padding:6px\u002015px}\u000A\u0009\u0009\u0009\u0009\u0009.extbase-debugger-center{padding:0\u002015px;margin:15px\u00200;background-image:repeating-linear-gradient(to\u0020bottom,transparent\u00200,transparent\u002020px,#252525\u002020px,#252525\u002040px)}\u000A\u0009\u0009\u0009\u0009\u0009.extbase-debugger-center,.extbase-debugger-center\u0020.extbase-debug-string,.extbase-debugger-center\u0020a,.extbase-debugger-center\u0020p,.extbase-debugger-center\u0020pre,.extbase-debugger-center\u0020strong{font-size:12px;font-weight:400;font-family:monospace;line-height:20px;color:#f1f1f1}\u000A\u0009\u0009\u0009\u0009\u0009.extbase-debugger-center\u0020pre{background-color:transparent;margin:0;padding:0;border:0;word-wrap:break-word;color:#999}\u000A\u0009\u0009\u0009\u0009\u0009.extbase-debugger-center\u0020.extbase-debug-string{color:#ce9178;white-space:normal}\u000A\u0009\u0009\u0009\u0009\u0009.extbase-debugger-center\u0020.extbase-debug-type{color:#569CD6;padding-right:4px}\u000A\u0009\u0009\u0009\u0009\u0009.extbase-debugger-center\u0020.extbase-debug-unregistered{background-color:#dce1e8}\u000A\u0009\u0009\u0009\u0009\u0009.extbase-debugger-center\u0020.extbase-debug-filtered,.extbase-debugger-center\u0020.extbase-debug-proxy,.extbase-debugger-center\u0020.extbase-debug-ptype,.extbase-debugger-center\u0020.extbase-debug-scope{color:#fff;font-size:10px;line-height:12px;padding:2px\u00204px;margin-right:2px;position:relative;top:-1px}\u000A\u0009\u0009\u0009\u0009\u0009.extbase-debugger-center\u0020.extbase-debug-scope{background-color:#497AA2}\u000A\u0009\u0009\u0009\u0009\u0009.extbase-debugger-center\u0020.extbase-debug-ptype{background-color:#698747}\u000A\u0009\u0009\u0009\u0009\u0009.extbase-debugger-center\u0020.extbase-debug-dirty{background-color:#FFFFB6}\u000A\u0009\u0009\u0009\u0009\u0009.extbase-debugger-center\u0020.extbase-debug-filtered{background-color:#4F4F4F}\u000A\u0009\u0009\u0009\u0009\u0009.extbase-debugger-center\u0020.extbase-debug-seeabove{text-decoration:none;font-style:italic}\u000A\u0009\u0009\u0009\u0009\u0009.extbase-debugger-center\u0020.extbase-debug-property{color:#f1f1f1}\u000A\u0009\u0009\u0009\u0009\u003C\/style\u003E\u000A\u0009\u0009\u0009\u0009\u003Cdiv\u0020class=\u0022extbase-debugger\u0020extbase-debugger-inline\u0022\u003E\u000A\u0009\u0009\u0009\u0009\u003Cdiv\u0020class=\u0022extbase-debugger-top\u0022\u003E\u003C\/div\u003E\u000A\u0009\u0009\u0009\u0009\u003Cdiv\u0020class=\u0022extbase-debugger-center\u0022\u003E\u000A\u0009\u0009\u0009\u0009\u0009\u003Cpre\u0020dir=\u0022ltr\u0022\u003E\u0027\u003Cspan\u0020class=\u0022extbase-debug-string\u0022\u003EUsage\u0020of\u0020client\u0020related\u0020conditions\u0020(browser,\u0020device,\u0020version,\u0020system,\u0020userag\u003Cbr\u0020\/\u003E\u0026nbsp;\u0026nbsp;\u0026nbsp;ent)\u0020is\u0020deprecated\u0020since\u00207.0.\u003C\/span\u003E\u0027\u0020(105\u0020chars)\u003C\/pre\u003E\u000A\u0009\u0009\u0009\u0009\u003C\/div\u003E\u000A\u0009\u0009\u0009\u003C\/div\u003E',
            messagePlain = '\u000A\u0022Usage\u0020of\u0020client\u0020related\u0020conditions\u0020(browser,\u0020device,\u0020version,\u0020system,\u0020userag\u000A\u0020\u0020\u0020ent)\u0020is\u0020deprecated\u0020since\u00207.0.\u0022\u0020(105\u0020chars)',
            header = '02-02-17\u002007:24:\u0020',
            group = 'Deprecation\u0020Log';
        if (top.TYPO3 && top.TYPO3.DebugConsole) {
            top.TYPO3.DebugConsole.add(message, header, group);
        } else {
            var consoleMessage = [group, header, messagePlain].join(" | ");
            if (typeof console === "object" && typeof console.log === "function") {
                console.log(consoleMessage);
            }
        };
    })();

/*]]>*/
</script><br />
<b>Fatal error</b>:  Call to a member function getUid() on

In the bottom the message seems being cropped, but that seems being the important part.
Server-logs are not accessible.
The update of the extensions is not done.
This happens in several sessions and browsers.

In the module System->Log the following message is shown:

Core: Exception handler (WEB): Uncaught TYPO3 Exception: #1417988921: The CSRF protection token for the requested module is missing or invalid | TYPO3\CMS\Core\Exception thrown in file /.../typo3/sysext/backend/Classes/Http/BackendModuleRequestHandler.php in line 82. Requested URL: http://.../typo3/index.php?M=tools_ExtensionmanagerExtensionmanag%E2%80%A6er_tools_extensionmanagerextensionmanager%5Bformat%5D=json&_=1486015893952

History

#1 Updated by Georg Ringer almost 3 years ago

  • Status changed from New to Needs Feedback

turn of the the deprecation or debugging and try again. the message is about deprecated condition or similiar

#2 Updated by David Bruchmann almost 3 years ago

I turned on the debug-messages for being able to post here at least something respectively discovering something perhaps.

The error was shown after an upgrade and in this form shown when the extension-table is faultily not present in the database.
I still got another message shown after the the table did exist in the database but never documented it and probably it was a cache-issue.
Finally I got it working and I suppose the bug was sitting in front of the pc. So this bug-report can be closed.

#3 Updated by Riccardo De Contardi almost 3 years ago

  • Status changed from Needs Feedback to Closed

Hi, thank you for your findings and quick response. Have a nice day!

Also available in: Atom PDF