Project

General

Profile

Actions

Bug #21898

closed

Fatal error in cbox-theme

Added by Boone Gorges about 1 month ago. Updated about 1 month ago.

Status:
Resolved
Priority name:
Normal
Assignee:
Category name:
WordPress Themes
Target version:
Start date:
2025-01-28
Due date:
% Done:

0%

Estimated time:
Deployment actions:

Description

I'm seeing the following in the PHP error logs:

[28-Jan-2025 18:35:41 UTC] PHP Fatal error:  Uncaught ICE_Export_Exception: Unable to create the directory: /exports/teleplaza-cbox-theme in /var/www/webroot/ROOT/wp-content/themes/cbox-theme/engine/ICE/utils/export.php:280

I'm thinking that this is related to S3, since the code in question is related to creating directories, which probably works differently when wp_upload_dir() doesn't point locally.

I'm unsure what these dynamically-generated "export" files are used for. If they're needed, the proper fix is probably to ensure that the s3-uploads plugin doesn't filter wp_upload_dir when Infinity sets up its paths. That way, it would simply write to the filesystem in the normal way. This would need to happen both for read and write. See https://github.com/cuny-academic-commons/cac/blob/2.5.x/wp-content/plugins/s3-uploads/inc/class-plugin.php#L106; the unhook process would work something like:

if ( class_exists( '\S3_Uploads\Plugin' ) ) {
  $s3_uploads = \S3_Uploads\Plugin::get_instance();
  remove_action( $s3_uploads, 'filter_upload_dir' );
}

then probably setting a flag and re-hooking it afterward.

But if this code is not necessary, it could probably just be choked off somewhere.

Actions

Also available in: Atom PDF