Closed Ergerbolt closed 2 years ago
I see countless, neverending error logs about this problem. However, the plugin works seems to work. I am able to convert images. The logs:
Error: include_once(): Failed opening '/var/www/html/custom_apps/imageconverter/lib/AppInfo/../../vendor/autoload.php' for inclusion (include_path='/var/www/html/3rdparty/pear/archive_tar:/var/www/html/3rdparty/pear/console_getopt:/var/www/html/3rdparty/pear/pear-core-minimal/src:/var/www/html/3rdparty/pear/pear_exception:/var/www/html/apps:/var/www/html/custom_apps') at /var/www/html/custom_apps/imageconverter/lib/AppInfo/Application.php#37
0. /var/www/html/custom_apps/imageconverter/lib/AppInfo/Application.php - line 37:
OC\Log\ErrorHandler::onError(2, "include_onc ... )", "/var/www/ht ... p", 37, { context: c ... }})
1. /var/www/html/custom_apps/imageconverter/lib/AppInfo/Application.php - line 37:
include_once()
2. /var/www/html/lib/private/AppFramework/Bootstrap/Coordinator.php - line 125:
OCA\ImageConverter\AppInfo\Application->register(class@anonym ... {})
3. /var/www/html/lib/private/AppFramework/Bootstrap/Coordinator.php - line 82:
OC\AppFramework\Bootstrap\Coordinator->registerApps([ "files","a ... "])
4. /var/www/html/lib/base.php - line 634:
OC\AppFramework\Bootstrap\Coordinator->runInitialRegistration()
5. /var/www/html/lib/base.php - line 1076:
OC::init()
6. /var/www/html/index.php - line 35:
require_once("/var/www/html/lib/base.php")
Hmm unfortunately I can't reproduce this on my end. I don't have any log spam. The section that the stack trace marks, doesn't do anything special where the error could happen.
public function boot(IBootContext $context): void
{
// ... boot logic goes here ...
/** @var IEventDispatcher $dispatcher */
$dispatcher = $context->getAppContainer()->get(IEventDispatcher::class);
// TODO this creates some deprecation warnings!
$dispatcher->addListener('OCA\Files::loadAdditionalScripts', function () {
Util::addScript('imageconverter', 'imageConverterScript');
});
}
This is just the part, where the Javascript gets loaded.
The actual error seems to happen in some error handler OC\Log\ErrorHandler::onError
.
So I don't know what's going on here and can't fix this. Sorry... Maybe you could try upgrading to Nextcloud 22 and see if the error persists. If anyone else has an idea, please write me.
And for the missing HEIC previews you have to adjust your Nextcloud server settings: https://github.com/nextcloud/previewgenerator/issues/230
Updating to the latest NextCloud version solved the issue for me.
Wonderful, glad that it works now :)
Did it also solve the issue for you @Ergerbolt ?
How can i update to version 22? It is not offered by nextcloupi. It says, there is nothing to update on my pi4.
According to their Readme, Nextcloudpi already supports NC 22 : https://github.com/nextcloud/nextcloudpi But maybe something is wrong with their automated build. You should ask the maintainers there.
If you have hosted it with Docker, the autoupdater is disabled on purpose. You need to stop your container, delete the old container, pull the latest image (docker.io/library/nextcloud:22) and start nextcloud with this image. However, I don't use it on a RPi, so I am not sure if there are any specialties for it.
Hi,
i have massive log spaming because the system cant find the autoload.php:
Is there a way to fix? My HEIC files are even not previewed. I installed imagick as it is necessary.