Support

Home Forums Event Espresso Premium Attempted upgrade to EE4, probs…

Attempted upgrade to EE4, probs…

Posted: February 11, 2014 at 2:43 am

Viewing 69 reply threads


Kevin Dillon

February 11, 2014 at 2:43 am

Warning: Illegal offset type in isset or empty in /event-espresso-core-reg/core/CPTs/EE_CPT_Strategy.core.php on line 159 – See more at: http://www.policecombat.com/event-registration/#sthash.jDbuw6e6.dpuf

Page = http://www.policecombat.com/event-registration/

  • This topic was modified 10 years, 9 months ago by Tony. Reason: Removed server details
  • This topic was modified 10 years, 9 months ago by Seth Shoultes. Reason: Fixed title


Kevin Dillon

February 11, 2014 at 2:49 am

An error has occurred:
The requested route 1 could not be mapped to any registered modules.
CR-MDLRQSRTR-RESROU-136 – See more at: http://www.policecombat.com/event-registration/?ee=1#sthash.aN4UBHKq.dpuf


Dean

February 11, 2014 at 2:52 am

Hi Kevin,

Thanks for the feedback.

What version of Event Espresso were you upgrading from?

Also, do you have wp_debug set to true in your wp_config.php file?


Kevin Dillon

February 11, 2014 at 2:55 am

Still error, but seeing new events page: http://www.policecombat.com/events/

Why no line breaks?

Looks like progress, we only have 5 events, and have not made event espresso public, yet, but really want to!!! asap, sorry!


Kevin Dillon

February 11, 2014 at 2:57 am

Omg thank you for quick reply!!! just set wp_debug=true


Kevin Dillon

February 11, 2014 at 3:01 am

Pretty sure upgraded from latest version, deleted old, installed new, data looks OK


Kevin Dillon

February 11, 2014 at 3:06 am

my a** is on the line to get this working, sorry, if possible please reach me at my email jed@jednet.com, or phone 203-984-4032 I am on hawaii time, so no worries


Dean

February 11, 2014 at 3:12 am

Hi Kevin,

Please do not set wp_debug to true, set it to false, I was just querying what it was originally set as.

Please can you advise what version of Event Espresso you upgraded from.

Please can you also advise if the database had been modified in any way before you upgraded.

Once we know this we can run some tests to see if we can replicate and fix the issue.


Kevin Dillon

February 11, 2014 at 3:15 am

Unsure if i can retrieve old version number. I did rename uploads/espresso folder before upgrade… No database mods whatsoever. Really need short-term help here thank you! will set debug to false, looks like espresso is trying to set session id?


Kevin Dillon

February 11, 2014 at 3:19 am

Only upgrade error i saw, i think, was we had the purchase order option on old version… and there is none in EE4? Maybe a conflict? We did want that option, we only purchased this less than a month ago, so version cannot be too ‘old’.


Kevin Dillon

February 11, 2014 at 3:34 am

Let’s do whatever it takes, this is not yet live. If we can work this out it would be awesome. LOVE the new layout, so much better. Does this work with event calendar plugin? Would it make more sense to trash current files and re-install? Please advise, and thank you for your time!


Kevin Dillon

February 11, 2014 at 3:51 am

Original error is showing up on all site pages… Warning: Illegal offset type in isset or empty in /hermes/bosweb25c/b1402/ipw.policeco1/public_html/wp-content/plugins/event-espresso-core-reg/core/CPTs/EE_CPT_Strategy.core.php on line 159 – See more at: http://www.policecombat.com/products-page/clothing/lockup-hoodie/#sthash.79QNC1RC.dpuf


Tony

  • Support Staff

February 11, 2014 at 3:57 am

Hi Kevin,

If the events are not live and you do not mind re-creating them then you can reset the data and start fresh. I can talk you through that in a moment.

May I ask, did you backup your database before updating to EE4?

If so would it be possible for you to send us a copy (and possibly a current back-up) to support@eventespresso.com so we can investigate the cause of this further.

The Calendar Plugin does NOT work with EE4 currently, it is on the development path. For more details on what is and is not available with EE4 take a look here:

