After installing and activating the latest version of Open Table Widget basic on our WordPress multisite installation, we found 3 instances of 404 errors on the plugin’s settings page in the backend. It seemsĀ the plugin was stripping the trailing slash on the url while looking for these files, so it was looking for the files like so: https://polyglotlabs.com/locationwpcontent/plugins… instead ofĀ https://polyglotlabs.com/location/wpcontent/plugins…
For the time being, the best solution is just to edit the plugin directly. The file we’re looking to edit is sunrise.class.php, found within the classes folder for the Open Table Widget plugin.
On lines 127-133, we find
/** * Helper function to get assets url by type */ function assets( $type = 'css', $file = 'sunrise.css' ) { return implode( '/', array_filter( array( trim( $this->url, '/' ), trim( $this->assets, '/' ), trim( $type, '/' ), trim( $file, '/' ) ) ) ); }
We now remove the trim function aroundĀ $this->url and end up with
/** * Helper function to get assets url by type */ function assets( $type = 'css', $file = 'sunrise.css' ) { return implode( '/', array_filter( array( $this->url, trim( $this->assets, '/' ), trim( $type, '/' ), trim( $file, '/' ) ) ) ); }
Good luck!