theshine
Forum Replies Created
-
Forum: Plugins
In reply to: [Comprehensive Google Map Plugin] jquerey error after wordpress 3.6 updatedrtonyb, yes you’re right. I removed the reference to 1.10.2 as it was the cause of my problems. I used the enqueue script to replace it with 1.7.2. Since there is no external dev site for CB, I can’t switch the live site back to 1.10.2 without everything blowing up. (I mean, I can do it for two seconds, but not for prolonged periods.) If you want to ping me via my bumpershine email (google the site), I could do it for you at a specific time (if you were so inclined).
Forum: Plugins
In reply to: [Comprehensive Google Map Plugin] jquerey error after wordpress 3.6 updatedrtonyb I have put the site back to that state, with the .js mod only, and I still get the annoying v. 1.3 popup. Right now I’m using jquery 1.7.2 which seems to keep all my plugins working (see the wp_enqueue_script example I posted above). If you use wp_enqueue_script(‘jquery’) for versions 1.9.0 and up I “think” it also adds the migrate-1.2.1 script back in to the head automatically. (wp_deregister_script certainly takes it away, but my logic could be wrong though.)
Forum: Plugins
In reply to: [Comprehensive Google Map Plugin] jquerey error after wordpress 3.6 updateI tried making the various changes to framework.js code, but the only thing that worked for me was deregistering and reregistering jquery with another version in functions.php. (See my previous response.)
Forum: Plugins
In reply to: [Comprehensive Google Map Plugin] jquerey error after wordpress 3.6 updatedrtonyb the comment is gone, the map is still not working. The jquery check still fails. The second jquery include in my theme was hard coded into the head, which I also removed, but that breaks the slider and doesn’t fix the map. For some people, code like this might work in functions.php (if you don’t want to hack the .js files).
if(!is_admin()){ wp_deregister_script('jquery'); wp_register_script('jquery', ("https://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"), false, '1.8.3'); wp_enqueue_script('jquery'); }
This will put your jquery back to 1.8.3 which was the version included in WP 3.5.
Forum: Plugins
In reply to: [Comprehensive Google Map Plugin] jquerey error after wordpress 3.6 updatedrtonyb I commented out the check version line (I added the “//” on purpose) because the code you suggested wasn’t working for my install, so I thought I might have some luck with no check version at all. I’m pretty sure 1.64 is coming from a different plugin (that I haven’t yet deduced). I was thinking if I had no version checks, the thing might work, but it doesn’t. I’ll add back the jq version checks, you’ll see that it still doesn’t work. My next thought was to use a filter to change or remove the call to 1.10.2.
Forum: Plugins
In reply to: [Comprehensive Google Map Plugin] jquerey error after wordpress 3.6 updateI’ve tried all the fixes in this post, but I’m still having trouble with the plugin. Anyone want to look at the <head> on this page for other possible conflicts.
https://www.culinarybackstreets.com/shanghai/2013/yuyang-laozhen/I haven’t yet tried to turn off every plugin and then retest. Right now I’m suppressing the error message, but maps still won’t load.
Thanks
Forum: Plugins
In reply to: [Comprehensive Google Map Plugin] jquerey error after wordpress 3.6 updateponderconsulting, not sure why you got that error, possibly you commented out too much. Glad you got it working, I’m going to try the framework.js fix now.
Forum: Plugins
In reply to: [Comprehensive Google Map Plugin] jquerey error after wordpress 3.6 updateThis was triple posted by wp.org. Please ignore.
Forum: Plugins
In reply to: [Comprehensive Google Map Plugin] jquerey error after wordpress 3.6 updateThis was double posted by wp.org. Please ignore.
Forum: Plugins
In reply to: [Comprehensive Google Map Plugin] jquerey error after wordpress 3.6 updateI tried the other fixes, with the exception of the jquery-updater and things haven’t worked so far. What I did was a hack to get rid of the ugly error, but it has not fixed my problem. This will just buy you some time while you search out a real fix:
Edit the head.php file in the comprehensive google map plugin:
/wp-content/plugins/comprehensive-google-map-plugin/head.php
(You can also get there from the plugin editor in the dashboard)Comment out all of theses echos:
echo "<object id='global-data-placeholder' style='background-color:transparent !important;border:none !important;height:0 !important;left:10000000px !important;line-height:0 !important;margin:0 !important;outline:medium none !important;padding:0 !important;position:absolute !important;top:100000px !important;width:0 !important;z-index:9999786 !important'>".PHP_EOL; echo " <param id='sep' name='sep' value='".CGMP_SEP."' />".PHP_EOL; echo " <param id='cssHref' name='cssHref' value='".CGMP_PLUGIN_URI."style.css?ver=".CGMP_VERSION."' />".PHP_EOL; echo " <param id='language' name='language' value='".$cgmp_global_map_language."' />".PHP_EOL; echo " <param id='customMarkersUri' name='customMarkersUri' value='".CGMP_PLUGIN_IMAGES."/markers/' />".PHP_EOL; echo " <param id='errors' name='errors' value='".$global_error_messages_json_template."' />".PHP_EOL; echo " <param id='translations' name='translations' value='".$info_bubble_translated_template."' />".PHP_EOL; echo "</object> ".PHP_EOL;
That will get rid of the error, but probably won’t fix the problem.
Forum: Fixing WordPress
In reply to: New "welcometotheglobalisnet" malware script targetting wp sitesThe script doesn’t live in the files, it lives in the database (at least that was the case for me). GoDaddy backs up files regularly, but not databases (at least not on-site). If you don’t see the script on your site anymore, you might be OK, but it really can’t hurt to run the SQL script. Make sure you back up your database before you attempt to make the changes though.
Forum: Fixing WordPress
In reply to: New "welcometotheglobalisnet" malware script targetting wp sitesYou need to execute that command in your SQL server client. If you have GoDaddy, then you will need to login to PHPMyAdmin.
Forum: Fixing WordPress
In reply to: New "welcometotheglobalisnet" malware script targetting wp sitesHere’s how I disinfected the virus, hopefully that’s it:
UPDATE wp_posts
SET post_content=(
REPLACE (post_content,
‘<script src=\”https://welcometotheglobalisnet.com/js.php?kk=25\”></script>’,
”));Any advice on hardening?
Forum: Plugins
In reply to: Time of comments doesn’t show properlyIt’s totally hackish, but you can go into /wp-includes/comment-template.php and change the get_comment_time function to look something like this:
function get_comment_time( $d = ‘h:i a’, $gmt = false, $translate = true ) {
Adding the ‘h:i a’ should give you the current time, bear in mind this file will probably get overwritten next time you upgrade WordPress. Also this is really “not” the right way to do things. You should call get_comment_time() in the comments.php template and initialize it with the correct arguments at the time. Unfortunately though, the wp_list_comments() function (which most people use) doesn’t accept a time formatting argument, which would make everyone’s life easier.
Forum: Fixing WordPress
In reply to: Looking to Sort Custom Fields by Meta Data ValuesI posted the code for the calendar with a little explanation on how it works over here.