• Resolved Bowo

    (@qriouslad)


    Hi John,

    With Oxygen Builder, which effectively “turns off” the active theme, the following lines / methods:

    • collectors/theme.php:415 — QM_Util::standard_dir( get_stylesheet_directory() )
    • collectors/theme.php:416 — QM_Util::standard_dir( get_template_directory() )

    …will return ‘fake’ which then result in PHP Warning of “open_basedir restriction in effect” later on.

    I’m solving it temporarily by replacing ‘fake’ with: ABSPATH . ‘wp-content/themes’

    Bowo

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author John Blackbourn

    (@johnbillion)

    WordPress Core Developer

    To be honest this doesn’t sound like something that should be encouraged. Plugins should be safe to assume that get_stylesheet_directory() and get_template_directory() return something valid, otherwise everything starts to fall apart if you have to treat everything as potentially invalid.

    Have you raised this with the authors of Oxygen?

    Thread Starter Bowo

    (@qriouslad)

    @qriouslad I understand. I’ll try to chat with Oxygen developers.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘“open_basedir restriction in effect” with Oxygen Builder’ is closed to new replies.