Skip to content

Instantly share code, notes, and snippets.

View altuno's full-sized avatar

altuno

  • Swiss Photo Club
  • Switzerland
View GitHub Profile
<?php
/*
Plugin Name: Site plugin for genevaphotoclub.com
Description: Site specific code for genevaphotoclub.com
*/
/* Begin Adding Functions Below This Line; Do not include an opening PHP tag as this sample code already includes one! */
//* Allow state or province field to be a text field and make it optional
add_filter( 'FHEE__EE_Billing_Attendee_Info_Form__state_field', 'billing_locale_text_field', 10, 1 );
<!-- Hotjar Tracking Code for https://www.coursesurf.com/ -->
<script>
(function(h,o,t,j,a,r){
h.hj=h.hj||function(){(h.hj.q=h.hj.q||[]).push(arguments)};
h._hjSettings={hjid:262591,hjsv:5};
a=o.getElementsByTagName('head')[0];
r=o.createElement('script');r.async=1;
r.src=t+h._hjSettings.hjid+j+h._hjSettings.hjsv;
a.appendChild(r);
})(window,document,'//static.hotjar.com/c/hotjar-','.js?sv=');
[07-Nov-2016 22:39:30 UTC] PHP Notice: Undefined variable: wc_cart in /home/clients/1d989383ee11099bb2d8468c003d5c0c/web/wp-content/themes/Avada/includes/woo-config.php on line 714
[07-Nov-2016 22:39:31 UTC] PHP Notice: Undefined variable: wc_cart in /home/clients/1d989383ee11099bb2d8468c003d5c0c/web/wp-content/themes/Avada/includes/woo-config.php on line 714
[07-Nov-2016 22:39:32 UTC] PHP Notice: Undefined offset: 0 in /home/clients/1d989383ee11099bb2d8468c003d5c0c/web/wp-content/plugins/wp-google-analytics-events/ga-scroll-event.php on line 170
[07-Nov-2016 22:39:32 UTC] PHP Notice: Undefined variable: wc_cart in /home/clients/1d989383ee11099bb2d8468c003d5c0c/web/wp-content/themes/Avada/includes/woo-config.php on line 714
[07-Nov-2016 22:39:36 UTC] PHP Notice: Undefined variable: wc_cart in /home/clients/1d989383ee11099bb2d8468c003d5c0c/web/wp-content/themes/Avada/includes/woo-config.php on line 714
[07-Nov-2016 22:39:36 UTC] PHP Notice: Undefined offset: 0 in /home/clients/1d989383ee11099bb2d8468c003
<style>
.time{
min-width:100px;
}
.start_date{
min-width:60px;
}
</style>
<?php
[07-Nov-2016 22:39:30 UTC] PHP Notice: Undefined variable: wc_cart in /home/clients/1d989383ee11099bb2d8468c003d5c0c/web/wp-content/themes/Avada/includes/woo-config.php on line 714
[07-Nov-2016 22:39:31 UTC] PHP Notice: Undefined variable: wc_cart in /home/clients/1d989383ee11099bb2d8468c003d5c0c/web/wp-content/themes/Avada/includes/woo-config.php on line 714
[07-Nov-2016 22:39:32 UTC] PHP Notice: Undefined offset: 0 in /home/clients/1d989383ee11099bb2d8468c003d5c0c/web/wp-content/plugins/wp-google-analytics-events/ga-scroll-event.php on line 170
[07-Nov-2016 22:39:32 UTC] PHP Notice: Undefined variable: wc_cart in /home/clients/1d989383ee11099bb2d8468c003d5c0c/web/wp-content/themes/Avada/includes/woo-config.php on line 714
[07-Nov-2016 22:39:36 UTC] PHP Notice: Undefined variable: wc_cart in /home/clients/1d989383ee11099bb2d8468c003d5c0c/web/wp-content/themes/Avada/includes/woo-config.php on line 714
[07-Nov-2016 22:39:36 UTC] PHP Notice: Undefined offset: 0 in /home/clients/1d989383ee11099bb2d8468c003
[08-Nov-2016 14:30:05 UTC] PHP Notice: Undefined offset: 0 in /home/clients/1d989383ee11099bb2d8468c003d5c0c/web/wp-content/uploads/espresso/templates/template.oa.php on line 104
[08-Nov-2016 14:30:05 UTC] PHP Notice: Trying to get property of non-object in /home/clients/1d989383ee11099bb2d8468c003d5c0c/web/wp-content/uploads/espresso/templates/template.oa.php on line 104
[08-Nov-2016 14:30:05 UTC] PHP Notice: Undefined offset: 0 in /home/clients/1d989383ee11099bb2d8468c003d5c0c/web/wp-content/uploads/espresso/templates/template.oa.php on line 107
[08-Nov-2016 14:30:05 UTC] PHP Notice: Trying to get property of non-object in /home/clients/1d989383ee11099bb2d8468c003d5c0c/web/wp-content/uploads/espresso/templates/template.oa.php on line 107
[08-Nov-2016 14:30:07 UTC] PHP Notice: Undefined offset: 0 in /home/clients/1d989383ee11099bb2d8468c003d5c0c/web/wp-content/uploads/espresso/templates/template.oa.php on line 190
[08-Nov-2016 14:30:07 UTC] PHP Notice: Trying to get property of non-object in /home/clie
[Fri Dec 02 11:46:30 2016] [error] [client 84.72.221.195] File does not exist: /home/clients/1d989383ee11099bb2d8468c003d5c0c/web/dev/fr, referer: https://www.genevaphotoclub.com/dev/?page_id=10998
[Fri Dec 02 11:46:51 2016] [error] [client 84.72.221.195] File does not exist: /home/clients/1d989383ee11099bb2d8468c003d5c0c/web/dev/fr, referer: https://www.genevaphotoclub.com/dev/?page_id=10998
[Fri Dec 02 12:11:04 2016] [error] [client 83.79.20.79] FastCGI: server "/home/clients/1d989383ee11099bb2d8468c003d5c0c/.config/apache/www.genevaphotoclub.com/.fpm/php5.external" stderr: PHP message: PHP Fatal error: Uncaught Error: Call to a member function format() on boolean in /home/clients/1d989383ee11099bb2d8468c003d5c0c/web/wp-content/plugins/event-espresso-core-reg/core/domain/entities/DbSafeDateTime.php:52, referer: https://www.genevaphotoclub.com/registration-checkout/?uts=1480676938
[Fri Dec 02 12:11:04 2016] [error] [client 83.79.20.79] FastCGI: server "/home/clients/1d989383ee11099bb2d8468c003d5c0c/.config/
//* Add instructor name to EE4 CSV Download
add_filter( 'FHEE__EE_Export__report_registrations__reg_csv_array', 'espresso_add_author_to_report', 10, 2);
function espresso_add_author_to_report( $reg_csv_array, $reg_row ) {
$event_id = $reg_row['Registration.EVT_ID'];
$event = EEM_Event::instance()->get_one_by_ID( $event_id );
if ( $event instanceof EE_Event ) {
$post_author = get_post_field( 'post_author', $event_id );
$author_info = get_userdata( $post_author );
$reg_csv_array['Author'] = $author_info->last_name . ", " . $author_info->first_name;
<?php
/*
Plugin Name: Site plugin for genevaphotoclub.com
Description: Site specific code for genevaphotoclub.com
*/
/* Begin Adding Functions Below This Line; Do not include an opening PHP tag as this sample code already includes one! */
//* Gravity forms hide labels option enable
add_filter( 'gform_enable_field_label_visibility_settings', '__return_true' );
@altuno
altuno / Server Log
Created May 5, 2017 10:59
Server Log during "White page" after upgrading to WooCommerce MultiLingual 4.1.3
[Thu May 04 09:43:18 2017] [error] [client 52.71.86.129] Rejected, too many connections from this host. (vhost:www.genevaphotoclub.com uri:/courses/intermediate-photography-weekday-evening-class/ current:31 limit:30, referer: https://www.genevaphotoclub.com
[Thu May 04 09:43:19 2017] [error] [client 52.71.86.129] Rejected, too many connections from this host. (vhost:www.genevaphotoclub.com uri:/courses/street-photography-course/ current:31 limit:30, referer: https://www.genevaphotoclub.com
[Thu May 04 09:43:19 2017] [error] [client 52.71.86.129] Rejected, too many connections from this host. (vhost:www.genevaphotoclub.com uri:/courses/portrait-photography-course/ current:31 limit:30, referer: https://www.genevaphotoclub.com
[Thu May 04 09:43:19 2017] [error] [client 52.71.86.129] Rejected, too many connections from this host. (vhost:www.genevaphotoclub.com uri:/courses/night-low-light-photography-course/ current:31 limit:30, referer: https://www.genevaphotoclub.com
[Thu May 04 09:43:19 2017] [error] [client 5