https://eventespresso.com/topic/event-espresso-4-beta-now-available/


Kevin Dillon

February 11, 2014 at 4:03 am

Sent over database (13mb, sorry)

If I ‘remove files’ and re-install, do I need to tweak database? Can you walk me through it as mentioned?

LIVE pages are broken at the moment:
http://www.policecombat.com/products-page/clothing/lockup-hoodie/

Fatal error: Call to a member function is_set() on a non-object in /hermes/bosweb25c/b1402/ipw.policeco1/public_html/wp-content/plugins/event-espresso-core-reg/core/EE_Module_Request_Router.core.php on line 102


Dean

February 11, 2014 at 4:12 am

Hi Kevin,

Can you go to Event Espresso > maintenance, click the System Information tab and then copy and paste the Raw System Data here? http://take.ms/dEHl3

Also did you have any EE addons active at the time of upgrade and/or do you have any active now?


Kevin Dillon

February 11, 2014 at 4:19 am

Saved data to file, too big for post: *REMOVED*

Calendar addon was probably there.

  • This reply was modified 10 years, 9 months ago by Tony. Reason: Removed raw data


Kevin Dillon

February 11, 2014 at 4:22 am

i see references to event-espresso-free… could that cause anything?

Also, all posts on site now have that error above them, especially home page of LIVE site… policecombat.com – I have maybe an hour to have this running before they wake…


Dean

February 11, 2014 at 4:34 am

Ok well we are getting somewhere.

The secondary error is occurring because you are using the OLD event url, you need to use /events/ instead of /event-registration

I am still trying to track down why this Warning is appearing.


Kevin Dillon

February 11, 2014 at 4:38 am

Thank you Dean, I was about to uninstall / re-install. My client is on the account so I do not get notifications, you can reach me directly at jed@jednet.com . I’m not using ‘old event url’, the system is:

Go to http://www.policecombat.com/events/las-vegas-registration-collected-by-conference/

Select any amount of attendees, click continue, it then goes to /event-registration and NOT /events

I know my way around code, so throw me anything you can=)


Kevin Dillon

February 11, 2014 at 4:52 am

Found the following in wp_options, option name ee_config:

*removed*

  • This reply was modified 10 years, 9 months ago by Tony. Reason: remove db data


Kevin Dillon

February 11, 2014 at 5:00 am

Thanks Tony, think we are close, crossing fingers=)


Kevin Dillon

February 11, 2014 at 5:19 am

Still appears that event espresso code is appearing on ALL pages, trying to add a product to WP-Commerce cart triggers this error:

Fatal error: Call to a member function is_set() on a non-object in /hermes/bosweb25c/b1402/ipw.policeco1/public_html/wp-content/plugins/event-espresso-core-reg/core/EE_Module_Request_Router.core.php on line 102


Tony

  • Support Staff

February 11, 2014 at 5:24 am

Hi Kevin,

There’s a few options whilst we investigate this.

Make 100% you have a back-up of you DB, we have tested this extensively but things can and do go wrong (as can be seen)

We have a guide posted here https://eventespresso.com/wiki/how-to-back-up-your-site/

You can try resetting EE4’s data and start with a clean install whilst we investigate this further (on that note we havn’t received your db backup, 13mb attachments are usually over the email limit (usually 10mb) so if you could host that file somewhere so we can download it that would be much appreciated). Doing this you will need to re-create all the events etc

Go to Event Espresso -> Maintenance. On the tabs you’ll see ‘Reset/Delete Data’ click that then click the ‘Permanently Delete All Event Espresso Tables, Records, and Options’. That will remove all EE4 data and deactivate the plugin.

Reactivate EE4, go to Maintenance, on the migration options choose ‘Just Start EE4 with No Data’ http://d.pr/i/B7pY

OR

You can re-install EE3 and continue to use that whist we investigate. Just de-activate EE4, download Event Espresso from your account, upload as usual and activate. You may find some of your EE shortcodes have changed to the EE4 equivalents but can be easily changed back.

