Viewing 9 replies - 1 through 9 (of 9 total)
  • Thread Starter ericrosete

    (@ecdoesit)

    I’m getting this error in web console:

    https://localhost/moneymio/wp-content/plugins/yet-another-stars-rating-pro/css/yasr-rateit.css.php Failed to load resource: the server responded with a status of 403 (Forbidden)

    Plugin Contributor dudo

    (@dudo)

    Hi ecdoesit, thank you for using Yasr!

    You found the problem yourself: the server give a 403 error on that file.
    Please check the file permission and / or error on you server.

    When you’ll go live, most probably this error will disappear.

    Best,
    Dario

    Thread Starter ericrosete

    (@ecdoesit)

    I checked permissions and they all seemed fine. I even changed it to 777 to no avail. Every other part of the plugin is enqueuing into WordPress properly, but it just does not like having a stylesheet that’s in PHP.

    Is there a workaround where that CSS file doesn’t need to have that PHP extension? I’ve tried on a few different server environments and I get the same issue.

    Thread Starter ericrosete

    (@ecdoesit)

    So it seems like the stars aren’t appearing because the yasr-rateit.css.php isn’t loading properly. Doesn’t seem to be an issue with permissions. Maybe because you’re running PHP as a CSS file?

    The only way I’ve been able to get your plugin to work is by creating a yasr-rateit.css file that has the img directories specified manually and by editing the yasr-functions.php to point to this new .css file. Although this works, this is pretty unacceptable given this is the PRO version I’m using and any updates to the plugin will break this mod.

    Not sure why it seems to work fine for everyone else and my setup refuses to serve up that css.php file. Any thoughts?

    Plugin Contributor dudo

    (@dudo)

    Really strange, like you said it work fine for everyone else.

    What so and server are you using?
    Can you please paste the error.log of your server?

    Further, can you please try this?

    https://stackoverflow.com/questions/18110284/parse-css-file-as-php

    Let me know!

    Thread Starter ericrosete

    (@ecdoesit)

    I’ve tested it using a basic LAMP dev environment, dreamhost and mediatemple.

    My error log is full of these:

    [Sat Nov 14 09:46:28.644087 2015] [authz_core:error] [pid 6242] [client ::1:40499] AH01630: client denied by server configuration: /home/eric/Projects/moneymio/wp-content/plugins/yet-another-stars-rating-pro/css/yasr-rateit.css.php, referer: https://localhost/moneymio/wp-admin/options-general.php?page=yasr_settings_page&tab=pro_general_options

    I found this pretty old article that talks about using PHP for CSS: https://css-tricks.com/css-variables-with-php/ which kinda goes along with that link you sent me.

    So it looks like the issue here is the server isn’t configured to parse PHP files as CSS files. Right?

    I’ve enabled mod_headers but could you provide me with the htaccess rules to handle PHP as CSS?

    Thread Starter ericrosete

    (@ecdoesit)

    Also, if I end up not being able to use this plugin or if you can’t support servers that aren’t configured to parse PHP as CSS, could I get a refund? I wish I could use it and it’s a shame I won’t be able since it doesn’t seem to work for just any server config.

    Thread Starter ericrosete

    (@ecdoesit)

    Well the good news is the free plugin works :). I tested the PRO plugin on another website on WPEngine and it works fine there. I do appreciate your work on this plugin and thanks for your replies. Do you think it’s possible to have a PRO version that doesn’t rely on PHP files being parse for CSS?

    Plugin Contributor dudo

    (@dudo)

    I’m on lamp on my desktop tooo (linux mint) and i never edited .htaccess file to get this work…and other ~400 pro users haven’t had this problem too ??
    I’m pretty sure that when you’ll put your site online you’ll not have this error ??

    to answer your questions:

    1) You’re free to ask a refound in 7 days, so no problem with that!

    2) I’m working hard on these days to add hookseverywhere on yasr. One of this hooks will be avaible in the functions that adds css and js, so if you want you’ll be able to remove the file css.php and add the one you want, without losing your edits on plugin updates!! ??

    Best,
    Dario

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Star Ratings not showing in post meta box’ is closed to new replies.