May 5, 2018 at 4:13 am #19994
I used patch WP Rocket by changing return false to true and it was working.
But this new version 3.0.4 is showing too many errors
<b>Fatal error</b>: Uncaught Error: Class ‘WP_Rocket\Admin\Options’ not found in /home/tricksco/public_html/wp-content/plugins/wp-rocket-master/inc/functions/options.php:18 Stack trace: #0 /home/tricksco/public_html/wp-content/plugins/wp-rocket-master/inc/functions/htaccess.php(543): get_rocket_option(‘cdn’, false) #1 /home/tricksco/public_html/wp-content/plugins/wp-rocket-master/inc/functions/htaccess.php(111): get_rocket_htaccess_web_fonts_access() #2 /home/tricksco/public_html/wp-content/plugins/wp-rocket-master/inc/functions/htaccess.php(42): get_rocket_htaccess_marker() #3 /home/tricksco/public_html/wp-content/plugins/wp-rocket-master/inc/main.php(198): flush_rocket_htaccess() #4 /home/tricksco/public_html/wp-includes/class-wp-hook.php(286): rocket_activation(”) #5 /home/tricksco/public_html/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters(”, Array) #6 /home/tricksco/public_html/wp-includes/plugin.php(453): WP_Hook->do_action(Array) #7 /home/tricksco/public_html/wp-admin/plugins.php(174): do_action(‘activate_wp- in <b>/home/tricksco/public_html/wp-content/plugins/wp-rocket-master/inc/functions/options.php</b> on line <b>18</b>
Please Provide some solutionMay 8, 2018 at 8:10 am #20001
I have the same problem. Anybody???May 8, 2018 at 5:45 pm #20002
I’m having the same problem:
Class ‘WP_Rocket\Admin\Options’ not found in /home/kissirc/public_html/wp-content/plugins/wp-rocket-master/inc/functions/options.php on line 18May 9, 2018 at 7:46 am #20003
you need to have composer, and do ‘composer install –no-dev’ in WP Rocket folder.May 12, 2018 at 6:26 pm #20014
I’m a new user and have the same problem
What do you mean with composer?
How can I do that?May 14, 2018 at 3:46 am #20015
Composer is a dependency manager for PHP. For install see https://getcomposer.org/doc/00-intro.md#installation-nixMay 14, 2018 at 5:41 am #20016
More easily, now you can download the vendor.zip file from [URL REMOVED BY ADMIN – SOURCE NOT LEGITIMATE] and unzip it to the wp-rocket folder. The folder contains all the dependencies that the composer should install.
PS. in the reply #20003 the command must be ‘composer install –-no-dev’ :(July 19, 2018 at 12:42 pm #20215
After reading these posts…Can you please clarify?
Can I just download the vendor.zip file and upload to the wp-rocket folder? If so from where do I download? The URL was removed in the previous comment.
If I do that, do I still need to use the command “composer install –-no-dev” on the server’s command line terminal?
Thanks for your help.July 23, 2018 at 11:24 pm #20228
Any solution for this , admin ?July 25, 2018 at 3:09 pm #20236
I’m sorry for the late answer; a longer journey …
Yes, it’s enough to unzip it to the root folder of the wp-rocket plugin.
That archive contains what the composer would place in that location.
I saw that link was deleted; for those who are in a hurry, now I created an Bitbucket snippet that contains that archive but I do not know how long the link will be tolerated here.
For those who do not trust or are curious, I explain how I can make it more concise.
If you can run composer on the server where wordpress is installed, just run ‘composer install –no-dev’ from the root folder of the plugin.
Otherwise, on another computer, even Windows, install composer, create a temporary folder where you copy the composer.json file found in the plugin, and then launch the same ‘composer install –no-dev’ command from that folder.
It will be enough to copy ALL the content of the vendor folder that will be created in the temporary folder to the plug-in root folder.July 25, 2018 at 11:24 pm #20238
@ Tomi, I must consider you’re genius . . Successfully done everything :)
July 29, 2018 at 4:58 pm #20253
- This reply was modified 2 weeks, 6 days ago by Bidyut Majumdar.
great it activated, :-)
You must be logged in to reply to this topic.