• Resolved zynnymeops

    (@zynnymeops)


    Hello!

    We have moved our website to a new, faster, server, but it is ironically running more slowly than ever.

    According to our hosing service, the cause of the slowness is the BBP Style Pack plugin, which is dynamically regenerating CSS. According to our host’s slow error logs (where they track when an individual request takes longer than 5 seconds to complete), all the slow errors are due to the BBP Style Pack plugin. Specifically, the issue is when it tried to run the “file_put_contents()” function after dynamically generating new stylesheet information.

    Here is the error log:
    [10-Jun-2019 00:47:12]
    script_filename = /www//index.php
    [0x00007faef501b8f0] file_put_contents() /www/wp-content/plugins/bbp-style-pack/includes/generate_css.php:30
    [0x00007faef501b840] generate_style_css() /www/wp-content/plugins/bbp-style-pack/bbp-style-pack.php:309
    [0x00007faef501b720] bsp_load_plugin() /www/wp-content/plugins/bbp-style-pack/bbp-style-pack.php:66
    [0x00007faef501b6a0] bbp_style_pack_init() /wordpress/wp-includes/class-wp-hook.php:286
    [0x00007faef501b5c0] apply_filters() /wordpress/wp-includes/class-wp-hook.php:310
    [0x00007faef501b550] do_action() /wordpress/wp-includes/plugin.php:465
    [0x00007faef501b450] do_action() /wordpress/wp-settings.php:397
    [0x00007faef501b2a0] [INCLUDE_OR_EVAL]() /www/wp-config.php:111
    [0x00007faef501b220] [INCLUDE_OR_EVAL]() /wordpress/wp-config.php:5
    [0x00007faef501b1b0] [INCLUDE_OR_EVAL]() /wordpress/wp-load.php:37
    [0x00007faef501b110] [INCLUDE_OR_EVAL]() /wordpress/wp-blog-header.php:13
    [0x00007faef501b080] [INCLUDE_OR_EVAL]() /www/index.php:17

    Do you have any advice on how to restructure the plugin configuration to not take so long to run the “file_put_contents()” command?

    Thank you!

    The page I need help with: [log in to see the link]

Viewing 15 replies - 1 through 15 (of 28 total)
  • Plugin Author Robin W

    (@robin-w)

    the plugin only generates the css file if it is not present, so I suspect it is a file permission issue.

    can you tell your hoster that on plugin load, the plugin looks for a file in

    /wp-content/plugins/bbp-style-pack/css/bspstyle.css

    If that file is not present it generates it, otherwise that code does not run unless you are in dashboard>settings>bbp style pack, where it saves on changes made to the plugin settings.

    that may help them determine your problem.

    Plugin Author Robin W

    (@robin-w)

    you might also or alternately want to look at

    dashboard>settings>bbp style pack>css location

    and activate and make the location

    wp-content/uploads/

    that may well fix the issue as that location is usually writeable

    • This reply was modified 5 years, 9 months ago by Robin W.
    Thread Starter zynnymeops

    (@zynnymeops)

    Hello Robin,

    Thank you for your replies!

    With regards to your first reply, we’ve checked with our host (Flywheel), but they were not able to offer up any help or guidance.

    With regards to the second item, I tried setting the location to wp-content/uploads as you suggested. So, I set the URL to be https://amusing-tent.flywheelsites.com/wp-content/uploads/. Is that right?

    Now I’m seeing this error message at the top of the site:

    “Warning: file_put_contents(/wordpress//wp-content/uploads/bspstyle.css): failed to open stream: No such file or directory in /www/wp-content/plugins/bbp-style-pack/includes/generate_css.php on line 25 Warning: copy(/wordpress//wp-content/uploads/bsp_test.css): failed to open stream: No such file or directory in /www/wp-content/plugins/bbp-style-pack/includes/generate_css.php on line 27”

    Any idea what I might have done wrong?

    Thank you very much!

    • This reply was modified 5 years, 9 months ago by zynnymeops.
    Plugin Author Robin W

    (@robin-w)

    I still suspect it is a file permissions issue.

    Do you have FTP access to your site ?

    Thread Starter zynnymeops

    (@zynnymeops)

    Ok – yes I can get FTP access to my site

    Plugin Author Robin W

    (@robin-w)

    ok, so can you see if there is a copy of bspstyle.css in uploads ?

    Thread Starter zynnymeops

    (@zynnymeops)

    I just checked and I don’t see the bspstyle.css in uploads.

    I do see it here: /wp-content/plugins/bbp-style-pack/css/bspstyle.css

    I appreciate your help!

    I am having this issue as well. My host has informed me that the plugin is modifying/creating the css file 10 times a second. This is causing some issues with performance of the website and we have used this plugin for quite sometime but this has just become an issue. I have tried setting the config to “wp-content/uploads/” but the problem remains. Was there ever a reason to implement this function to create file if it does not exist? I would like to remove it from the plugin on my site. What do you recommend? Thanks!

    Plugin Author Robin W

    (@robin-w)

    the file is generated when in the settings pages, or if the style sheet does not exist on entering the plugin.

    There have been no changes to that situation for some time, maybe years, and the latest release has been live for 3 months.

    which hoster are you using ?

    Pressidium. The files does exist – I also tried in the upload path. Same result. I ended up having to comment the code to stop the check/creation. This solved the issue for now.

    Thread Starter zynnymeops

    (@zynnymeops)

    How do you comment the code to stop the check/creation?

    Plugin Author Robin W

    (@robin-w)

    yes, please confirm which part you commented out?

    Plugin Author Robin W

    (@robin-w)

    @zynnymeops – can you let me know which part you commented out ?

    Thread Starter zynnymeops

    (@zynnymeops)

    @robin-w@jkw217 found the fix, not me… I’m still trying to figure out how to solve this ??

    Plugin Author Robin W

    (@robin-w)

    @jkw217 – can you let me know which part you commented out ?

Viewing 15 replies - 1 through 15 (of 28 total)
  • The topic ‘BBP Style Pack Slowing Down Website’ is closed to new replies.