Posted: 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/
|
|
An error has occurred: |
|
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? |
|
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! |
|
Omg thank you for quick reply!!! just set wp_debug=true |
|
Pretty sure upgraded from latest version, deleted old, installed new, data looks OK |
|
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 |
|
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. |
|
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? |
|
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’. |
|
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! |
|
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 |
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/ |
|
|
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: 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 |
|
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? |
|
Saved data to file, too big for post: *REMOVED* Calendar addon was probably there.
|
|
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… |
|
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. |
|
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=) |
|
Found the following in wp_options, option name ee_config: *removed*
|
|
Thanks Tony, think we are close, crossing fingers=) |
|
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 |
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. |
|
Can you try de-activating WP-Commerce plugin and see if the error remains please?
|
|
|
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! |
|
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. |
|
|
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. |
|
Can you confirm there is no longer an ‘espresso’ folder within uploads in EE4? |
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 ); |
|
|
Already deactivated plugin and clicked on delete, yet all files remain, will attempt DB restore…. |
You should just be able to re-upload EE4 and activate without issue. |
|
|
Understood, just wanted to save data if possible |
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? |
|
|
am reverting, sry for delay, 2 chrome crashes abd db exceeded limit, almost back |
|
back to ‘normal’, applied wp-config edits, still, when going to event, adding attendees, then continue goes to /event-registration and not /events |
|
Try url: http://www.policecombat.com/events/leads-st-paul-mn/ |
|
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…. |
|
There should NOT be |
|
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! |
|
Removing code to eliminate errors for now if you are still working the problem. |
|
Switched to twenty ten theme for a second, no error, but adding attendees still goes to /event-registration instead of /events…. |
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/ |
|
|
Sent everything, please let me know, would be awesome to talk on phone if possible, 203-984-4032 |
|
sorry, ftp user = evt_espresso |
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. |
|
|
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. |
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. |
|
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. |
|
|
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? |
|
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! |
|
Code generated on right of course / event image is not formatted, just one string… Any ideas? |
|
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 ??? |
|
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? |
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. |
|
|
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! |
|
Would like to have events is their own page, not titled Blog Archives… In your control panel: 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… |
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 |
|
|
http://www.policecombat.com/event-registration-2/ Using [ESPRESSO_EVENTS sort=”ASC”] shortcode, no content under ‘Upcoming Events’ |
|
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… |
|
Cannot update following 3 settings within Templates tab: Event List Pages Display Descriptions All revert to their current settings after saving. Am able to toggle Display Expired Events… That’s it… |
|
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( '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 );</code> |
|
Look forward to some response, was supposed to launch today. |
Hi Kevin, Have you tried the fix outlined here yet ? https://gist.github.com/nerrad/8937840#file-test-fix-cpt-strategy-php |
|
|
Indeed, see notes above |
|
I disabled errors though, so not seeing it for now… |
|
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 |
so just to clarify…
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)
|
|
|
lines 155-160: <code> public function pre_get_posts( $WP_Query ) { if ( ! $WP_Query instanceof WP_Query || empty( $WP_Query->query_vars ) ) return; // d( $WP_Query ); // is current query for an EE CPT ? if ( isset( $WP_Query->query_vars['post_type'] ) && isset( $this->_CPTs[ $WP_Query->query_vars['post_type'] ] )) {</code> |
|
line 160: if ( isset( $WP_Query->query_vars[‘post_type’] ) && isset( $this->_CPTs[ $WP_Query->query_vars[‘post_type’] ] )) { |
|
Just replied with correct ftp info, had a nap… sorry |
|
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… |
|
Any progress? |
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 🙂 |
|
|
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!!! |
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: If you want to go with paid for themes there are some great options listed here as well: |
|
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.