Title: jkovis's Replies | WordPress.org

---

# jkovis

  [  ](https://wordpress.org/support/users/jkovis/)

 *   [Profile](https://wordpress.org/support/users/jkovis/)
 *   [Topics Started](https://wordpress.org/support/users/jkovis/topics/)
 *   [Replies Created](https://wordpress.org/support/users/jkovis/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/jkovis/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/jkovis/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/jkovis/engagements/)
 *   [Favorites](https://wordpress.org/support/users/jkovis/favorites/)

 Search replies:

## Forum Replies Created

Viewing 15 replies - 1 through 15 (of 412 total)

1 [2](https://wordpress.org/support/users/jkovis/replies/page/2/?output_format=md)
[3](https://wordpress.org/support/users/jkovis/replies/page/3/?output_format=md)…
[26](https://wordpress.org/support/users/jkovis/replies/page/26/?output_format=md)
[27](https://wordpress.org/support/users/jkovis/replies/page/27/?output_format=md)
[28](https://wordpress.org/support/users/jkovis/replies/page/28/?output_format=md)
[→](https://wordpress.org/support/users/jkovis/replies/page/2/?output_format=md)

 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Some how my got hacked but only shows wrong in google search engine](https://wordpress.org/support/topic/some-how-my-got-hacked-but-only-shows-wrong-in-google-search-engine/)
 *  [jkovis](https://wordpress.org/support/users/jkovis/)
 * (@jkovis)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/some-how-my-got-hacked-but-only-shows-wrong-in-google-search-engine/#post-9111192)
 * This looks like an SEO hack. The spam content will only be visible if your browser’s
   user agent matches a search engine crawler’s user agent.
 * I’d find a browser plugin that will spoof your browser’s user agent so you can
   see it for yourself and then contact a developer to investigate the hack.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Only Internal Access to Site – No external access](https://wordpress.org/support/topic/only-internal-access-to-site-no-external-access/)
 *  [jkovis](https://wordpress.org/support/users/jkovis/)
 * (@jkovis)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/only-internal-access-to-site-no-external-access/#post-9111155)
 * It looks like the site url and home url options were saved with your server’s
   local IP address instead of the domain you want to use.
 * What happens when you try adding the following to your wp-config.php file?
 *     ```
       define( 'WP_SITEURL', 'http://zstream.chickenkiller.com' );
       define( 'WP_HOME',    'http://zstream.chickenkiller.com' );
       ```
   
 *   Forum: [Developing with WordPress](https://wordpress.org/support/forum/wp-advanced/)
   
   In reply to: [Send file using wp_safe_remote_post](https://wordpress.org/support/topic/send-file-using-wp_safe_remote_post/)
 *  [jkovis](https://wordpress.org/support/users/jkovis/)
 * (@jkovis)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/send-file-using-wp_safe_remote_post/#post-9045454)
 * What happens if you try calling wp_remote_post() instead of wp_safe_remote_post()?
 * wp_safe_remote_post() calls [wp_http_validate_url()](https://developer.wordpress.org/reference/functions/wp_http_validate_url/)
   which might be rejecting the URL.
 *   Forum: [Developing with WordPress](https://wordpress.org/support/forum/wp-advanced/)
   
   In reply to: [How to create a post meta key / value page](https://wordpress.org/support/topic/how-to-create-a-post-meta-key-value-page/)
 *  [jkovis](https://wordpress.org/support/users/jkovis/)
 * (@jkovis)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/how-to-create-a-post-meta-key-value-page/#post-9045380)
 * I would suggest looking into using a [custom taxonomy](https://developer.wordpress.org/reference/functions/register_taxonomy/)
   instead of post_meta. You can limit it certain post types and you will automatically
   get [taxonomy archive pages](https://developer.wordpress.org/themes/template-files-section/taxonomy-templates/)(
   i.e. example.com/label/label-name/) and the database queries are much more efficient
   that doing meta queries.
    -  This reply was modified 9 years, 1 month ago by [jkovis](https://wordpress.org/support/users/jkovis/).
 *   Forum: [Developing with WordPress](https://wordpress.org/support/forum/wp-advanced/)
   
   In reply to: [wordpress wp_ajax_[ACTION] display a broken image](https://wordpress.org/support/topic/wordpress-wp_ajax_action-display-a-broken-image/)
 *  [jkovis](https://wordpress.org/support/users/jkovis/)
 * (@jkovis)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/wordpress-wp_ajax_action-display-a-broken-image/#post-8967324)
 * Can you confirm that you’re running the code in the same environment/server as
   the non-wp_ajax version? When I tried your code I had to install GD to get it
   to work, but it sounds like that’s not the issue since you had it working before.
 * What do the admin-ajax.php response headers look like? Is the Content-type header
   sent as image/png?
 * Lastly, you might want to start adding some error_log() calls like this to your
   ws_resize_img function in order to try and narrow down where it’s breaking:
 *     ```
       $log = print_r( array(
       	'file'  => __FILE__ . ' on line ' . __LINE__,
       	'src'   => isset( $_GET['src'] ) && ! empty( $_GET['src'] ) ? urldecode( $_GET['src'] ) : 'not set/empty',
       	'arr'   => $arr,
       	'ext'   => $ext,
       	'image' => $image
       ), true );
       error_log( $log );
       ```
   
 * I hope that helps and am interested to learn what’s causing the problem.
 *   Forum: [Developing with WordPress](https://wordpress.org/support/forum/wp-advanced/)
   
   In reply to: [wordpress wp_ajax_[ACTION] display a broken image](https://wordpress.org/support/topic/wordpress-wp_ajax_action-display-a-broken-image/)
 *  [jkovis](https://wordpress.org/support/users/jkovis/)
 * (@jkovis)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/wordpress-wp_ajax_action-display-a-broken-image/#post-8957187)
 * I have a feeling that your wp_ajax actions are not being added/fired…where are
   your `add_action( 'wp_ajax_` code and `ws_resize_img` function located?
 * When I tested your code I received a 300×300 png image using a larger jpg source
   file. To do so I put your code into my theme’s functions.php file which is always
   included in every WordPress request. You might want to make sure your code is
   there or in its own plugin.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [link is being stripped, how to stop?](https://wordpress.org/support/topic/link-is-being-stripped-how-to-stop/)
 *  [jkovis](https://wordpress.org/support/users/jkovis/)
 * (@jkovis)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/link-is-being-stripped-how-to-stop/#post-6624828)
 * Depending a the user’s permissions, WordPress will whitelist certain html elements
   and attributes and then remove those elements/attributes not found in the whitelist
   before it saves to the database.
 * To add a “data-timestamp” attribute to an anchor (link) tag try adding this code
   to your theme’s functions.php:
 *     ```
       function add_data_timestamp_attribute_to_anchor( $tags, $context ) {
               if ( 'post' !== $context && ! in_array( 'post', $context ) ) {
                       return $tags;
               }
   
               $tags['a']['data-timestamp'] = true;
   
               return $tags;
       }
       add_filter( 'wp_kses_allowed_html', 'add_data_timestamp_attribute_to_anchor', 10, 2 );
       ```
   
 * PS To have your code appear as text you need to surround the code with a “[backtick](https://wordpress.org/support/topic/really-dumb-question-what-is-a-backtick-for-code-in-posts-how-to-type-one)”
   mark on each side (press the `code` button on top of the textarea to add one 
   automatically).
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Upload HTTP Error (detailed)](https://wordpress.org/support/topic/upload-http-error-detailed/)
 *  [jkovis](https://wordpress.org/support/users/jkovis/)
 * (@jkovis)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/upload-http-error-detailed/#post-6605261)
 * That is strange and I’m not sure what else I could suggest to try to narrow down
   the cause. Sorry I couldn’t be of more help, but best of luck.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Upload HTTP Error (detailed)](https://wordpress.org/support/topic/upload-http-error-detailed/)
 *  [jkovis](https://wordpress.org/support/users/jkovis/)
 * (@jkovis)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/upload-http-error-detailed/#post-6605216)
 * Thank you for the additional information, to answer your question
 *     ```
       Do GD and ImageMagick conflict when jpg support is enabled on both modules?
       ```
   
 * – My understanding is that WordPress will test for a set of ImageMagick functions
   it needs and if they’re not present then use GD. Everything you’re running is
   new enough that I don’t see that as being the cause of the problem.
 * If you haven’t already, you can try disabling all plugins and if uploading then
   works start enabling them one by one to see which one is causing the conflict.
 * Next, I’d recommend you add the following code to the top of your wp-config.php
   file, try uploading a couple more times, and then examine wp-content/debug.log
   to see if WordPress logs any errors to that file:
 *     ```
       define( 'WP_DEBUG', true );
       define( 'WP_DEBUG_LOG', true );
       ```
   
 * Finally if that doesn’t work, you can also try to debug the upload script itself(
   wp-admin/async-upload.php) by adding code the following, trying an upload, and
   then checking wp-content/debug.log to see if any errors are being thrown:
 *     ```
       $log = print_r( array(
       	'file'        => __FILE__ . 'on line ' . __LINE__,
       	'request' => $_REQUEST,
       	'foo'        => $bar
       ), true );
       error_log( $log );
       ```
   
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Upload HTTP Error (detailed)](https://wordpress.org/support/topic/upload-http-error-detailed/)
 *  [jkovis](https://wordpress.org/support/users/jkovis/)
 * (@jkovis)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/upload-http-error-detailed/#post-6605162)
 * shoot, I was afraid that was the error message since it seems to be a catch-all
   error that isn’t easy to debug.
 * A few ideas:
 * – Do you get the same error if you attempt to upload a pdf? If no, looking at
   your phpinfo() page again, is GD or Imagick [installed and enabled](http://www.inmotionhosting.com/support/website/software/is-gd-library-installed-on-the-server)?
 * – Do you get the same error if you use the “browser uploader” (/wp-admin/media-
   new.php?browser-uploader) as well?
 * – if you recently installed or upgraded WordPress it might be worth a try to 
   re-install the WordPress core files (everything except wp-content) in case there
   was a problem with the install/upgrade.
 * – Does the response from the upload’s ajax request (use your browser’s developer
   tools i.e. [chrome’s](https://developers.google.com/web/tools/profile-performance/network-performance/resource-loading#network-panel-overview))
   give a clue of what is causing the error?
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Upload HTTP Error (detailed)](https://wordpress.org/support/topic/upload-http-error-detailed/)
 *  [jkovis](https://wordpress.org/support/users/jkovis/)
 * (@jkovis)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/upload-http-error-detailed/#post-6605144)
 * Sorry if I’m missing something, but what is the exact error message that you’re
   seeing?
 * Also, what is the size of the file you’re trying to upload and what are the values
   in your phpinfo() page for `upload_max_filesize` and `post_max_size`?
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [How to archive a WP site?](https://wordpress.org/support/topic/how-to-archive-a-wp-site/)
 *  [jkovis](https://wordpress.org/support/users/jkovis/)
 * (@jkovis)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/how-to-archive-a-wp-site/#post-6605142)
 * I’d try using the “Preload” feature in the [WP- Super Cache](https://wordpress.org/plugins/wp-super-cache/)
   plugin to generate static html files, but you would need to make sure that any
   needed css/js files enqueued by WordPress, the theme, or plugins are still accessible.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Google and Custom Post Types](https://wordpress.org/support/topic/google-and-custom-post-types/)
 *  [jkovis](https://wordpress.org/support/users/jkovis/)
 * (@jkovis)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/google-and-custom-post-types/#post-5992875)
 * Can you list and describe the different post types and associated taxonomies?
 * Also, have you added your site to [Google Webmaster Tools](https://www.google.com/webmasters/tools/)?
 * Lastly, I would look at different XML Sitemap plugins since [your site’s current sitemap](http://gooutlocal.com/sitemap.xml)
   doesn’t seem to match up with your site structure.
 *   Forum: [Networking WordPress](https://wordpress.org/support/forum/multisite/)
   
   In reply to: [Multisite – Change Upload Max Limit Per Site](https://wordpress.org/support/topic/multisite-change-upload-max-limit-per-site/)
 *  [jkovis](https://wordpress.org/support/users/jkovis/)
 * (@jkovis)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/multisite-change-upload-max-limit-per-site/#post-5246689)
 * > where exactly, in what file, would I make that change?
 * — It would probably be easiest to create a new [“must use” plugin](https://codex.wordpress.org/Must_Use_Plugins)(
   any php file inside wp-content/mu-plugins/ would work).
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Website Working but Admin Panel Blank](https://wordpress.org/support/topic/website-working-but-admin-panel-blank/)
 *  [jkovis](https://wordpress.org/support/users/jkovis/)
 * (@jkovis)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/website-working-but-admin-panel-blank/#post-5895171)
 * Do you have access to your website’s error log? If not you will want to contact
   your host for access to it since it will probably have the filename and line 
   number causing the problem.
 * If you can’t get the error log then I would suggest renaming your theme’s functions.
   php file to see if that is causing the issue. If that is the cause then you can
   rename it back and selectively [comment out code](http://php.net/manual/en/language.basic-syntax.comments.php)
   to try and narrow down where the issue is.

Viewing 15 replies - 1 through 15 (of 412 total)

1 [2](https://wordpress.org/support/users/jkovis/replies/page/2/?output_format=md)
[3](https://wordpress.org/support/users/jkovis/replies/page/3/?output_format=md)…
[26](https://wordpress.org/support/users/jkovis/replies/page/26/?output_format=md)
[27](https://wordpress.org/support/users/jkovis/replies/page/27/?output_format=md)
[28](https://wordpress.org/support/users/jkovis/replies/page/28/?output_format=md)
[→](https://wordpress.org/support/users/jkovis/replies/page/2/?output_format=md)