| @@ 291-293 (lines=3) @@ | ||
| 288 | ) |
|
| 289 | ); |
|
| 290 | } |
|
| 291 | if (! isset($setup_args['main_file_path']) || empty($setup_args['main_file_path'])) { |
|
| 292 | throw new EE_Error( |
|
| 293 | sprintf( |
|
| 294 | __( |
|
| 295 | 'When registering an addon, you didn\'t provide the "main_file_path", which is the full path to the main file loaded directly by Wordpress. You only provided %s', |
|
| 296 | 'event_espresso' |
|
| @@ 942-955 (lines=14) @@ | ||
| 939 | // don't give up! you gotta... |
|
| 940 | try { |
|
| 941 | //does the file exist and can it be read ? |
|
| 942 | if (! $path) { |
|
| 943 | // so sorry, can't find the file |
|
| 944 | throw new EE_Error ( |
|
| 945 | sprintf( |
|
| 946 | esc_html__( |
|
| 947 | 'The %1$s file %2$s could not be located or is not readable due to file permissions. Please ensure that the following filepath(s) are correct: %3$s', |
|
| 948 | 'event_espresso' |
|
| 949 | ), |
|
| 950 | trim($type, '.'), |
|
| 951 | $class_name, |
|
| 952 | '<br />' . implode(',<br />', $file_paths) |
|
| 953 | ) |
|
| 954 | ); |
|
| 955 | } |
|
| 956 | // get the file |
|
| 957 | require_once($path); |
|
| 958 | // if the class isn't already declared somewhere |
|
| @@ 3254-3256 (lines=3) @@ | ||
| 3251 | //then $possible_array_of_params looks something like array('<','DTT_sold',true) |
|
| 3252 | //indicating that $possible_array_of_params[1] is actually a field name, |
|
| 3253 | //from which we should extract query parameters! |
|
| 3254 | if (! isset($possibly_array_of_params[0], $possibly_array_of_params[1])) { |
|
| 3255 | throw new EE_Error(sprintf(__("Improperly formed query parameter %s. It should be numerically indexed like array('<','DTT_sold',true); but you provided %s", |
|
| 3256 | "event_espresso"), $query_param_type, implode(",", $possibly_array_of_params))); |
|
| 3257 | } |
|
| 3258 | $this->_extract_related_model_info_from_query_param($possibly_array_of_params[1], |
|
| 3259 | $model_query_info_carrier, $query_param_type); |
|