Code Monkey home page Code Monkey logo

hide's Introduction

Hi there ๐Ÿ‘‹

hide's People

Contributors

ntvy95 avatar

Watchers

 avatar  avatar  avatar

hide's Issues

Error on Portal Page.

II got this error if I jump to my portal page:

Fatal error: Uncaught Error: Class 'bbcode' not found in /var/xxx/html/FORUM/ext/ntvy95/hide/event/listener.php:213 Stack trace: #0 /var/xxx/html/xxx/ext/ntvy95/hide/event/listener.php(142): ntvy95\hide\event\listener->replace_hide_bbcode_wrapper(NULL, '17kg30pn', '<div style="wid...', NULL) #1 /var/xxx/html/xxx/vendor/symfony/event-dispatcher/EventDispatcher.php(214): ntvy95\hide\event\listener->modify_text_for_display_after(Object(phpbb\event\data), 'core.modify_tex...', Object(phpbb\event\dispatcher)) #2 /var/xxx/html/xxx/vendor/symfony/event-dispatcher/EventDispatcher.php(44): Symfony\Component\EventDispatcher\EventDispatcher->doDispatch(Array, 'core.modify_tex...', Object(phpbb\event\data)) #3 /var/xxx/html/xxx/phpbb/event/dispatcher.php(62): Symfony\Component\EventDispatcher\EventDispatcher->dispatch('core.modify_tex...', Object(phpbb\event\data)) #4 in /var/xxx/html/xxx/ext/ntvy95/hide/event/listener.php on line 213

Problem with path to custom.css

I have phpbb 3.2.7 version installed on my server. Plugin was tested on 3.1.9 but is there no information about compatibility with latest version of CMS.

So, when I create a thread or post I have message on forum top, but looks like all works correct:
Warning: file_exists(): open_basedir restriction in effect. File(./../theme/custom.css) is not within the allowed path(s): (/usr/home/.../domains/.../public_html:/tmp:/usr/share:/usr/local/share/pear:/dev) in /usr/home/.../domains/.../public_html/cache/production/twig/1d/1de536f28e6b3a4cd2516948e7dc7595573f01235aa7aed97728de1b99a0a766.php on line 35

Line 27-39:

    {
        // line 1
        $asset_file = "../theme/custom.css";
        $asset = new \phpbb\template\asset($asset_file, $this->getEnvironment()->get_path_helper(), $this->getEnvironment()->get_filesystem());
        if (substr($asset_file, 0, 2) !== './' && $asset->is_relative()) {
            $asset_path = $asset->get_path();            
            $local_file = $this->getEnvironment()->get_phpbb_root_path() . $asset_path;
            if (!file_exists($local_file)) {
                $local_file = $this->getEnvironment()->findTemplate($asset_path);
                $asset->set_path($local_file, true);
            }
        }`

And line 35 is:
`if (!file_exists($local_file)) {`

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.