Vivian

CSS issue please help it's rather urgent

I have created a support ticket but still waiting for a response. I'm using Directory v9 and child theme but strange thing is it seems the CSS is not being referenced at all and I don't know why or why it changed. Even when disabling all the plugins it doesn't fix the issue. I thought maybe the child theme is corrupted so tried to upload a new one but problem persists. Is there any suggestions from experts here please I'm pulling my hair out and have unfortunately just yesterday submitted the site to Google when it was working fine!

Created: May 18, 2019 at 10:38 pm
  • In: Directory Theme
  • Started by: VivianVivian
  • 2 members left 20 comments
  • Last reply from: VivianVivian

  • JamesD
    JamesD
    May 19, 2019 at 1:11 am

    @Vivian
    Please post a URL.

  • Vivian
    Vivian
    May 19, 2019 at 1:14 am

    Home

    I am getting this error in the log file

    [17-May-2019 04:36:52 UTC] PHP Warning: file_get_contents(): failed to open stream: HTTP request failed! 403 Forbidden

    in /home/ukdirect/public_ on line 392

  • Vivian
    Vivian
    May 19, 2019 at 1:20 am

    It seems to be random I’m not sure why
    Several errors being detected here

  • JamesD
    JamesD
    May 19, 2019 at 1:30 am

    @Vivian

    The request is being blocked.

    Here’s the line right that runs before it breaks:
    if(_ppt('cached_css') == 1 && !isset($GLOBALS['childtemplate']) ){
    This is saying that IF cached CSS is on AND the variable $GLOBALS[‘childtemplate’] has not been set then use the cached file.

    Go to PremiumPress > DESIGN SETUP > CUSTOM CSS/STYLES > Optimization and make sure the CSS CACHING is turned OFF.

  • Vivian
    Vivian
    May 19, 2019 at 1:37 am

    Thanks but I don’t seem to be able to turn it off???

  • JamesD
    JamesD
    May 19, 2019 at 1:47 am

    @Vivian
    Sorry, have no clue with what’s going on. Seems like there may be more going on.
    Waiting for support would probably be your best option then.

  • Vivian
    Vivian
    May 19, 2019 at 1:56 am

    can I delete the combined file? see attached

    Attachments:
    You must be logged in to view attached files.
  • Vivian
    Vivian
    May 19, 2019 at 1:58 am

    Above error is from the blog page other pages seem to be loading ok
    Blog and Latest News

  • JamesD
    JamesD
    May 19, 2019 at 2:01 am

    @Vivian
    Well, I’d just rename it just in case. ( add .bak to the end) to see if it makes a difference.
    Haven’t dug much into the flow/process for the cache of the theme.

  • JamesD
    JamesD
    May 19, 2019 at 2:05 am

    @Vivian
    Those cached files are empty, not sure how/why it’s being pulled in. Have you changed the Blog page template to something other than the default blog page?

  • Vivian
    Vivian
    May 19, 2019 at 2:08 am

    Just found something like 100+ random css files in the wp-content/uploads/ directory
    It’s really random the css does and doesn’t load at various times on different pages…

  • JamesD
    JamesD
    May 19, 2019 at 2:40 am

    @Vivian
    Are you using a child theme?
    If so, do you have a file in the child theme directory?

  • Vivian
    Vivian
    May 19, 2019 at 2:58 am

    Yes using child theme 13 and there definitely is a

  • JamesD
    JamesD
    May 19, 2019 at 3:20 am

    @Vivian
    Ok, here’s a quick hack that should reset the css cache option…
    Place this snippet near the bottom of the file.Save the file and refresh the site page at least once (this will run the snippet). update_option('core_admin_values', array('cached_css'=> 'no'));
    Now, check the css cache setting to see if off.
    Remove the snippet after the setting has successfully been reset.


Viewing 15 posts - 1 through 15 (of 21 total)