OR

You can restore the backup made from before EE4 was installed and continue using ee3.


Tony

  • Support Staff

February 11, 2014 at 5:25 am

Can you try de-activating WP-Commerce plugin and see if the error remains please?

  • This reply was modified 10 years, 9 months ago by Tony.


Kevin Dillon

February 11, 2014 at 5:30 am

Thanks Tony, will attempt. Loading databases before and after upgrade for your reference. Will provide links shortly.

Am apprehensive that EE code is contained in ‘all’ pages, and certainly conflicting with WP shopping cart. Would appreciate a work-around to not allow your code to appear in other sections / pages / posts etc.?

Otherwise I LOVE the improved layout, even though it needs a lot more work as obvious on our site. Rather not revert to EE3.

Thanks again!


Kevin Dillon

February 11, 2014 at 5:36 am

wp-commerce deactivated per request, error still shows


Tony

  • Support Staff

February 11, 2014 at 5:38 am

wp-commerce deactivated per request, error still shows

Thank you for testing this.

I’ve grabbed a copy of those files please remove them from the site to stop others.


Kevin Dillon

February 11, 2014 at 5:41 am

Will do,

FYI, deactivated all other plugins, EE4 only remains, deactivated Attachments, Gold Cart for WP e-Commerce, Google Custom Search Plugin, Search Everything, WordPress Gallery Plugin, WP e-Commerce… Error remains.


Kevin Dillon

February 11, 2014 at 5:51 am

Can you confirm there is no longer an ‘espresso’ folder within uploads in EE4?


Tony

  • Support Staff

February 11, 2014 at 6:02 am

After digging deep, there is no need to reset.

All that is happening is PHP is throwing a warning, for now we can disable error reporting and you should be good to go.

Add this to your wp_config.php file

@ini_set( 'log_errors', 'On' );
@ini_set( 'display_errors', 'Off' );
@ini_set( 'error_reporting', 4339 ); // Only log errors you will want to know about.
define( 'WP_DEBUG', false );
define( 'WP_DEBUG_LOG', false );
define( 'WP_DEBUG_DISPLAY', false );


Kevin Dillon

February 11, 2014 at 6:06 am

Already deactivated plugin and clicked on delete, yet all files remain, will attempt DB restore….


Tony

  • Support Staff

February 11, 2014 at 6:09 am

You should just be able to re-upload EE4 and activate without issue.


Kevin Dillon

February 11, 2014 at 6:20 am

Understood, just wanted to save data if possible


Tony

  • Support Staff

February 11, 2014 at 6:26 am

Sorry, that’s what I am saying, you can save your data.

Currently what is the setup now, have you reverted to your DB backup yet as you may not need to?


Kevin Dillon

February 11, 2014 at 6:27 am

am reverting, sry for delay, 2 chrome crashes abd db exceeded limit, almost back


Kevin Dillon

February 11, 2014 at 6:33 am

back to ‘normal’, applied wp-config edits, still, when going to event, adding attendees, then continue goes to /event-registration and not /events


Kevin Dillon

February 11, 2014 at 6:34 am

Try url: http://www.policecombat.com/events/leads-st-paul-mn/


Kevin Dillon

February 11, 2014 at 6:39 am

Try and ‘add to cart’ http://www.policecombat.com/products-page/clothing/lockup-hoodie/

No more event espresso error as we disabled errors…. See above for what error was being thrown….


Kevin Dillon

February 11, 2014 at 6:43 am

There should NOT be <pre><meta name='generator' content='Event Espresso Version 4.1.0.reg' /></pre> on every site page…. further EE4 code is on every page and throwing WP-commerce error…


Kevin Dillon

February 11, 2014 at 6:47 am

It’s 3:45 am here on Maui, I guess support opens in 15 minutes? Rather not have to go there, just really need this functioning, and it’s really close! Tweaking layout in EE3 proved to be a total nightmare…. sorry, any help (and future customers your way) would really be ideal!


Kevin Dillon

February 11, 2014 at 6:55 am

Removing code to eliminate errors for now if you are still working the problem.


