Skip to content

require_once() is deprecated. It was called from require() in /dokuwiki/lib/plugins/pageimage/syntax.php:17 Autoloading should be used instead! #8

@fiwswe

Description

@fiwswe

This deprecation warning shows up in the logs:
require_once() is deprecated. It was called from require() in /dokuwiki/lib/plugins/pageimage/syntax.php:17 Autoloading should be used instead!

DokuWiki version: Release 2025-05-14a "Librarian"
PHP version 8.4.10
PHP-FPM
Pageimage version: 2018-10-12

My quick fix was to remove these lines as they are not needed:

pageimage/syntax.php

Lines 14 to 17 in d5484f3

if (!defined('DOKU_LF')) define('DOKU_LF', "\n");
if (!defined('DOKU_TAB')) define('DOKU_TAB', "\t");
if (!defined('DOKU_PLUGIN')) define('DOKU_PLUGIN',DOKU_INC.'lib/plugins/');
require_once(DOKU_PLUGIN.'syntax.php');

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions