Forum Replies Created
-
AuthorPosts
-
November 16, 2015 at 3:31 pm in reply to: Previous and Next buttons (suddenly) not navigating from initial page in List #1026639
Steven
ParticipantNot sure if changing the quotes to straight (from curly) affects anything, but your fix seems to be working now. I will keep an eye on it to make sure — and look into updating the plug-in, as suggested. Thank you!
November 16, 2015 at 2:57 pm in reply to: Previous and Next buttons (suddenly) not navigating from initial page in List #1026624Steven
ParticipantThank you for the new idea on eliminating the warning. However, this code throws a new warning:
Warning: array_map() expects parameter 1 to be a valid callback, function ‘‘floatval’’ not found or invalid function name in /home/ageofloveadmin/public_html/wp-content/themes/src/functions.php on line 75
(Line 75 is “return array_map( ‘floatval’, $geocords );”Wondering, as I didn’t see this issue discussed in the forum – did the Google API update cause a problem for others using this version of Events Calendar? Any ideas from co-workers (other than updating the plugin)?
Also, what is the code you mention earlier that turns warnings off? With thanks…
Steven
November 15, 2015 at 8:00 pm in reply to: Previous and Next buttons (suddenly) not navigating from initial page in List #1026089Steven
ParticipantBrian –
Since I’m not a PHP coder, could you possible provide all three lines of replacement code you’re suggesting when you say to “wrap it and stop the warning”? When I do the following (which is what I thought you meant), it breaks the plug-in:
function temp_fix_geocoords_breakage if (is_array( $geocords )) {
return array_map( ‘floatval’, $geocords );
}
add_filter( ‘transient_geoloc_center_point_estimation’, ‘temp_fix_geocoords_breakage’ );Also, I’d love to upgrade the plugin, but am concerned about how the events display in the custom template might be affected (without a coder on board). Is there a document that explains what specifically is changed in the new version, and points out potential areas of concern? Thank you! S.
November 6, 2015 at 11:48 am in reply to: Previous and Next buttons (suddenly) not navigating from initial page in List #1022641Steven
ParticipantThat is, to simply clear the warning, is there a way to tweak your code snippet so that, in this array_map(), Argument #2 is an array?
The link that’s failing:
return array_map( ‘floatval’, $geocords );
November 6, 2015 at 11:08 am in reply to: Previous and Next buttons (suddenly) not navigating from initial page in List #1022626Steven
ParticipantI did not upgrade the software, as I’m worried, without a coder on board (and using a customized template) that unexpected, hard-to-fix errors might appear on this all-important web page.
This PHP Warning only showed up after I was using your fix for a week, and it’s intermittent. Do you have any ideas what it refers to and how to tweak it to remove the Warning?
With many thanks….
November 6, 2015 at 9:39 am in reply to: Previous and Next buttons (suddenly) not navigating from initial page in List #1022607Steven
ParticipantThis fix solves the navigation issue, but a warning is now intermittently displayed across the top of the webpage:
Warning: array_map(): Argument #2 should be an array in /home/ageofloveadmin/public_html/wp-content/themes/src/functions.php on line 70
Line 70, from the code you provided that I cut and pasted, is: return array_map( ‘floatval’, $geocords );
October 29, 2015 at 6:07 pm in reply to: Previous and Next buttons (suddenly) not navigating from initial page in List #1020121Steven
ParticipantThat works, yes, thank you for answering and having the right info!
Before I close out, do you suggest staying with the older Events plug-in I have, as I’m not able to troubleshoot in JS/PHP if new issues arise — or will I run into an increasing number of errors as other software is updated, such as Google was?
Is the update simply a matter of clicking on the ‘update plug-in’ link? And, if I do that, could my data/layout/functionality be altered in a way I’d need a programmer to fix?
Thank you!
October 29, 2015 at 3:48 pm in reply to: Previous and Next buttons (suddenly) not navigating from initial page in List #1020076Steven
ParticipantThe links began working again at 6:41, as I was inspecting code using the developer console. Nothing was changed. Then the issue recurred, a minute later.
I do see, upon clicking these links, the following alert appears in the console:
Uncaught InvalidValueError: not an Object(anonymous function) @ js?sensor=false&ver=3.8.3:38M @ js?sensor=false&ver=3.8.3:42(anonymous function) @ tribe-events-ajax-maps.min.js?ver=3.9.1:1c @ jquery.js?ver=1.10.2:3p.fireWith @ jquery.js?ver=1.10.2:3x.extend.ready @ jquery.js?ver=1.10.2:3q @ jquery.js?ver=1.10.2:3
Any thoughts on what’s going on?
-
AuthorPosts
