Fatal errors when applying "Random Header Images" profile since 20.x
- Status
- Open
- Subject
- Fatal errors when applying "Random Header Images" profile since 20.x
- Version
- 20.x
21.x - Category
- Regression
- Feature
- File Gallery (elFinder or standard UI)
- Resolution status
- New
- Submitted by
- Xavier de Pedro
- Lastmod by
- Xavier de Pedro
- Rating
- Description
There are Fatal errors when applying "Random Header Images" profile in 20.x (using with php 7.2, in case it matters). However, in 19.x on the same machine it worked as usual with no errors.
Error message in apache:
Copy to clipboard[Sat Aug 17 17:46:56.382532 2019] [php7:notice] [pid 19032] [client ::1:44448] PHP Fatal error: Uncaught ArgumentCountError: Too few arguments to function Services_Tracker_Utilities::cloneItem(), 2 passed in /opt/html/20.x/lib/core/Services/Tracker/Controller.php on line 1479 and exactly 3 expected in /opt/html/20.x/lib/core/Services/Tracker/Utilities.php:585\nStack trace:\n#0 /opt/html/20.x/lib/core/Services/Tracker/Controller.php(1479): Services_Tracker_Utilities->cloneItem(Object(Tracker_Definition), Array)\n#1 /opt/html/20.x/lib/core/Services/Broker.php(108): Services_Tracker_Controller->action_link_items(Object(JitFilter))\n#2 /opt/html/20.x/lib/core/Services/Broker.php(28): Services_Broker->attemptProcess('tracker', 'link_items', Object(JitFilter))\n#3 /opt/html/20.x/tiki-ajax_services.php(51): Services_Broker->process('tracker', 'link_items', Object(JitFilter))\n#4 {main}\n thrown in /opt/html/20.x/lib/core/Services/Tracker/Utilities.php on line 585, referer: http://localhost/20.x/tiki-index.php?page=HomePage [Sat Aug 17 17:47:08.779477 2019] [php7:notice] [pid 18804] [client ::1:44460] PHP Fatal error: Uncaught ArgumentCountError: Too few arguments to function Services_Tracker_Utilities::cloneItem(), 2 passed in /opt/html/20.x/lib/core/Services/Tracker/Controller.php on line 1479 and exactly 3 expected in /opt/html/20.x/lib/core/Services/Tracker/Utilities.php:585\nStack trace:\n#0 /opt/html/20.x/lib/core/Services/Tracker/Controller.php(1479): Services_Tracker_Utilities->cloneItem(Object(Tracker_Definition), Array)\n#1 /opt/html/20.x/lib/core/Services/Broker.php(108): Services_Tracker_Controller->action_link_items(Object(JitFilter))\n#2 /opt/html/20.x/lib/core/Services/Broker.php(28): Services_Broker->attemptProcess('tracker', 'link_items', Object(JitFilter))\n#3 /opt/html/20.x/tiki-ajax_services.php(51): Services_Broker->process('tracker', 'link_items', Object(JitFilter))\n#4 {main}\n thrown in /opt/html/20.x/lib/core/Services/Tracker/Utilities.php on line 585, referer: http://localhost/20.x/tiki-index.php?page=HomePage [Sat Aug 17 17:52:25.749435 2019] [php7:notice] [pid 18795] [client ::1:45656] PHP Fatal error: Uncaught Error: Cannot use string offset as an array in /opt/html/20.x/lib/metadata/datatypes/exif.php:776\nStack trace:\n#0 /opt/html/20.x/lib/metadata/filetypes/jpeg.php(53): Exif->processRawData(Array)\n#1 /opt/html/20.x/lib/metadata/metadatalib.php(125): Jpeg->getExtendedData(Object(FileMetadata))\n#2 /opt/html/20.x/lib/filegals/filegallib.php(3857): FileMetadata->getMetadata('/tmp/wiki_MARur...', true, true)\n#3 /opt/html/20.x/lib/core/Tiki/FileGallery/Manipulator/MetadataExtractor.php(21): FileGalLib->extractMetadataJson('/tmp/wiki_MARur...')\n#4 /opt/html/20.x/lib/core/Tiki/FileGallery/File.php(215): Tiki\\FileGallery\\Manipulator\\MetadataExtractor->run(Array)\n#5 /opt/html/20.x/lib/filegals/filegallib.php(3321): Tiki\\FileGallery\\File->replace('\\xFF\\xD8\\xFF\\xE0\\x00\\x10JFIF\\x00\\x01\\x01\\x01\\x00...', 'image/jpeg', '2010_Barcelona_...', '2010_Barcelona_...', NULL, NULL)\n#6 /opt/html/20.x/lib/core/Tiki/Profile/InstallHandler/FileGallery.php(191): FileGalLib->upload_single_file(Array, '2010_Barcelona_...', 79046, 'im in /opt/html/20.x/lib/metadata/datatypes/exif.php on line 776, referer: http://localhost/20.x/tiki-admin.php?profile=Random_header_images_14&categories%5B%5D=20.x&repository=http%3A%2F%2Fprofiles.tiki.org%2Fprofiles&page=profiles&redirect=0&list=Find- Importance
- 7
- Easy to solve?
- 7
- Priority
- 49
- Demonstrate Bug on Tiki 19+
This bug has been demonstrated on show2.tiki.org
Please demonstrate your bug on show2.tiki.org
- Demonstrate Bug (older Tiki versions)
This bug has been demonstrated on show.tikiwiki.org
Please demonstrate your bug on show.tikiwiki.org
Show.tiki.org is currently unavailableUnable to connect to show.tikiwiki.org. Please let us know of the problem so that we can do something about it. Thanks.
- Ticket ID
- 7163
- Created
- Saturday 17 August, 2019 16:42:26 GMT-0000
by Xavier de Pedro - LastModif
- Saturday 17 August, 2019 16:42:26 GMT-0000