Support

Home Forums Pre-Releases EE 4.0 beta

EE 4.0 beta

Posted: June 25, 2013 at 4:43 pm


Novak Rogic

June 25, 2013 at 4:43 pm

I am currently using the EE4.0 beta on a localhost install of WordPress 3.5.1 and am encountering several issues.

One issue that I’m getting is not being able to access the Pricing Management page. When I click on the Pricing Management page fromt he event creation screen, I get the WordPress page that says that I do not have sufficient permissions even though I am the super-admin for the localhost WordPress network.

Another issue that I’m encountering is when I register for an event, after clicking on the “Confirm Registration” button in step 3, the thank you page generates these errors and nothing else.

Warning: array_key_exists() expects parameter 2 to be array, null given in ../wp-content/plugins/event-espresso-core/includes/classes/EE_Thank_You_Page.class.php on line 149

 

Warning: Cannot modify header information – headers already sent by (output started at ../wp-content/plugins/event-espresso-core/includes/classes/EE_Thank_You_Page.class.php:149) in ../wp-includes/pluggable.php on line 876

when I check if the user is confirmed for the event in the admin dashboard, it appears they are confirmed and registered for the event.


Garth

  • Support Staff

June 25, 2013 at 4:55 pm

Hi Roger,

I sent you an updated version of Event Espresso 4.0. Please report back whether you experience this issue again or not?


Novak Rogic

July 2, 2013 at 11:57 am

Hi Garth,

I am no longer experiencing this issue with the updated version of Event Espresso 4.0 that you sent me. However I am now getting a new issue when using the [EVENT_LIST] shortcode.

When using the shortcode, I get the two following warnings regardless if there is an event or not.

<code>Warning: array_merge() [function.array-merge]: Argument #2 is not an array in ../wp-content/plugins/event-espresso-core/templates/event_list.php on line 104

Warning: extract() expects parameter 1 to be array, null given in ../wp-content/plugins/event-espresso-core/templates/event_list.php on line 106</code>

I don’t get these messages for the [ESPRESSO_EVENTS] shortcode. This is using EE 4.0.1.beta.8 on a new WordPress site on a multisite install. I have tried this on another localhost install as well, but the warnings persist.


Garth

  • Support Staff

July 2, 2013 at 2:28 pm

Hi Novak,

How are you today?

I don’t experience the same issue (see the bottom of this page): http://garthkoyle.com/EE4/jam-session-attendees/

I’ll try testing with a new database and install and see what happens.


Garth

  • Support Staff

July 2, 2013 at 2:36 pm

Yep, the basic [EVENT_LIST] shortcode on a new install and don’t get the same issue. I’m not sure if you are experiencing that issue because you’re running multi-site or not. I’ll try and ping the lead developer and see if he has any suggestions.

Here is my second attempt with the shortcode: http://garthkoyle.com/EE4-2/event-list-page/


Garth

  • Support Staff

July 2, 2013 at 2:47 pm

I’ll send you a new version, but it would probably be good if you requested access to the our GitHub repo so you have access to the latest (up-to-the-minute) version: https://eventespresso.com/developers/request-repo-access/


Brent Christensen

  • Support Staff

July 2, 2013 at 2:56 pm

Hi Novak,

Open up your /includes/shortcodes.php file, go to line 698 and change the function declaration from:

function display_event_list_sc($atts) {

to:

function display_event_list_sc( $atts = array() ) {

you probably had zero attributes listed for your EVENT_LIST shortcode, so WordPress was passing NULL to the callback function, which was then getting passed on to the function that builds the event list. This change should ensure that an empty array gets passed instead of a NULL value.


Novak Rogic

July 2, 2013 at 3:30 pm

@brent,

Yep, having zero attributes in the shortcode will trigger the error. I have made the changes in the shortcodes file but the warning messages are still being displayed.

@garth,

I will try the shortcode again on a new install on the localhost without multisite enabled and report back.

Thanks for the help.


Garth

  • Support Staff

July 2, 2013 at 3:49 pm

Ok.

Just sent you the latest version with Brent’s fix included.


Brent Christensen

  • Support Staff

July 2, 2013 at 4:31 pm

sorry about that, I didn’t test my fix. Assumed that WordPress was just failing to send a value, but I guess they are explicitly sending NULL if there are no attributes!!!

so to fix this for good, open up /templates/event_list.php and at line 102, insert this just before the comment “// let’s just merge the arrays”:

$attributes = is_array( $attributes ) ? $attributes : array();

This fix will work for you.


Novak Rogic

July 10, 2013 at 4:28 pm

I have been testing the new build for over a week now. Brent’s fix works nicely for the event list shortcode. Just one more question. I have noticed that custom template pages don’t seem to be supported anymore. I have some template pages that I wish to migrate from EE 3.3 and was wondering if there is a way to do that in the new version without editing the core.


Josh

  • Support Staff

July 11, 2013 at 8:34 am

Hi Novak,

There might be a way depending on what the templates are designed to display. A lot of what’s going into 4.x right now is adding support for custom post types so building custom templates will be a lot more flexible.


Novak Rogic

July 11, 2013 at 10:08 am

Hi Josh,

The templates that I’m migrating from EE 3.3 are not too different from the default templates that EE comes packaged with. All I’m doing is changing some of the themeroller classes into twitter bootstrap classes and moving around some of the event content. I’m just wondering if the method to load custom templates in 4.X will be as easy as dragging and dropping the template files into the uploads folder like in 3.3


Josh

  • Support Staff

July 11, 2013 at 10:47 am

For now I believe 4.0 still checks for templates in /wp-content/uploads/espresso/templates. This is subject to change after everything gets converted over to Custom Post Types because it might work out to load custom templates directly from the theme’s directory.

The support post ‘EE 4.0 beta’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso