• Resolved Jáchym Kellar

    (@jachymkellar)


    load.php line 5 uses a relative path: require ‘vendor/autoload.php’;. PHP resolves it against include_path (. = the current working directory) before the plugin’s own directory. On the frontend the working directory is the WordPress root. If the site has its own Composer vendor/autoload.php there, PHP loads that file instead of the plugin’s, and the result is Class “RockLobsterInc\Swv\CompositeRule” not found in includes/swv/swv.php:129. The admin works because its working directory is wp-admin/.

    Fix: require DIR . ‘/vendor/autoload.php’;

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

You must be logged in to reply to this topic.