Kevin Dillon

February 11, 2014 at 7:05 am

Switched to twenty ten theme for a second, no error, but adding attendees still goes to /event-registration instead of /events….


Tony

  • Support Staff

February 11, 2014 at 7:05 am

Hi Kevin,

Is it possible to get your login details so we can take a close look at your install?

Is so please use https://eventespresso.com/send-login-details/


Kevin Dillon

February 11, 2014 at 7:16 am

Sent everything, please let me know, would be awesome to talk on phone if possible, 203-984-4032


Kevin Dillon

February 11, 2014 at 7:17 am

sorry, ftp user = evt_espresso


Josh

  • Support Staff

February 11, 2014 at 7:31 am

Hi Kevin,

The developers need some time to investigate and work on a fix. It appears one of the issues here are conflicts between ee4, the gold cart, and the wp-ecommerce plugins. In the meantime we can advise deactivating ee4 and running EE3 while they work on this. We’ll update this post as soon as we find out more information.


Kevin Dillon

February 11, 2014 at 7:37 am

Thank you so much Josh! From my end, EE4 code is appearing on ALL pages, instead of just espresso pages, if there is a way to comment out this code I am certain all will work fine on wp-commerce pages. Should be an easy fix.


Tony

  • Support Staff

February 11, 2014 at 8:05 am

Hi,

One of the developers has come up with a possible solution if you are willing to test it?

Try the steps available within this Gist https://gist.github.com/nerrad/8936298

Note – this may not be a permanent or full solution but will help isolate if this is contributing to the issue you reported until the main developer for this area of Event Espresso can look into the system further.


Josh

  • Support Staff

February 11, 2014 at 8:23 am

Hi Kevin,

To your question about commenting out Event Espresso code so it doesn’t load on other pages, that’s not a solution because Event Espresso does minimal bootstrapping on each page. It has to otherwise its shortcodes wouldn’t work (because an Event Espresso shortcode can be on any page). Note that it’s minimal bootstrapping, it does not load the entire system on every page.


Kevin Dillon

February 11, 2014 at 8:23 am

PERFECT fix for WP-commerce, works fine now!!!

However, original problem from beginning is error being thrown on All posts:

Warning: Illegal offset type in isset or empty in /hermes/bosweb25c/b1402/ipw.policeco1/public_html/wp-content/plugins/event-espresso-core-reg/core/CPTs/EE_CPT_Strategy.core.php on line 159 – See more at: http://www.policecombat.com/#sthash.gT67F2Oo.dpuf

Also, when going to an event, adding attendees, clicking continue, brings you to /event-registration instead of /events…

Any luck on these?


Kevin Dillon

February 11, 2014 at 8:30 am

Please replicate above issues here: http://www.policecombat.com/events/ , then an event, http://www.policecombat.com/events/ add an attendee, goes to /event-registration, not /events, Warning message on all pages from beginning of this post, so sorry, so close!


Kevin Dillon

February 11, 2014 at 8:54 am

Code generated on right of course / event image is not formatted, just one string… Any ideas? <p>Event Details Event Phone: 860.436.6975 Ticket Options Available Tickets Price (each) Qty* General show&nbsp;details&nbsp;+ hide&nbsp;details&nbsp;- $0.91 (USD) &nbsp;0&nbsp; &nbsp;1&nbsp; &nbsp;2&nbsp; &nbsp;3&nbsp; &nbsp;4&nbsp; &nbsp;5&nbsp; Ticket Details Ticket Price Breakdown Name Description Amount General $0.91 (USD) Total Ticket Price $0.91 (USD) Ticket Sale Dates - The dates when this ticket is available for purchase. Goes On Sale:Monday<a href='http://www.policecombat.com/events/leads-st-paul-mn/' title='LEADS St Paul MN' class="readmore"> [...]</a></p>


Kevin Dillon

February 11, 2014 at 9:12 am

With above issues stated, would a $70 token for priority support (30 minutes) accomplish the following ‘soon’ it is now 6am here, been on with you all night:

Remove warning message on all pages

