Forum Replies Created
-
AuthorPosts
-
Hi,
Is that related to the missing post parameters? It’s true that with a large mashup the amount of data can be fairly large – maybe a worst case of 1k per post – but a few hundred posts shouldn’t cause a timeout.
Maybe the back-end is running very slow. The fact that it’s intermittent might indicate a lot of users on your site (or someone else’s, if it’s a shared server).
If you think that’s the problem you can use posts_per_page to limit the mashup size.
Hi,
I took a look at the site and I can see an extra (null) character is being prepended to the location data, which seems to cause the error.
I’m not sure if this is an error with the plugin, or something else. Can you think of any recent recent changes to the system – i.e., new plugins, new PHP version, etc. that might be related?
Here’s an easy way to check if AJAX is working at all on your site. Go to this URL in your browser. If it returns ‘0’ it’s working (replace ‘www.yoursite.com’ with your site)
http://www.yoursite.com/wp-admin/admin-ajax.phpIf you’d like to troubleshoot further here’s the steps:
1. Deactivate ALL other plugins
2. Switch to a standard theme
3. Email me a login (using the contact form)Probably best to do this on a test site, or make a database copy of the main site to test with.
Hi,
I don’t think I can run requests in parallel, but you can always switch back to the original plugin or modify the version I sent you (the code in in mappress_query.php).
Buffering was just a guess – I was trying to think of something that might be uniquely configured on that server, or might be mangled by another plugin. Did that seem to fix the problem?
What do the PHP and Apache logs show during an error?
No, I’m afraid not. You can set the plugin to open the post or open the POI (which defaults to the address), but there’s no setting to do nothing at all.
No, I didn’t receive anything from you. Please resend using the contact form or email me directly so I can reply with the debug version.
Hi,
Looking at the two files, it seems like the map ‘name’ parameter isn’t being used in the one that fails. The parameter is set directly from $_POST and I see it in the request, so I don’t know why it wouldn’t always make it to the PHP code. Also, the opening “{” is missing in the failing response, which would make it invalid JSON – is that a typo or was it really missing?
I assume both requests are from the same page, so I don’t know why the data would be invalid in one request but not the other.
The logs may give some clues.
The plugin uses output buffering, so it’s possible there’s some issue there. I can give you a version of the plugin that will write some debugging info to the error log and remove the buffering, which may help. You’ll need to use the contact form to email me directly.
Ok, send them over. Have you checked the PHP and Apache logs yet?
Hi,
Move the get_links() call to the top of file ‘map_poi.php’. Copy the file to your theme/child theme directory first and edit the copy, or it’ll be overwritten in the next upgrade.
Hi,
I think both requests completed successfully. The second request should just return “0”, not map data. It’s just a test to see if the server can be reached.
Intermittent problems are tough to troubleshoot, but you should look at the Apache and PHP logs when the problem occurs. Have you done that yet?
If you like, you can email me the log files the next time you see a glitch.
June 6, 2014 at 4:17 am in reply to: How to mashup a single map with all specific categories maps #14800Hi,
Sorry, but the plugin doesn’t support that – you’ll need to use two different maps.
Hi Kelly,
Sorry, but no, that’s not a feature of the plugin. You could possibly show pages from another site in an iframe, but to show just only the map in the iframe you would need a custom template page for that purpose (i.e. without a menu, header, etc).
Hi,
It’s probably something to do with your theme CSS. Have you tried switching to a standard theme for a moment to check?
If that’s the issue, you can use Firebug or IE/Chrome development tools to find the styles being applied to the map’s container (‘mapp0-layout’).
If that doesn’t help please provide a URL.
Hi,
The map editor is designed to run only in the admin. You could do this as a workaround:
1. On the frontend let the users just enter their address
2. Create or update a post on the backend for the business. In that post, populate a custom field ‘address’.
3. Configure the MapPress settings to generate a map from field ‘address’This way a map will be generated in the business post when it is created or updated on the backend – not as nice as seeing it immediately, but it may work for you.
Hi,
This is a CSS question, so the solution may depend on your theme. I think you want to show two maps on the right and wrap the text around them?
If so, one way to do it is to place both maps in a containing div and float that div right. Don’t set alignment in the map shortcodes – the div will take care of floating them. Output the text after that div.
Here’s an example – enter it in the HTML tab of the WordPress editor. It outputs the same map twice but you can adjust the shortcodes as needed:
<div style="float:right"> [mappress width="200px"] [mappress width="200px"] </div> <p>the quick brown</p> <p>fox jumped over the</p> <p>lazy dog</p>Hi,
It seems like the server is not responding to an AJAX request. I couldn’t reproduce the problem on that test page but if it’s intermittent maybe I just didn’t catch it.
I suggest checking both the PHP server logs and Apache logs. They should provide a clue about why the server isn’t answering. Unless it’s a connectivity problem, the only thing I can think of is an out of memory error (which would be in the PHP/Apache logs).
To test for a connectivity issue, you can just call admin-ajax.php directly – if you don’t see “0” output then the server didn’t respond:
http://ds.lclark.edu/jproctor/wp-admin/admin-ajax.php -
AuthorPosts
