Publisher does not support the Fluid field type. Please do not contact asking when support will be available.

If you purchased an add-on from expressionengine.com, be sure to visit boldminded.com/claim to add the license to your account here on boldminded.com.

Ticket: Utilities Folder Not Getting Created

Status Resolved
Add-on / Version Speedy 1.1.1
Severity
EE Version 5.3.2

Emmanuel Pacheco

May 05, 2020

Hello,

When I go to view my static/ folder through Addon Manager>Speedy>Static>View Items I get a warning require_once(/home/ermdevnc/public_html/static/utilities/StaticCacheHelper.php): failed to open stream: No such file or directory

During installation of the static driver I created a folder called static in my root directory.  Used the default setting for .htaccess and .config file following the docs.  I checked the static directory and no utilities folder is being created.  I do however see the default_site directory along with index.php.  When I install the static driver I never got a warning like the docs mentioned.  It just says the static driver is available.

#1

BoldMinded (Brian)

Hi, Emmanuel. You need to make sure the directory is writable so Speedy can create the utilities folder, or create the utilities folder yourself manually.

#2

Emmanuel Pacheco

According to the control panel module setting for the static drive, it says the directory is writable. That’s how it’s creating the default_site directory and index.php file. I created the utilities folder and reset the cache, revisited the site but still the utilities directory is empty. Default_site was created with all its files. I tried to see if there is something in the StaticDriver.php file preventing the creation of the directory along with it’s files.

#3

Emmanuel Pacheco

In my config file I have: $config[‘speedy_static_enabled’] = ‘yes’;

In my htaccess file I have:

## SPEEDY CACHING

<IfModule mod_rewrite.c> RewriteEngine On RewriteCond %{REQUEST_URI} !^/system [NC] RewriteCond %{QUERY_STRING} !ACT|URL [NC] RewriteCond %{REQUEST_METHOD} !=POST [NC] RewriteCond $1 !.(css|js|gif|jpe?g|png) [NC] RewriteCond %{DOCUMENT_ROOT}/static/default_site/static%{REQUEST_URI}/index.php -f RewriteRule ^ /static/default_site/static%{REQUEST_URI}/index.php [L,QSA] </IfModule>

## END SPEEDY CACHING

And I have static in my root directory.

#4

BoldMinded (Brian)

What is “library” in that error message? Are you using the Filesystem driver? Can you please share a screenshot of the root static folder? It should look something like this:

https://www.dropbox.com/s/0esimq1psa2a4o8/speedy-static-folder-ticket-2120.png?dl=0

#5

BoldMinded (Brian)

I’m curious why the second “static” is in the path: “/static/default_site/static/”

#6

BoldMinded (Brian)

Please share screenshots of your Speedy configuration settings as well, I’m in the dark right now…. I need to see what you are seeing.

#7

Emmanuel Pacheco

Comment has been marked private.

#8

Emmanuel Pacheco

Another behavior that might be related is, if I were to include

{exp:speedy:static}

in the home/index template as well. After visiting the library page I would no longer be able to visit the home page. It would come up blank. The only time I would be able to visit is when I clear the driver.

#9

BoldMinded (Brian)

Do you have any of the Speedy settings in your config.php file, similar to what is in the docs? https://docs.boldminded.com/speedy/docs/configuration

I’m about 99% certain this is a configuration issue b/c this functionality is unit tested and I know works fine. Just need to figure out what it is.

#10

BoldMinded (Brian)

Can you just provide CP and FTP access? I usually don’t like logging into other people’s sites but in this case it might just be quicker.

#11

Emmanuel Pacheco

Comment has been marked private.

#12

BoldMinded (Brian)

Edit the ticket and add the CP/FTP in the fields provided. It’s more secure than them sitting in my inbox. The fields are deleted once the ticket is resolved.

#13

Emmanuel Pacheco

Comment has been marked private.

#14

BoldMinded (Brian)

Comment has been marked private.

#15

BoldMinded (Brian)

Can you share your config file? With the new build it should provide an option to re-generate those utility files, but only if static is set to the active cache driver, and I’m not seeing the option to do that, so I’m not positive static is the active cache driver.

#16

BoldMinded (Brian)

Comment has been marked private.

#17

Emmanuel Pacheco

I installed it but not sure how to tell which driver is active.

#18

BoldMinded (Brian)

With the latest build, it should look like this: https://www.dropbox.com/s/fbw1b6l54b1xxyc/speedy-active-ticket-2120.png?dl=0

#19

BoldMinded (Brian)

Can you please share your config.php file? Do you have $config[‘speedy_driver’] = ‘something here’; in your config.php file? If you’re using the latest build I sent you should see an “active” status next to a driver, if not, then it’s telling me that you don’t have $config[‘speedy_driver’] defined.

#20

Emmanuel Pacheco

Definitely don’t have that in the config.php file. Should it be $config[‘speedy_driver’] = ‘static’?

#21

BoldMinded (Brian)

Yes it should. Take a look at the other options as well: https://docs.boldminded.com/speedy/docs/configuration

#22

Emmanuel Pacheco

Thank you so so much. I truly appreciate it. That did it. Having $config[‘speedy_driver’] = ‘static’ in the config.php file. I was also able to create a custom static folder and made all the necessary changes. The utilities folder got generated. Thanks again.

Login to reply