AlanP57
Forum Replies Created
-
You can turn on WordPress debugging to see what is causing the error. In the site’s wp-config.php file replace
define('WP_DEBUG', false);with
define('WP_DEBUG', true);
define('WP_DEBUG_LOG', true);
define('WP_DEBUG_DISPLAY', false);
@ini_set('display_errors', 0);If define(‘WP_DEBUG’, false); is not in your wp-config.php file, add the four lines above the place where it says ‘That’s all, stop editing! Happy blogging.’
Once this code has been added, try to activate the plugin again.
This will create a debug.log text file in the wp-content folder that will contain various messages and notices. You can send the file to our address, support at maxfoundry.com.
Yes, there is a way to exclude a folder and all its subfolders from being included in the folder tree. The name of the folder that CiviCRM adds to the Uploads folder can be included in the folders_to_hide.txt which is a list of folders to exclude. You can let me know the name of this folder and I will include in the next release. Plus, you can manually add this folder name to the file in your Media Library Folders plugin. To do this, using your site’s file manager, go to wp-content/plugins/media-library-plus and find the folders_to_hide.txt file. Open the file with an editor. Then go to the last line of the file, press the return/enter key to create a new line; on the new line, type the name of the folder that Media Library Folders should skip. Save the file and then follow the steps to reset the folder data (deactivate Media Library Folders, activate Media Library Folders Reset, Under Reset Media Library Folders Data, click the Reset Folder Data Button; once finished, reactivate Media Library Folders to do a fresh scan of your folders).
Let me know the name of the folder to exclude.
Forum: Plugins
In reply to: [WP-Paginate] WP-Paginate doesn’t work with Theme Divi 5What they said is true. The plugin uses the standard WordPress hooks to prepend or append the pagination links a list of posts. If a theme is using a custom loop, then the output from those hooks are not displayed.
Forum: Plugins
In reply to: [Media Library Folders] manage directly from media libraryYou can do that with the pro version.
Forum: Plugins
In reply to: [Max Mega Menu] Unable to delete a menu elements in the megamenu UII found the trash can icon appears when a column is empty.
Forum: Plugins
In reply to: [WP-Paginate] Fatal error: Uncaught DivisionByZeroError: Division by zeroThis this
// Determine posts_per_page safely (REST + non-REST)
$posts_per_page = 0;// Prefer the query object's value if available
if ( isset($wp_query) && $wp_query instanceof WP_Query ) {
$posts_per_page = (int) $wp_query->get('posts_per_page');
}// Fall back to query var (theme loops, etc.)
if ( $posts_per_page === 0 ) {
$posts_per_page = (int) get_query_var('posts_per_page');
}// If still invalid, use WP setting (default 10 if option missing)
if ( $posts_per_page === 0 ) {
$posts_per_page = (int) get_option('posts_per_page', 10);
}// WP convention: -1 means "show all posts" => 1 page
if ( $posts_per_page < 0 ) { $pages = 1; } else {// Never allow division by zero$posts_per_page = max(1, $posts_per_page); $found_posts = ( isset($wp_query) && $wp_query instanceof WP_Query ) ? (int) $wp_query->found_posts : 0;
$pages = (int) ceil($found_posts / $posts_per_page);
}Forum: Plugins
In reply to: [MaxGalleria] Image showcase templateI would like to address these questions, but the image showcase is a paid plugin, which ww.wp.xz.cn does not allow us to support here. You can post these question on our support forum on maxgalleria.com.
Forum: Plugins
In reply to: [Media Library Folders] Please remove the reset pluginMany users have found the Media Library Folders Reset plugin to be a valuable utility that helps resolve occasional issues that can develop over time. By including it with the main plugin, we make it easier for users to quickly fix common problems without needing to install a separate tool or wait for assistance from our support team.
Unfortunately, we don’t currently have the ability to prevent this utility from being activated when it’s installed. However, if you prefer to remove it manually, you can do so safely using your site’s file manager or an FTP client (such as FileZilla).
To remove it:
- Navigate to the following folder on your server: wp-content/plugins/media-library-plus/
- Locate and delete the file named mlp-reset.php.
This will remove the Reset utility from your site while keeping the main plugin intact.
In the Media Library Folders Reset plugin, there is an option, Check for Folders Without Parent IDs, which should also work on media files. You can try running this option. It queries the media library database for all the files without a folder ID, determines the correct folder ID and assigns it for each media file. Once the new files have folder IDs, they will be visible when when their folder is viewed with Media Library Folders.
This is a scenario that we had not anticipated where media files are added to the media library by another method other than uploading. I’ll need to look into possible solutions and get back to you.
Forum: Plugins
In reply to: [Media Library Folders] The plugin just disappeared!There should not be a problem with reinstalling and activating the plugin. I assume that data is still in your site’s database. If the data was not found, it would automatically rescan your media library’s folders. Also note that both Media Library Folders and its reset plugin occupy the same folder. If someone deleted the reset plugin, it would also remove the Media Library Folders plugin.
You can try opening your browser console panel and then open the Media Library Folders page. Then in the console, look for Javascript errors. Some errors and warnings may not be related to Media Library Folders. To display the browser console in Google Chrome, use one of these quick methods:
- On Windows/Linux, press Ctrl + Shift + J to open the Console tab directly.
- On macOS, press Cmd + Option + J for direct console access.
Let’s check the diagnostics. Under the submenu for the Reset plugin, there is the Display Folder Data report. You can check that one to see how many folders are in your media library. There is a limit to the number of folders that the browser memory can handle. Usually the limit is about 1,000 folders but some browsers allow more. Also while viewing this report, check for any folders, other than the uploads folder, that are missing a parent ID. If there are some folders like this, that would be a reason for the folder tree failing to load.
Forum: Plugins
In reply to: [Media Library Folders] Folder tree error after updating to PHP8.3I have received the debug.log you sent by email. It shows one issue that should be addressed. I will look into resolving it an get back to you.
Forum: Plugins
In reply to: [Media Library Folders] Folder tree error after updating to PHP8.3Unfortunately, I am not able test the plugin on PHP 8. You can turn on WordPress debugging to see what PHP issues are occurring. To turn debugging on, in the site’s wp-config.php file replace
define('WP_DEBUG', false);with
define('WP_DEBUG', true);
define('WP_DEBUG_LOG', true);
define('WP_DEBUG_DISPLAY', false);
@ini_set('display_errors', 0);If define(‘WP_DEBUG’, false); is not in your wp-config.php file, add the four lines above the place where it says ‘That’s all, stop editing! Happy blogging.’
WordPress will now write messages to a debug.log file in the wp-content folder. Repeat the action that displayed the Javascript and then send the debug.log to support at maxfoundry.com and mention ‘Folder tree error after updating to PHP8.3’ in the subject line.