Title: rolevine's Replies | WordPress.org

---

# rolevine

  [  ](https://wordpress.org/support/users/rolevine/)

 *   [Profile](https://wordpress.org/support/users/rolevine/)
 *   [Topics Started](https://wordpress.org/support/users/rolevine/topics/)
 *   [Replies Created](https://wordpress.org/support/users/rolevine/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/rolevine/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/rolevine/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/rolevine/engagements/)
 *   [Favorites](https://wordpress.org/support/users/rolevine/favorites/)

 Search replies:

## Forum Replies Created

Viewing 15 replies - 1 through 15 (of 26 total)

1 [2](https://wordpress.org/support/users/rolevine/replies/page/2/?output_format=md)
[→](https://wordpress.org/support/users/rolevine/replies/page/2/?output_format=md)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Wise Chat] Pre-Sales Questions – private messages, roles, notifications](https://wordpress.org/support/topic/pre-sales-questions-private-messages-roles-notifications/)
 *  Thread Starter [rolevine](https://wordpress.org/support/users/rolevine/)
 * (@rolevine)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/pre-sales-questions-private-messages-roles-notifications/#post-16314527)
 * Never mind. I found out the answers by installing it, experimenting and scouring
   the documentation. Nice documentation by the way :).
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Accordion FAQ - Compatible With All Page Builder (Elementor, Gutenberg)] Possible to retain current open/close status on page refresh?](https://wordpress.org/support/topic/possible-to-retain-current-open-close-status-on-page-refresh/)
 *  [rolevine](https://wordpress.org/support/users/rolevine/)
 * (@rolevine)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/possible-to-retain-current-open-close-status-on-page-refresh/#post-15203964)
 * [@awol](https://wordpress.org/support/users/awol/) – This *might* be helpful 
   to you. I have a situation where users submit stuff within each accordion section
   and the page refreshes. At this point I’m able to add a parameter to the URL.
   I add the title of the accordion section I want to re-open when the page refreshes.
   The following code takes parameter, finds the section’s parent anchor and clicks
   it. As an added bonus, it scrolls to the section.
 *     ```
       const urlParams = new URLSearchParams(window.location.search);
       var section = urlParams.get('section');
       if (null != section) {
       	var span = $(".ac_title_class:contains('" + section + "')");
       	var anchor = span.closest("a[data-parent*=wpsm]");
       	anchor.trigger('click');
       	$([document.documentElement, document.body]).animate({
       		scrollTop: $(anchor).offset().top
       	}, 2000);
       }
       ```
   
    -  This reply was modified 4 years, 6 months ago by [rolevine](https://wordpress.org/support/users/rolevine/).
      Reason: clicked Notify
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WP Mail Logging] Can’t see what the error is](https://wordpress.org/support/topic/cant-see-what-the-error-is/)
 *  [rolevine](https://wordpress.org/support/users/rolevine/)
 * (@rolevine)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/cant-see-what-the-error-is/#post-15171561)
 * [@redswirl](https://wordpress.org/support/users/redswirl/) – hold your cursor
   over the exclamation mark.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WP Mail Logging] ! under Error heading for about 20 emails](https://wordpress.org/support/topic/under-error-heading-for-about-20-emails/)
 *  [rolevine](https://wordpress.org/support/users/rolevine/)
 * (@rolevine)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/under-error-heading-for-about-20-emails/#post-15171560)
 * [@nuggetcreatives](https://wordpress.org/support/users/nuggetcreatives/) – Is
   this the error you’re seeing “Invalid address: (From):”. That’s what I’m seeing
   and the emails are still sent and received and there is most definitely an existing
   and valid email address.
 * Version 1.10.2
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Quick Event Manager] jQuery(…).datepicker is not a function in WP Admin](https://wordpress.org/support/topic/jquery-datepicker-is-not-a-function-in-wp-admin/)
 *  Thread Starter [rolevine](https://wordpress.org/support/users/rolevine/)
 * (@rolevine)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/jquery-datepicker-is-not-a-function-in-wp-admin/#post-14490873)
 * [@sterndata](https://wordpress.org/support/users/sterndata/) – Not to be difficult,
   but offering to supply credentials is not a violation of the posted rules and
   I can’t imagine why it would be.
 * “Do not post or ask for login information, even test IDs and test passwords.”
 * I neither posted nor asked for. I offered.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Quick Event Manager] jQuery(…).datepicker is not a function in WP Admin](https://wordpress.org/support/topic/jquery-datepicker-is-not-a-function-in-wp-admin/)
 *  Thread Starter [rolevine](https://wordpress.org/support/users/rolevine/)
 * (@rolevine)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/jquery-datepicker-is-not-a-function-in-wp-admin/#post-14490858)
 * [@alanfuller](https://wordpress.org/support/users/alanfuller/) – Thanks, I didn’t
   even need the plugin (though it’s good to know about) I just needed the inspiration
   to remember I had a code snippet that was including a jQuery script registration
   for a particular feature. Disabling that snippet fixed the issue.
 * – Rob
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Code Snippets] Sorry, you are not allowed to access this page.](https://wordpress.org/support/topic/sorry-you-are-not-allowed-to-access-this-page-137/)
 *  [rolevine](https://wordpress.org/support/users/rolevine/)
 * (@rolevine)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/sorry-you-are-not-allowed-to-access-this-page-137/#post-13616072)
 * For what it’s worth, while hunting done a related problem, with another plugin,
   I found that a plugin “WP Custom Admin Interface” was causing my problem. I don’t
   know why, however, I guess I’ll stop using WP Custom Admin Interface.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Code Snippets] Sorry, you are not allowed to access this page.](https://wordpress.org/support/topic/sorry-you-are-not-allowed-to-access-this-page-137/)
 *  [rolevine](https://wordpress.org/support/users/rolevine/)
 * (@rolevine)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/sorry-you-are-not-allowed-to-access-this-page-137/#post-13598872)
 * [@manigopal](https://wordpress.org/support/users/manigopal/) – I’ve had the same
   problem forever on one of my setups and I finally decided to attempt to debug
   the issue. Maybe [@bungeshea](https://wordpress.org/support/users/bungeshea/)
   can fill in the answer after I give the details.
 * Ultimately, the “false” that causes the “Sorry, you are not allowed to access
   this page.” to be thrown comes from line 2098 of /wp-admin/includes/plugin.php(
   WP version 5.5.2). The code is looking for the index “admin_page_edit-snippet”
   in the global $_registered_pages and not finding it.
 * On an environment where I am able to edit, the same piece of code is looking 
   for “snippets_page_edit-snippet” (note that it’s different than “admin_page_edit-
   snippet”) in $_registered_pages and is successfully finding it. Hence, no error.
 * I’ll keep digging, however, I don’t know much about the area I’m digging into.
 * Regards,
    Rob
    -  This reply was modified 5 years, 8 months ago by [rolevine](https://wordpress.org/support/users/rolevine/).
      Reason: add WP version for file reference
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Code Snippets] 404 Error after save](https://wordpress.org/support/topic/404-error-after-save/)
 *  [rolevine](https://wordpress.org/support/users/rolevine/)
 * (@rolevine)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/404-error-after-save/page/2/#post-11398695)
 * [@gevcen](https://wordpress.org/support/users/gevcen/) – on any one of my sites
   I can disable mod_sec, save a snippet successfully, then reenable mod_sec and
   fail with a 403 (not 404) every time. Though, as I’ve stated before, it’s because
   I have $_POST in my snippet.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Code Snippets] 404 Error after save](https://wordpress.org/support/topic/404-error-after-save/)
 *  [rolevine](https://wordpress.org/support/users/rolevine/)
 * (@rolevine)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/404-error-after-save/page/2/#post-11391810)
 * [@bungeshea](https://wordpress.org/support/users/bungeshea/) – Thanks for the
   follow-up. The last point I want to clarify is that up until a few months/weeks
   ago, there was no issue with saving scripts with $_POST in them. So at some point,
   and I wish I could help identify that point, the issue started to happen where
   it previously didn’t.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Code Snippets] 404 Error after save](https://wordpress.org/support/topic/404-error-after-save/)
 *  [rolevine](https://wordpress.org/support/users/rolevine/)
 * (@rolevine)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/404-error-after-save/page/2/#post-11388391)
 * I’m hoping that [@bungeshea](https://wordpress.org/support/users/bungeshea/) 
   will update this after reading my posts #16 & #17. The issue that I’m seeing,
   while whitelist mod_sec masks the problem, it still seems to me that there is
   a CodeSnippets-specific issue happening.
 * [@elenaocone](https://wordpress.org/support/users/elenaocone/) [@retunes](https://wordpress.org/support/users/retunes/)
   [@gevcen](https://wordpress.org/support/users/gevcen/) – I’m still curious if
   you see the same behavior in that there’s certain code that causes the error.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Code Snippets] 404 Error after save](https://wordpress.org/support/topic/404-error-after-save/)
 *  [rolevine](https://wordpress.org/support/users/rolevine/)
 * (@rolevine)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/404-error-after-save/page/2/#post-11376233)
 * In addition to the testing in the previous post, I confirmed that creating a 
   simple snippet with just “$_POST;” in it, fails on all my websites, including
   the ones where I thought I didn’t have the problem previously. As it turns out,
   it was because I wasn’t using $_POST in the snippet.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Code Snippets] 404 Error after save](https://wordpress.org/support/topic/404-error-after-save/)
 *  [rolevine](https://wordpress.org/support/users/rolevine/)
 * (@rolevine)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/404-error-after-save/page/2/#post-11375890)
 * [@bungeshea](https://wordpress.org/support/users/bungeshea/) – Your post inspired
   me to do further testing and, at least in my case (error 403 while saving the
   snippet) I can see exactly what code is causing the issue. As to why, I’ll look
   to you for that answerd and whether it’s related to what you’re saying above.
 * If I create a completely empty snippet, it saves without error.
    If I create 
   a snippet with one simple line, e.g., “$x = 1;”, it saves w/o error. If, however,
   I put “$_POST” anywhere in the snippet, such as a one-liner of “$_POST;”, I get
   the 403 error when saving. Same happens with $_GET and it happens even if I comment
   out the line, e.g., “//$_POST;”
 * [@elenaocone](https://wordpress.org/support/users/elenaocone/) [@retunes](https://wordpress.org/support/users/retunes/)
   [@gevcen](https://wordpress.org/support/users/gevcen/) – I’m curious if you see
   the same behavior.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Code Snippets] 404 Error after save](https://wordpress.org/support/topic/404-error-after-save/)
 *  [rolevine](https://wordpress.org/support/users/rolevine/)
 * (@rolevine)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/404-error-after-save/#post-11374690)
 * [@elenaocone](https://wordpress.org/support/users/elenaocone/) [@retunes](https://wordpress.org/support/users/retunes/)
 * I edited my .htaccess file to include:
 * <IfModule mod_security.c>
    SecFilterEngine Off SecFilterScanPOST Off </IfModule
   >
 * and while the problem did indeed “go away”, this seems both dangerous and the“
   sledgehammer” approach to the problem. Of course, I have nearly zero expertise
   in server security, so my concern is based solely on the fact that I don’t like
   the idea of removing security and that my host says that they “strongly suggest”
   that I don’t leave those lines in my .htaccess file.
 * Also, I looked at my sites that don’t have this problem and I don’t see the modsecurity
   rules touched in the htaccess files.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Code Snippets] 404 Error after save](https://wordpress.org/support/topic/404-error-after-save/)
 *  [rolevine](https://wordpress.org/support/users/rolevine/)
 * (@rolevine)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/404-error-after-save/#post-11374131)
 * [@retunes](https://wordpress.org/support/users/retunes/) – I deactivated ALL 
   plugins except Code Snippets and switched my theme to Twenty Nineteen and the
   issue still happens (403) for me.

Viewing 15 replies - 1 through 15 (of 26 total)

1 [2](https://wordpress.org/support/users/rolevine/replies/page/2/?output_format=md)
[→](https://wordpress.org/support/users/rolevine/replies/page/2/?output_format=md)