Title: Larry Lewis's Replies | WordPress.org

---

# Larry Lewis

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

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

 Search replies:

## Forum Replies Created

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

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

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Simple Ajax Chat – Add a Fast, Secure Chat Box] The message is not being sent.](https://wordpress.org/support/topic/the-message-is-not-being-sent/)
 *  [Larry Lewis](https://wordpress.org/support/users/jenolan/)
 * (@jenolan)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/the-message-is-not-being-sent/page/2/#post-17276217)
 * OK after a lot of experimenting add this to a new file in the directory;
 * > /wp-content/plugins/simple-ajax-chat/.htaccess
 *     ```wp-block-code
       <FilesMatch "\.(?i:php)$">
         <IfModule !mod_authz_core.c>
           Order deny,allow
           Allow from all
         </IfModule>
         <IfModule mod_authz_core.c>
           Require all granted
         </IfModule>
       </FilesMatch>
       ```
   
 * That will override the security widget, tested on my local test system.
 * **Note: **Will fail if debugging is enabled
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Simple Ajax Chat – Add a Fast, Secure Chat Box] Session warning](https://wordpress.org/support/topic/session-warning-2/)
 *  Thread Starter [Larry Lewis](https://wordpress.org/support/users/jenolan/)
 * (@jenolan)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/session-warning-2/#post-17240639)
 * Fixed, at the top of wp-cron.php it is sending headers which then causes the 
   session setting to fail….
 *     ```wp-block-code
       <?php // Simple Ajax Chat > Chat Form
   
       if (!defined('ABSPATH')) exit;
   
       if (sac_is_session_started() === false) {
       	if( defined( 'DOING_CRON' ) AND DOING_CRON === TRUE )
       	{
       		return;
       	}
   
       	if (session_status() === PHP_SESSION_NONE) {
   
       		$simple_ajax_chat_domain = (isset($_SERVER['HTTP_HOST']) && !empty($_SERVER['HTTP_HOST'])) ? sanitize_text_field($_SERVER['HTTP_HOST']) : null;
   
       		if ($simple_ajax_chat_domain) {
       			session_set_cookie_params('21600', '/', $simple_ajax_chat_domain, false, true);
   
       			session_start(array('read_and_close' => true));
   
       		}
   
       	}
   
       }
       ```
   
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Simple Ajax Chat – Add a Fast, Secure Chat Box] Session warning](https://wordpress.org/support/topic/session-warning-2/)
 *  Thread Starter [Larry Lewis](https://wordpress.org/support/users/jenolan/)
 * (@jenolan)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/session-warning-2/#post-17240617)
 * v8.2 … it is not cli as that was there when I did it from command line as a test.
 * It is hitting this warning every cron call, which is invoked as;
 *     ```wp-block-code
       */15 * * * * wget --delete-after https://jenolan.org/wp-cron.php >/dev/null 2>&1
       ```
   
 * Just ran it manually and it threw the warning hmmmm I will add some code to your
   function to see if I can work out why it is triggering 😉
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Simple Ajax Chat – Add a Fast, Secure Chat Box] Session warning](https://wordpress.org/support/topic/session-warning-2/)
 *  Thread Starter [Larry Lewis](https://wordpress.org/support/users/jenolan/)
 * (@jenolan)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/session-warning-2/#post-17240568)
 * I would hazard a guess it is happening inside cron call, I read somewhere that
   current php you can not use reliably(line 25);
 *     ```wp-block-code
       if (php_sapi_name() !== 'cli') {
       ```
   
 * trying to find the explanation, will post when/if found
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Smarter Archives] Take over plugin](https://wordpress.org/support/topic/take-over-plugin-2/)
 *  Thread Starter [Larry Lewis](https://wordpress.org/support/users/jenolan/)
 * (@jenolan)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/take-over-plugin-2/#post-13262409)
 * Pushed the small changes and update to being compatible with WP 5.5, plan on 
   doing a small spring clean of the code then see about adding the top line of 
   years (as an option).
 * I like this plugin because it is free with none of these ubiquitous ‘pro’ stuff,
   really tired of finding plugins that say they will do something but then find
   that most of it is ‘pro’ with ‘yearly support’ … getting off soapbox.
 * Be well,
    Larry
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Smarter Archives] Take over plugin](https://wordpress.org/support/topic/take-over-plugin-2/)
 *  Thread Starter [Larry Lewis](https://wordpress.org/support/users/jenolan/)
 * (@jenolan)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/take-over-plugin-2/#post-13262265)
 * G’day I have done one fix, was looking at adding the gist you did as a shortcode
   option next. Do not really need to take over if you will be the manager 😉
    -  This reply was modified 5 years, 10 months ago by [Larry Lewis](https://wordpress.org/support/users/jenolan/).
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Simple Ajax Chat – Add a Fast, Secure Chat Box] View only allowed if Require users to be logged in set](https://wordpress.org/support/topic/view-only-allowed-if-require-users-to-be-logged-in-set/)
 *  Thread Starter [Larry Lewis](https://wordpress.org/support/users/jenolan/)
 * (@jenolan)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/view-only-allowed-if-require-users-to-be-logged-in-set/#post-12771224)
 * Ummm … the code says;
 * `<?php if ($use_username && !empty($logged_username)) : ?>`
 * Which if I am reading it right says if the setting ‘use_username’ is ON and the
   user is logged in then it shows the ‘Name: {name}’ there is no further ‘if’ to
   not display, the emit code follows immediately.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Simple Ajax Chat – Add a Fast, Secure Chat Box] View only allowed if Require users to be logged in set](https://wordpress.org/support/topic/view-only-allowed-if-require-users-to-be-logged-in-set/)
 *  Thread Starter [Larry Lewis](https://wordpress.org/support/users/jenolan/)
 * (@jenolan)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/view-only-allowed-if-require-users-to-be-logged-in-set/#post-12771185)
 * Backed off my code mod, added the css didn’t work, should be
 * `#sac-user-info { display: none; }`
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Simple Ajax Chat – Add a Fast, Secure Chat Box] View only allowed if Require users to be logged in set](https://wordpress.org/support/topic/view-only-allowed-if-require-users-to-be-logged-in-set/)
 *  Thread Starter [Larry Lewis](https://wordpress.org/support/users/jenolan/)
 * (@jenolan)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/view-only-allowed-if-require-users-to-be-logged-in-set/#post-12771035)
 * I have modded the output to suit .. no worries
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Simple Ajax Chat – Add a Fast, Secure Chat Box] View only allowed if Require users to be logged in set](https://wordpress.org/support/topic/view-only-allowed-if-require-users-to-be-logged-in-set/)
 *  Thread Starter [Larry Lewis](https://wordpress.org/support/users/jenolan/)
 * (@jenolan)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/view-only-allowed-if-require-users-to-be-logged-in-set/#post-12770912)
 * ok need to have the logon option set to off, but now the username is not hidden
   😉
    -  This reply was modified 6 years, 1 month ago by [Larry Lewis](https://wordpress.org/support/users/jenolan/).
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Simple Ajax Chat – Add a Fast, Secure Chat Box] View only allowed if Require users to be logged in set](https://wordpress.org/support/topic/view-only-allowed-if-require-users-to-be-logged-in-set/)
 *  Thread Starter [Larry Lewis](https://wordpress.org/support/users/jenolan/)
 * (@jenolan)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/view-only-allowed-if-require-users-to-be-logged-in-set/#post-12770901)
 * Yes .. it says you need to be logged in to access chat, that is with ‘Require
   users to be logged in to view and use the chat box.’ on and ‘Display chat messages
   as read-only. So visitors can view chats, but not add their own.’ on
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Simple Ajax Chat – Add a Fast, Secure Chat Box] View only allowed if Require users to be logged in set](https://wordpress.org/support/topic/view-only-allowed-if-require-users-to-be-logged-in-set/)
 *  Thread Starter [Larry Lewis](https://wordpress.org/support/users/jenolan/)
 * (@jenolan)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/view-only-allowed-if-require-users-to-be-logged-in-set/#post-12770874)
 * I have that what I would like is that the chat be visible but that the entry 
   not be available unless logged in.
 *   Forum: [Developing with WordPress](https://wordpress.org/support/forum/wp-advanced/)
   
   In reply to: [comments_array filter issue](https://wordpress.org/support/topic/comments_array-filter-issue/)
 *  Thread Starter [Larry Lewis](https://wordpress.org/support/users/jenolan/)
 * (@jenolan)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/comments_array-filter-issue/#post-12766658)
 * ug .. yes that fixed it bugger!
 * Thanks!!!
    Larry
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Menu Control for aMember] Uncaught Error Class Am_Lite](https://wordpress.org/support/topic/uncaught-error-class-am_lite/)
 *  Plugin Author [Larry Lewis](https://wordpress.org/support/users/jenolan/)
 * (@jenolan)
 * [8 years, 4 months ago](https://wordpress.org/support/topic/uncaught-error-class-am_lite/#post-9979706)
 * No longer coding aMember, asked them to take over but they refused. Have asked
   for this plugin to be removed
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Code Snippets CPT] Page list wonky](https://wordpress.org/support/topic/page-list-wonky/)
 *  Thread Starter [Larry Lewis](https://wordpress.org/support/users/jenolan/)
 * (@jenolan)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/page-list-wonky/#post-8242750)
 * Sorry another the snippet description doesn’t seem to be placed above the code.

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

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