Correct ‘lack’ of formatting on event information – not sure how you could have it within a single p tag

Remove Author Date, and comment info, just have event title

Remove extra space between Event Details and Ticket Options

Remove About Author, Leave A Response, and Prev – Next slider on bottom

???


Kevin Dillon

February 11, 2014 at 9:14 am

2 major issues are warning message, and after adding attendees being directed to /event-registration instead of events, which i was told by you was wrong, is it?


Josh

  • Support Staff

February 11, 2014 at 9:24 am

Hi Kevin,

We’ll take these one at a time. For the illegal offset type warning, can you try making the change outlined in this gist:

With the checkout page going to the /event-registration page, that’s expected behavior if you have the the [ESPRESSO_CHECKOUT] shortcode on it. the /events page only displays the event info, it doesn’t handle the registration->checkout.

With the string of details issue, I saw that come up in testing where the theme uses the the_excerpt() template tag. There’s an open ticket to fix this. As a workaround you can either enter an excerpt for the event in the event editor -or- go into the Event Espresso General settings and try changing the setting for “Display Descriptions” under “Event List Pages” under the Templates tab.


Kevin Dillon

February 11, 2014 at 9:36 am

Thank you Josh! Made change to gist you posted, but error is on line after that and still appears.

Understood on /event-registration page, was told earlier that was wrong… sorry, makes perfect sense now! excellent!

Will look into string of details notes. ENDLESS thanks!


Kevin Dillon

February 11, 2014 at 9:47 am

Would like to have events is their own page, not titled Blog Archives…

In your control panel:
Events are custom post types and use WordPress’ normal archive pages for displaying events.
If you would still like your events on a page like in Event Espresso 3.1 or earlier, simply create a page and place a shortcode to display them on the page, as described here

Clicking on “here” takes me to page http://www.policecombat.com/wp-admin/admin.php?page=espresso_support&action=shortcodes

Says Nonce. fail and takes me to a Jedi video. I am a Jedi btw…

http://www.youtube.com/watch?v=56_S0WeTkzs


Josh

  • Support Staff

February 11, 2014 at 9:57 am

They’ll have that support link fixed in the next version. For now, here’s a link that takes you to the shortcode doc:

http://www.policecombat.com/wp-admin/admin.php?page=espresso_support


Kevin Dillon

February 11, 2014 at 10:07 am

http://www.policecombat.com/event-registration-2/

Using [ESPRESSO_EVENTS sort=”ASC”] shortcode, no content under ‘Upcoming Events’


Kevin Dillon

February 11, 2014 at 10:14 am

Tried Event Espresso General settings and try changing the setting for “Display Descriptions” under “Event List Pages” under the Templates tab.

Changed to Full and None, but no matter what after saving it reverts to excerpt…


Kevin Dillon

February 11, 2014 at 10:19 am

Cannot update following 3 settings within Templates tab:

Event List Pages

Display Descriptions
Display Address
Display Venue Details

All revert to their current settings after saving.

Am able to toggle Display Expired Events… That’s it…


Kevin Dillon

February 11, 2014 at 10:44 am

Disabling error messages as they are appearing on all pages:

Warning: Illegal offset type in isset or empty in /hermes/bosweb25c/b1402/ipw.policeco1/public_html/wp-content/plugins/event-espresso-core-reg/core/CPTs/EE_CPT_Strategy.core.php on line 160 – See more at: http://www.policecombat.com/event-registration/?ee=_register#sthash.TBRsDEY4.dpuf

Via wp-config:

