Support has been upgraded!
The Support Forum is closed. Not to worry! Providing the top quality support you expect and we're known for will continue! We're not ending support, just changing where you submit requests. This will provide you with the best experience possible.
Premium Support
Have you purchased an addon for Connections such as one of our premium templates or extensions with a valid license and you need help?
Please open a Support Ticket in your user account.
Free Support
Are you using the free Connections plugin? Don't worry, you are still very important to us! We are still providing you with the same high quality support that we're known for.
Please open a new support topic in the WordPress support forums for Connections.
Tagged: 8.3.1, error, php, update, wp_list_pluck
- This topic has 19 replies, 3 voices, and was last updated 7 years, 6 months ago by
Andy.
-
AuthorPosts
-
07/12/2015 at 12:28 pm #339921
Andy Castle
ParticipantThis reply has been marked as private.07/13/2015 at 11:37 am #339970Steven Zahm
Keymaster@ Andy
I still have not been able to duplicate the error you are seeing. All that I’m certain at this point is that it seems to occur for you in AJAX requests (you might have noticed the error is present in the settings JSON file) and when AI1EC fetches its javascript.
Can you make a temporary change the the
wp_list_pluck()
function? change it from this:function wp_list_pluck( $list, $field, $index_key = null ) { if ( ! $index_key ) { /* * This is simple. Could at some point wrap array_column() * if we knew we had an array of arrays. */ foreach ( $list as $key => $value ) { if ( is_object( $value ) ) { $list[ $key ] = $value->$field; } else { $list[ $key ] = $value[ $field ]; } } return $list; } /* * When index_key is not set for a particular item, push the value * to the end of the stack. This is how array_column() behaves. */ $newlist = array(); foreach ( $list as $value ) { if ( is_object( $value ) ) { if ( isset( $value->$index_key ) ) { $newlist[ $value->$index_key ] = $value->$field; } else { $newlist[] = $value->$field; } } else { if ( isset( $value[ $index_key ] ) ) { $newlist[ $value[ $index_key ] ] = $value[ $field ]; } else { $newlist[] = $value[ $field ]; } } } return $newlist; }
to this:
function wp_list_pluck( $list, $field, $index_key = null ) { if ( ! $index_key ) { /* * This is simple. Could at some point wrap array_column() * if we knew we had an array of arrays. */ foreach ( $list as $key => $value ) { if ( is_object( $value ) ) { $list[ $key ] = $value->$field; } else { $list[ $key ] = $value[ $field ]; } } return $list; } /* * When index_key is not set for a particular item, push the value * to the end of the stack. This is how array_column() behaves. */ $newlist = array(); foreach ( $list as $value ) { if ( is_object( $value ) ) { if ( isset( $value->$index_key ) ) { $newlist[ $value->$index_key ] = $value->$field; } else { $newlist[] = $value->$field; } } else { if ( isset( $value[ $index_key ] ) ) { $newlist[ $value[ $index_key ] ] = $value[ $field ]; } else { if( 'name' == $field && !isset( $value[ $field ] ) ){ echo wp_debug_backtrace_summary(); wp_die(''); } $newlist[] = $value[ $field ]; } } } return $newlist; }
The difference is that I added the following to be fore line 3220:
if( 'term_id' == $field && !isset( $value[ $field ] ) ){ echo wp_debug_backtrace_summary(); wp_die(''); }
What does this do? The error is caused when wp_list_pluck() is called to with $field set to ‘name’ – but an element in the passed array does not contain that as a key. This checks for such a situation and then prints the trace: this indicates which function it was called by, and which function called that, and so on.
You should see a series of function/method names indicating the sequence in which the functions were called.
wp_die() kills the process so we don’t lose the trace with a page redirect or something.
You site may or may not continue to work after after this change. What is important is to get a copy of the output of
wp_debug_backtrace_summary()
. After you do, then the file can be changed back.07/14/2015 at 2:59 am #340019Andy Castle
ParticipantThis reply has been marked as private.07/14/2015 at 8:56 am #340034Steven Zahm
Keymaster@ Andy
Not sure how or even if Connections can even be causing the conflict with the images. I do not see any javascript errors like I would expect. When I look at the CSS for the slider elements, I find this in the theme’s CSS:
.custom-hb-box img { display: block; width: 100%; height:100%; -webkit-transition: opacity .2s linear; -moz-transition: opacity .2s linear; -o-transition: opacity .2s linear; -ms-transition: opacity .2s linear; transition: opacity .2s linear; opacity: 1 }
If the
height:100%;
declaration is removed, the images display just fine. Perhaps there was an update to the theme recently and this was not noticed???As for debugging the Connections issue… If you give me a temp admin account and a FTP login. I can track down the issue and fix it very quickly. This would save use a lot of back forth. The login details can be sent using the contact link at the bottom of the page. Please paste a link to this support thread so I can relate the two. I’ll begin work immediately after receiving the login info. Thanks!
07/14/2015 at 11:15 am #340048Andy Castle
ParticipantThis reply has been marked as private.07/14/2015 at 11:26 am #340049Andy Castle
ParticipantThis reply has been marked as private.07/14/2015 at 12:08 pm #340050Steven Zahm
Keymaster@ Andy
Ok, I was able to quickly identify and fix the issue. I’ll be releasing an update later today, version 8.3.2 which will include this fix as well a few other minor edge case bugs.
One other item I noticed… I saw that none of the support licenses were activated on your site. If they are not activated, you will not receive the updates (fyi, there is a newer version of Form available). I do not know if this is intentional or not so I let it as is. I do highly recommend you activate your licenses so you can receive your updates.
Apologies for the trouble! And, thank you for your patience!
If you have a moment, I would truly appreciate a review as they really do make a difference. Many thanks in advance!
https://wordpress.org/support/view/plugin-reviews/connections
07/14/2015 at 12:33 pm #340053Andy Castle
ParticipantThis reply has been marked as private.07/14/2015 at 1:28 pm #340059Steven Zahm
Keymaster@ Andy
Sure, I fixed the activation… the licenses were activated on the site: storrington.org. I deactivated that site and activated them for storrington.org.uk.
Hope that helps! And, thanks for taking the time to leave a review.
07/14/2015 at 5:21 pm #340106Andy
GuestThat explains it: thanks for sorting this out and
thanks for all your help resolving the update problem.
I’m really pleased I chose Connections. Excellent support service.Cheers,
Andy. -
AuthorPosts
You cannot reply to this support topic. Please open your own support topic.