Coder Social home page Coder Social logo

e-dimensionz / todoyu-php8.x Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 1.0 4.75 MB

Todoyu massive migration to PHP8.x

License: BSD 3-Clause "New" or "Revised" License

Shell 0.01% PHP 64.03% SCSS 3.21% JavaScript 26.82% CSS 0.90% HTML 4.77% Sass 0.26%

todoyu-php8.x's Issues

Broken export of "Stundenblatt"

PHP 8.0 with latest Todoyu-PHP8.x

The export of "Stundenblatt" is broken:
image

clicking "Export" yields the error

99f1c69e0c :: 2024-03-15 16:04:47 - L:3 - U:admin [ext/contact/model/TodoyuContactPerson.class.php:452] :: PHP ERROR: [2] Undefined array key 0

Broken "Stundenblatt"

First let me say thank you for porting todoyu to PHP 8.x.

Then let me be the first to help with error reports:

PHP 8.0 with latest Todoyu-PHP8.x

The listing of the "Stundenblatt" (see screenshot below) yields the following error:

bcc1716661 :: 2024-03-15 16:01:30 - L:3 - U:admin [ext/daytracks/model/TodoyuDaytracksHistoryManager.class.php:210] :: PHP ERROR: [2] Undefined array key "total"

image

regards - Ines

JS Issues - Editing Projects

Working with Todoyu-8 from 2024-01-19 on localhost as a hostname is troublesome with regards to JavaScript things.

Apache 2.4 on Linux with PHP 8.1 as well as 7.4, Firefox 124.0.1.
Also tested in vivaldi:

Vivaldi	6.6.3271.50 (Stable channel) stable (64-bit) 
Revision	4351c8911001bc858e577e90b5d79b6050abb51b
OS	Linux
JavaScript	V8 12.2.281.23

As I suspect, that most have the same reason, I'll start with the most annoying one:

If I try to add a new Project. nothing happens. In fact most interface icons and popup menus are missing or at least not working.
Todoyu PHP-8:
image
Todoyu PHP-7, some older Version from June 2022 or before:
image

From the Browser Console:

InvalidCharacterError: String contains an invalid character [content-script.js:901](moz-extension://d04842b4-1928-4845-be57-8f5fae8a8dc1/content-script.js)
    loadMediaSessionsShim moz-extension://d04842b4-1928-4845-be57-8f5fae8a8dc1/content-script.js:901
    HAS_EXTENDED_CREATE_ELEMENT_SYNTAX https://10.30.1.121/todoyu-8/lib/js/prototype.js:2075
    <anonymous> https://10.30.1.121/todoyu-8/lib/js/prototype.js:2081
    <anonymous> https://10.30.1.121/todoyu-8/lib/js/prototype.js:3435
Uncaught TypeError: $(...) is null
    getActive https://10.30.1.121/todoyu-8/cache/js/74f76fd6a8.Tabs-de_DE.js:305
    getActiveKey https://10.30.1.121/todoyu-8/cache/js/74f76fd6a8.Tabs-de_DE.js:318
    getActiveProjectID https://10.30.1.121/todoyu-8/cache/js/c6feed76b9.ProjectTaskTree-de_DE.js:423
    getProjectID https://10.30.1.121/todoyu-8/cache/js/c6feed76b9.TaskTree-de_DE.js:265
    initSortable https://10.30.1.121/todoyu-8/cache/js/c6feed76b9.TaskTree-de_DE.js:56
    init https://10.30.1.121/todoyu-8/cache/js/c6feed76b9.TaskTree-de_DE.js:45
    <anonymous> https://10.30.1.121/todoyu-8/index.php?ext=project:954
    handleEvent https://10.30.1.121/todoyu-8/lib/js/prototype.js:6648
    createResponderForCustomEvent https://10.30.1.121/todoyu-8/lib/js/prototype.js:6747
    fireEvent_DOM https://10.30.1.121/todoyu-8/lib/js/prototype.js:6607
    fire https://10.30.1.121/todoyu-8/lib/js/prototype.js:6596
    _methodized https://10.30.1.121/todoyu-8/lib/js/prototype.js:456
    fireContentLoadedEvent https://10.30.1.121/todoyu-8/lib/js/prototype.js:6782
    EventListener.handleEvent* https://10.30.1.121/todoyu-8/lib/js/prototype.js:6804
    <anonymous> https://10.30.1.121/todoyu-8/lib/js/prototype.js:6811
[74f76fd6a8.Tabs-de_DE.js:305:10](https://10.30.1.121/todoyu-8/cache/js/74f76fd6a8.Tabs-de_DE.js)
    getActive https://10.30.1.121/todoyu-8/cache/js/74f76fd6a8.Tabs-de_DE.js:305
    getActiveKey https://10.30.1.121/todoyu-8/cache/js/74f76fd6a8.Tabs-de_DE.js:318
    getActiveProjectID https://10.30.1.121/todoyu-8/cache/js/c6feed76b9.ProjectTaskTree-de_DE.js:423
    getProjectID https://10.30.1.121/todoyu-8/cache/js/c6feed76b9.TaskTree-de_DE.js:265
    initSortable https://10.30.1.121/todoyu-8/cache/js/c6feed76b9.TaskTree-de_DE.js:56
    init https://10.30.1.121/todoyu-8/cache/js/c6feed76b9.TaskTree-de_DE.js:45
    <anonymous> https://10.30.1.121/todoyu-8/index.php?ext=project:954
    handleEvent https://10.30.1.121/todoyu-8/lib/js/prototype.js:6648
    createResponderForCustomEvent https://10.30.1.121/todoyu-8/lib/js/prototype.js:6747
    fireEvent_DOM https://10.30.1.121/todoyu-8/lib/js/prototype.js:6607
    fire https://10.30.1.121/todoyu-8/lib/js/prototype.js:6596
    _methodized https://10.30.1.121/todoyu-8/lib/js/prototype.js:456
    fireContentLoadedEvent https://10.30.1.121/todoyu-8/lib/js/prototype.js:6782
    (Async: EventListener.handleEvent)
    <anonymous> https://10.30.1.121/todoyu-8/lib/js/prototype.js:6804
    <anonymous> https://10.30.1.121/todoyu-8/lib/js/prototype.js:6811

The older one for PHP7 works fine.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.