<code>@ini_set( &#039;log_errors&#039;, &#039;On&#039; );
@ini_set( &#039;display_errors&#039;, &#039;Off&#039; );
@ini_set( &#039;error_reporting&#039;, 4339 ); // Only log errors you will want to know about.
define( &#039;WP_DEBUG&#039;, false );
define( &#039;WP_DEBUG_LOG&#039;, false );
define( &#039;WP_DEBUG_DISPLAY&#039;, false );</code>


Kevin Dillon

February 11, 2014 at 11:20 am

Look forward to some response, was supposed to launch today.


Brent Christensen

  • Support Staff

February 11, 2014 at 11:58 am

Hi Kevin,

Have you tried the fix outlined here yet ? https://gist.github.com/nerrad/8937840#file-test-fix-cpt-strategy-php


Kevin Dillon

February 11, 2014 at 12:10 pm

Indeed, see notes above


Kevin Dillon

February 11, 2014 at 12:11 pm

I disabled errors though, so not seeing it for now…


Kevin Dillon

February 11, 2014 at 12:14 pm

Gave full ftp access, and wordpress admin access, it’s 9am and been on this all night, not sure if I nod out, but any help appreciated


Brent Christensen

  • Support Staff

February 11, 2014 at 12:17 pm

so just to clarify…
you’re getting this error:

Warning: Illegal offset type in isset or empty in /core/CPTs/EE_CPT_Strategy.core.php on line 160

after adding the following code (starting at line 160) to /core/CPTs/EE_CPT_Strategy.core.php ?

if ( ! $WP_Query instanceof WP_Query || empty( $WP_Query->query_vars ) )
  return;

(sorry for all of the edits, I normally don’t post in the forums)


Kevin Dillon

February 11, 2014 at 12:37 pm

lines 155-160:

<code>	public function pre_get_posts( $WP_Query ) {
		if ( ! $WP_Query instanceof WP_Query || empty( $WP_Query-&gt;query_vars ) )
  return;
//		d( $WP_Query );
		// is current query for an EE CPT ?
		if ( isset( $WP_Query-&gt;query_vars[&#039;post_type&#039;] ) &amp;&amp; isset( $this-&gt;_CPTs[ $WP_Query-&gt;query_vars[&#039;post_type&#039;] ] )) {</code>


Kevin Dillon

February 11, 2014 at 12:39 pm

line 160: if ( isset( $WP_Query->query_vars[‘post_type’] ) && isset( $this->_CPTs[ $WP_Query->query_vars[‘post_type’] ] )) {


Kevin Dillon

February 11, 2014 at 6:40 pm

Just replied with correct ftp info, had a nap… sorry


Kevin Dillon

February 11, 2014 at 8:20 pm

Any updates? Especially want layout to work for descriptions – cannot set “Display Descriptions” in admin still, and would like to use shortcode on another page. Error message is still disabled…


Kevin Dillon

February 13, 2014 at 5:59 am

Any progress?


Tony

  • Support Staff

February 13, 2014 at 6:45 am

Hi Kevin,

The developers have been working on addressing the issues reported, we will release an update as soon as possible.

We have not forgotten about you and are working as quickly as we can 🙂


Kevin Dillon

February 13, 2014 at 9:28 am

Please continue to update me on progress. Tried a completely different theme as a backup, and it does not work at all: http://www.policecombat.com/ee4/events/overcoming-size-differences-st-paul-mn-2/

Cannot get anywhere. It looks like you have extreme conflicts with ‘any’ theme other than 2014?

Also on current site, there are now over 60 ‘Custom Fields’ within a single event all of a sudden. Please advise asap when we can expect to see any fixes, and by all means point me to where I can fix myself if possible.

Thanks so much!!!


Josh

  • Support Staff

February 13, 2014 at 3:10 pm

Hi Jed,

I wanted to let you know that we’ve fixed quite a few issues and released an update today. The changelog is here:

https://eventespresso.com/wiki/ee4-changelog/

Please note that theme specific issues caused by the Backstreet are not on that list. We’ve found that there are a lot of poorly coded themes available from Themeforest, so it’s not a coincidence that you’re having issues with both the Backstreet and Gameplan themes. I truly hope that Themeforest can get their new theme submission requirements rolled out sooner than later.

I am confident that you’ll find if you use any of the themes from the WordPress.org repository you’ll experience fewer issues on your site:

http://wordpress.org/themes/

If you want to go with paid for themes there are some great options listed here as well:

http://wordpress.org/themes/commercial/

Viewing 69 reply threads

The support post ‘Attempted upgrade to EE4, probs…’ 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