Title: Cornelia Villeneuve's Replies | WordPress.org

---

# Cornelia Villeneuve

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

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

 Search replies:

## Forum Replies Created

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

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

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Login Widget With Shortcode] login_redirect filter](https://wordpress.org/support/topic/login_redirect-filter/)
 *  Thread Starter [Cornelia Villeneuve](https://wordpress.org/support/users/codedogs/)
 * (@codedogs)
 * [8 years, 4 months ago](https://wordpress.org/support/topic/login_redirect-filter/#post-9895682)
 * Thank you.
 * The best solution turned out to be to add the following code into the **wp_login**
   add_action
 *     ```
       // check Login Sidebar Widget plugin is active
       if (is_plugin_active('login-sidebar-widget/login.php'))
       {
           add_filter('lwws_login_redirect', array(&$this, "redirectLogin"), 10, 2);
       }
       ```
   
 * Where redirectLogin looks like:
 *     ```
       public function redirectLogin($redirect_to, $userID) 
       {
          $user_meta = get_userdata($userID);
          /* add code to determine where to redirect to */
          return $newURL;
       }
       ```
   
 * _I tried adding the filter on the plugins\_loaded action, but it was too early_
    -  This reply was modified 8 years, 4 months ago by [Cornelia Villeneuve](https://wordpress.org/support/users/codedogs/).
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [[Twenty Fourteen] Widgets function not working](https://wordpress.org/support/topic/widgets-function-not-working/)
 *  [Cornelia Villeneuve](https://wordpress.org/support/users/codedogs/)
 * (@codedogs)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/widgets-function-not-working/#post-8905805)
 * [Check out Fatal Error: Twenty_Fourteen_Ephemera_Widget redeclared](https://wordpress.org/support/topic/fatal-error-twenty_fourteen_ephemera_widget-redeclared/)
 * The above post is a complaint I made 2 years ago that has gone unresolved. It
   makes all new widgets based on this theme not compile.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Simple Calendar - Google Calendar Plugin] Timezone changes to UTC](https://wordpress.org/support/topic/timezone-changes-to-utc/)
 *  Thread Starter [Cornelia Villeneuve](https://wordpress.org/support/users/codedogs/)
 * (@codedogs)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/timezone-changes-to-utc/#post-5950357)
 * Just when I thought I had it completely solved.
 * Do not make the change in class-gc-event.php function process_shortcode. By doing
   so, the time zone changes by -4 hours.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Simple Calendar - Google Calendar Plugin] Timezone changes to UTC](https://wordpress.org/support/topic/timezone-changes-to-utc/)
 *  Thread Starter [Cornelia Villeneuve](https://wordpress.org/support/users/codedogs/)
 * (@codedogs)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/timezone-changes-to-utc/#post-5950356)
 * Sorry, I do not have a GitHub account, you can do it on my behalf.
 * I modified the plug-in as I described and it is working consistently now. The
   3 calls to get_option are in class-gce-event.php and class-gce-feed.php
 * Pretty sure by modifying the php.ini file you can reproduce the problem, but 
   it appears to take up to 24 hours to reproduce.
 * The website I’m using the Google Calendar Events plug-in in is [http://www.OrleansArmyCadets.ca](http://www.OrleansArmyCadets.ca).
   I wrote short code to display the contents of the event on a post by extracting
   it from the gce_feed transient.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Simple Calendar - Google Calendar Plugin] Timezone changes to UTC](https://wordpress.org/support/topic/timezone-changes-to-utc/)
 *  Thread Starter [Cornelia Villeneuve](https://wordpress.org/support/users/codedogs/)
 * (@codedogs)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/timezone-changes-to-utc/#post-5950352)
 * **Found it!**
 * There are 3 calls to
    $ctz = get_option( ‘timezone_string’ );
 * However there are NO calls to: _date\_default\_timezone\_set($ctz)_
 * In a plug-in I wrote last year, I ran into a similar problem because no matter
   what I did, timestamps always displayed in UTC. The conclusion I came to was 
   that WordPress was NOT setting the time zone, so any call to **mktime** would
   result in a UTC time instead of America/Toronto. By adding the following code
   after each of the above 3 get_option calls, I managed to get it to display the
   timestamp using the proper time zone.
    `if (!empty( $ctz )) { date_default_timezone_set(
   $ctz); }’
 * phpinfo() shows **Default timezone ** is set to UTC hence the reason it is showing
   times in UTC.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Simple Calendar - Google Calendar Plugin] Timezone changes to UTC](https://wordpress.org/support/topic/timezone-changes-to-utc/)
 *  Thread Starter [Cornelia Villeneuve](https://wordpress.org/support/users/codedogs/)
 * (@codedogs)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/timezone-changes-to-utc/#post-5950322)
 * Happened again. Times were in UTC again. Google Calendar looked fine.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Simple Calendar - Google Calendar Plugin] Timezone changes to UTC](https://wordpress.org/support/topic/timezone-changes-to-utc/)
 *  Thread Starter [Cornelia Villeneuve](https://wordpress.org/support/users/codedogs/)
 * (@codedogs)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/timezone-changes-to-utc/#post-5950261)
 * Had it happen again this morning, but a **different** flavour. Instead of UTC,
   my widget started displaying using **the 12 hour clock instead of 24**.
 * Reset the feed and all was well again.
 * Very odd.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Simple Calendar - Google Calendar Plugin] An error has occured. Not Found](https://wordpress.org/support/topic/an-error-has-occured-not-found-2/)
 *  Thread Starter [Cornelia Villeneuve](https://wordpress.org/support/users/codedogs/)
 * (@codedogs)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/an-error-has-occured-not-found-2/#post-5909068)
 * Thank you for being so responsive. Do you work for Google by any chance?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Simple Calendar - Google Calendar Plugin] Google Calendar Events "Error has occured" message..](https://wordpress.org/support/topic/google-calendar-events-error-has-occured-message/)
 *  [Cornelia Villeneuve](https://wordpress.org/support/users/codedogs/)
 * (@codedogs)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/google-calendar-events-error-has-occured-message/#post-5761573)
 * Actually, I’ve ran across this error again today. A post with GCE short code 
   was bringing it up
 * “An error has occured. Not Found”
 * **The Cause:** The Google Calendar id associated with this feed had “.ics” appended
   to the end of it for some reason. None of the other feeds had this.
 * **Solution:** Remove the “.ics” from the Google Calendar id associated with the
   feed.
 * **Recommendation:** Aside from the misspelt word “occured”, it needs two Rs not
   one. I recommend changing the error message to be more informative. I needed 
   to grep the entire website, to determine where the error was coming from.
 * class-gce-feed.php get_feed_data line 200
    replace the above error with:
 *     ```
       $this->error = __( 'An unexpected error has occurred in Calendar feed: ', 'gce' ) . $this->id;
       $this->error .= '<pre>' . $raw_data['error']['message'] . '</pre>';
       ```
   
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Override twentyfourteen functions.php using child theme](https://wordpress.org/support/topic/override-twentyfourteen-functionsphp-using-child-theme/)
 *  [Cornelia Villeneuve](https://wordpress.org/support/users/codedogs/)
 * (@codedogs)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/override-twentyfourteen-functionsphp-using-child-theme/#post-4612578)
 * Actually the underlying problem lies in TwentyFourteen’s functions.php code. 
   The registration for Twenty_Fourteen_Ephemera_Widget is done incorrectly in twentyfourteen_widget_init().
   I ran across the same problem when I was adding widgets to my child theme.
 * To correct the problem remove the following line from twentyfourteen_widget_init()
   `
   register_widget( 'Twenty_Fourteen_Ephemera_Widget' );` and move the `require ..
   widgets.php` above the function. Rename the function **twentyfourteen_widget_init**
   to **twentyfourteen_sidebar_init**. Do not forget to rename it in add_action(‘
   widgets_init’, ‘twentyfourteen_widget_init’ );
 * In widgets.php paste the following at the bottom of the file:
 *     ```
       function twentyfourteen_widgets_init() {
       	register_widget( 'Twenty_Fourteen_Ephemera_Widget' );
       	do_action('widgets_init');
       }
       // call widget initialization
       add_action('init', 'twentyfourteen_widgets_init');
       ```
   
 * To summarize, the function containing **register_sidebar ** is queued using **
   add_action (‘widgets_init’.
    
   However the function containing register_widget
   must perform do_action(‘widget_init’) after all widgets have been registered.
   This function is then queued using add_action (‘init’
 * A quick look at WordPress’ default-widgets.php will show the correct way to initialize
   widgets.
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [[GeneratePress] left/right_sidebar_width not functioning](https://wordpress.org/support/topic/leftright_sidebar_width-not-functioning/)
 *  Thread Starter [Cornelia Villeneuve](https://wordpress.org/support/users/codedogs/)
 * (@codedogs)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/leftright_sidebar_width-not-functioning/#post-5522267)
 * I had that and yet in did not work.
 * I only found references to these 2 filters in extras.php i.e. generate_left_sidebar_classes(),
   generate_content_classes(), and generate_right_sidebar_classes()
 *     ```
       $right_sidebar_width = apply_filters( 'generate_right_sidebar_width', '25' );
       	$left_sidebar_width = apply_filters( 'generate_left_sidebar_width', '25' );
       ```
   
 * There appear to be no references to left_sidebar_width and right_sidebar_width
   in spacing.php aside from the array declaration. It is likely, this value is 
   not used.
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [[GeneratePress] left/right_sidebar_width not functioning](https://wordpress.org/support/topic/leftright_sidebar_width-not-functioning/)
 *  Thread Starter [Cornelia Villeneuve](https://wordpress.org/support/users/codedogs/)
 * (@codedogs)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/leftright_sidebar_width-not-functioning/#post-5522230)
 * Much better.
 * I guess left_sidebar_width and right_sidebar_width assigned in generate_spacing_get_defaults()
   in spacing.php are obsolete?
 * Thank you very much
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WP Photo Album Plus] wppa_get_permalink 404 error](https://wordpress.org/support/topic/wppa_get_permalink-404-error/)
 *  Thread Starter [Cornelia Villeneuve](https://wordpress.org/support/users/codedogs/)
 * (@codedogs)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/wppa_get_permalink-404-error/#post-5396685)
 * Verified in WP Photo Album Plus version 5.4.14
 * Thank you, Jacob
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[PlugIn: WP Photo Album Plus] wppa_get_permalink 404 error](https://wordpress.org/support/topic/plugin-wp-photo-album-plus-wppa_get_permalink-404-error/)
 *  Thread Starter [Cornelia Villeneuve](https://wordpress.org/support/users/codedogs/)
 * (@codedogs)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/plugin-wp-photo-album-plus-wppa_get_permalink-404-error/#post-4953278)
 * Fixed in WP Photo Album Plus version 5.4.14
 * Thank you, Jacob
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Simple Calendar - Google Calendar Plugin] Date missing – grouped-list: days vs events](https://wordpress.org/support/topic/date-missing-grouped-list-days-vs-events/)
 *  Thread Starter [Cornelia Villeneuve](https://wordpress.org/support/users/codedogs/)
 * (@codedogs)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/date-missing-grouped-list-days-vs-events/#post-5366896)
 * Downloaded version 2.0.5 and the grouped-list of events is now proceeded by the
   date.
 * Thank you.

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

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