Home › Forums › WoodMart support forum › Files built by theme CSS Generators are not saved on localhost
Files built by theme CSS Generators are not saved on localhost
- This topic has 14 replies, 2 voices, and was last updated 4 years, 6 months ago by Artem Temos.
-
AuthorPosts
-
May 18, 2020 at 9:03 am #195848
horny_fungusParticipantHi, when I hit generate file button it looks just as everything fine. I get the “New CSS file is generated and saved.” message but there’s no file in ulpoads folder actually.
May 18, 2020 at 12:42 pm #195913
Artem TemosKeymasterHello,
We have tested this on our side and it works correctly. Maybe you have some permissions problem for your files but we can’t check this while it is not on some accessible hosting.
Kind Regards
May 18, 2020 at 1:44 pm #195920
horny_fungusParticipantI understand. But can you please at least advice what should I check?
May 19, 2020 at 12:11 am #195926
Artem TemosKeymasterSorry, but we don’t know what the reason for this problem so we don’t have a general instruction for such check.
May 19, 2020 at 8:15 am #196043
horny_fungusParticipantI spent a lot of time moving to another local environment just to get the same results. So I suppose this is a bug if it’s not working with 2 different setups with default settings.
May 19, 2020 at 8:57 am #196052
horny_fungusParticipantThere are no write permissions issues, media files are uploaded without problems. I suppose the issue is that CSS Generator has to connect to xtemos website and get result from there. How I can debug this process?
May 19, 2020 at 9:14 am #196057
horny_fungusParticipant'New CSS file is generated and saved.'
message is shown by the way.May 19, 2020 at 9:35 am #196060
horny_fungusParticipantLooks like this is due to DB migration issues. Despite defining uploads in wp-config there are some old path entries in DB. I have to investigate further.
May 19, 2020 at 4:49 pm #196047
Artem TemosKeymasterAre you able to check it on a real website where we can see this ourselves? We tested on a few local environments and it works correctly.
May 19, 2020 at 6:27 pm #196209
horny_fungusParticipantI double checked all DB entries, fixed a few and CSS Generator is still not working, although media uploads work just fine.
May 19, 2020 at 9:25 pm #196227
horny_fungusParticipantSo I tried making a clean instal of WP with Woodmart and CSS Generator was working fine. Therefore it looks like the bug is coming from my database. Can you please advice what should I check?
May 19, 2020 at 9:40 pm #196228
horny_fungusParticipantFinally I was able to solve the issue it was appearing as long as
upload_path
inwp_options
had any value. On my live site it had full path like home/username/public_html etc., I changes it to proper path for local site, but it didn’t help. As soon as I earased this option value the bug was fixed.
It’s rather strange considering other uploads were working fine.
Can you please comment on this?May 20, 2020 at 6:23 am #196275
Artem TemosKeymasterOur theme uses core WordPress functions to retrieve the uploads folder path. So if it returns a wrong path then it is not a theme bug.
May 20, 2020 at 7:25 am #196292
horny_fungusParticipantCan you please point me the peice of code retrieving uploads path so I can test it to understand the issue better?
May 20, 2020 at 8:40 am #196312
Artem TemosKeymasterIn the file
woodmart\inc\classes\Cssgenerator.php
http://prntscr.com/sk7rds -
AuthorPosts
- You must be logged in to create new topics. Login / Register