generatepress
generatepress copied to clipboard
Missing Elements in GeneratePress Dashboard after Latest Update
Elements Missing from Dashboard After Latest Update - Hooks, Headers, Layouts
Description: I've been using the Elements feature in GeneratePress for over 6 years, primarily on a WooCommerce website with minimal plugins. Recently, after updating to the latest versions of GeneratePress and GP Premium, I noticed several of my Elements (Hooks, Headers, Layouts) have disappeared from the WordPress dashboard.
Key Points:
- The missing Elements (Hooks, Headers, Layouts) are functioning correctly on the front end but are not visible in the dashboard.
- Block Elements still appear and function normally.
- The issue persists after disabling all plugins except GP Premium and remains even when using both the child theme and the default GP theme.
- I am using the latest version of GeneratePress (I was also testing the Alpha version, but the issue remains after reverting).
Debugging Findings:
- Creating a new Administrator user allows that user to view all Elements, including Hooks, Headers, and Layouts, while the original user cannot.
- PHP log warning related to a deprecated function:
However, I don’t believe this is directly related to the issue.[06-Aug-2024 11:24:51 UTC] PHP Deprecated: strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /www/wp-content/plugins/gp-premium/colors/functions/functions.php on line 1498
Potential Cause: I suspect the issue could be related to the recent updates of GeneratePress or GP Premium, possibly something connected to autoloading issues affecting user roles/permissions for viewing Elements in the dashboard.
Steps to Reproduce:
- Update to the latest version of GeneratePress and GP Premium.
- Check the dashboard for the visibility of Elements like Hooks, Headers, and Layouts.
Expected Behavior: All previously created Elements (Hooks, Headers, Layouts) should be visible in the dashboard after the update.
Actual Behavior: These Elements are missing from the dashboard for the original user but appear when a new Administrator user is created.
Additional Information: This issue has persisted after the latest GP update and across multiple websites. Could this be related to autoload issues? Any insights into this would be appreciated, as I currently have to create new admin users to regain visibility of Elements.
GP - Topic - > https://generate.support/topic/elements-hooks-headers-layouts-missing-from-dashboard/#post-130572
Let me know if further information or access is needed for testing.