Title: markp's Replies | WordPress.org

---

# markp

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

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

 Search replies:

## Forum Replies Created

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

1 [2](https://wordpress.org/support/users/markp/replies/page/2/?output_format=md)
[→](https://wordpress.org/support/users/markp/replies/page/2/?output_format=md)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Wordfence Security - Firewall, Malware Scan, and Login Security] _load_textdomain_just_in_time was called incorrectly](https://wordpress.org/support/topic/_load_textdomain_just_in_time-was-called-incorrectly-40/)
 *  Thread Starter [markp](https://wordpress.org/support/users/markp/)
 * (@markp)
 * [1 week, 4 days ago](https://wordpress.org/support/topic/_load_textdomain_just_in_time-was-called-incorrectly-40/#post-18921685)
 * Thanks. I’ll watch out for Wordfence updates and keep an eye on the debug log.
   
   Cheers,Mark
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Wordfence Security - Firewall, Malware Scan, and Login Security] _load_textdomain_just_in_time was called incorrectly](https://wordpress.org/support/topic/_load_textdomain_just_in_time-was-called-incorrectly-40/)
 *  Thread Starter [markp](https://wordpress.org/support/users/markp/)
 * (@markp)
 * [1 week, 5 days ago](https://wordpress.org/support/topic/_load_textdomain_just_in_time-was-called-incorrectly-40/#post-18920460)
 * I’ve emailed you the debug.log file to that email address you gave me.
 * Cheers,
 * Mark
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Simple Calendar - Google Calendar Plugin] Site crash due to Simple Calendar plugin conflict](https://wordpress.org/support/topic/site-crash-due-to-simple-calendar-plugin-conflict/)
 *  [markp](https://wordpress.org/support/users/markp/)
 * (@markp)
 * [7 months, 2 weeks ago](https://wordpress.org/support/topic/site-crash-due-to-simple-calendar-plugin-conflict/#post-18694263)
 * Yes. I’m seeing my site crash with the new version. Renaming the plugin folder
   and thereby disabling the plugin fixed the site.
 * **Fatal error**: Uncaught TypeError: str_contains(): Argument #1 ($haystack) 
   must be of type string, array given in /home/wptest/public_html/wp-includes/shortcodes.
   php:150 Stack trace: #0 /home/wptest/public_html/wp-includes/shortcodes.php(150):
   str_contains() #1 /home/wptest/public_html/wp-content/plugins/google-calendar-
   events/includes/assets.php(225): has_shortcode() #2 /home/wptest/public_html/
   wp-content/plugins/google-calendar-events/includes/assets.php(131): SimpleCalendar\
   Assets->check_builder_content() #3 /home/wptest/public_html/wp-includes/class-
   wp-hook.php(324): SimpleCalendar\Assets->check_load_assets() #4 /home/wptest/
   public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters() #5 /
   home/wptest/public_html/wp-includes/plugin.php(565): WP_Hook->do_action() #6 /
   home/wptest/public_html/wp-includes/class-wp.php(835): do_action_ref_array() #
   7 /home/wptest/public_html/wp-includes/functions.php(1342): WP->main() #8 /home/
   wptest/public_html/wp-blog-header.php(16): wp() #9 /home/wptest/public_html/index.
   php(17): require(‘…’) #10 {main} thrown in **/home/wptest/public_html/wp-includes/
   shortcodes.php** on line **150**
 * There has been a critical error on this website.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Newsletter - Send awesome emails from WordPress] Addon Manager can’t be downloaded or directly installed](https://wordpress.org/support/topic/addon-manager-cant-be-downloaded-or-directly-installed/)
 *  Thread Starter [markp](https://wordpress.org/support/users/markp/)
 * (@markp)
 * [2 years, 1 month ago](https://wordpress.org/support/topic/addon-manager-cant-be-downloaded-or-directly-installed/#post-17704109)
 * Thanks. That’s great. 🙂
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[SaFly Curl Patch] Works, but with error message](https://wordpress.org/support/topic/works-but-with-error-message/)
 *  Thread Starter [markp](https://wordpress.org/support/users/markp/)
 * (@markp)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/works-but-with-error-message/#post-10777008)
 * Thanks.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WordPress MU Domain Mapping] Domains list length](https://wordpress.org/support/topic/domains-list-length/)
 *  [markp](https://wordpress.org/support/users/markp/)
 * (@markp)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/domains-list-length/#post-10458213)
 * OK. I’ve found the actual cause of the problem.
 * In the file domain_mapping.php
    /wp-content/plugins/wordpress-mu-domain-mapping/
   domain_mapping.php on line 192 the code is: $rows = $wpdb->get_results( “SELECT*
   FROM {$wpdb->dmtable} ORDER BY id DESC LIMIT 0,20” );
 * This is the line that retrieves just the 20 rows max that the settings page displays.
 * Changing that ’20’ near the end of that line to ‘200’ means that it will show
   up to 200 mappings on the settings page. Or just set it to something really high,
   or even try out removing
    LIMIT 0,20 altogether (which works fine for me). Which
   gives you a line 192 of: $rows = $wpdb->get_results( “SELECT * FROM {$wpdb->dmtable}
   ORDER BY id DESC” );
 * This doesn’t fix the domain search problem (it simply doesn’t work), but as long
   as you have the full list you can use your web browser’s ‘find text in page’ 
   function to find the site you are interested in.
 * Of course, your fix may get overwritten should this plugin get updated.
 * Cheers,
 * Mark
 * Of course, if you have thousands of mappings and very low memory limits in php
   or mysql then you may crash the page.
    Cheers, Mark
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WordPress MU Domain Mapping] Domains list length](https://wordpress.org/support/topic/domains-list-length/)
 *  [markp](https://wordpress.org/support/users/markp/)
 * (@markp)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/domains-list-length/#post-10458187)
 * The workaround is to look at the relevant database table itself, for example 
   in phpMyAdmin. The table name is
    wp_domain_mapping where ‘wp_’ is your specific
   table prefix for your WordPress network installation. As such, in an alphanumerically
   sorted list of tables, it comes somehwere after each of the wp_nn_tablename tables(
   where ‘nn’ is each separate website’s number). Mark
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WordPress MU Domain Mapping] Domains list length](https://wordpress.org/support/topic/domains-list-length/)
 *  [markp](https://wordpress.org/support/users/markp/)
 * (@markp)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/domains-list-length/#post-10458108)
 * I have exactly the same problem.
 * Plus the search function above the list doesn’t work, so I can’t try to find 
   what records there might be that don’t appear on the list.
    Cheers, Mark
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Photo Gallery, Sliders, Proofing and Themes - NextGEN Gallery] Aggravated at Image Sizes](https://wordpress.org/support/topic/aggravated-at-image-sizes/)
 *  [markp](https://wordpress.org/support/users/markp/)
 * (@markp)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/aggravated-at-image-sizes/#post-3854859)
 * I note that this is the same complaint as another thread
    [http://wordpress.org/support/topic/resize-of-images-does-not-work-as-expected?replies=3](http://wordpress.org/support/topic/resize-of-images-does-not-work-as-expected?replies=3)
 * Same here: NextGen Gallery 1.9.13 on WordPress 3.5.1 Network with a perfect ‘
   plugin check’ result on the gallery management homepage within WordPress admin.
 * The resized (to 800 x 600 images appear to be jpegs at 100% quality rather than
   the specified 85%).
 * This is a new install of NextGen Gallery as of yesterday.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Photo Gallery, Sliders, Proofing and Themes - NextGEN Gallery] Resize of images does not work as expected](https://wordpress.org/support/topic/resize-of-images-does-not-work-as-expected/)
 *  [markp](https://wordpress.org/support/users/markp/)
 * (@markp)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/resize-of-images-does-not-work-as-expected/#post-3853280)
 * Same here: NextGen Gallery 1.9.13 on WordPress 3.5.1 Network with a perfect ‘
   plugin check’ result on the gallery management homepage within WordPress admin.
 * The resized (to 800 x 600 images appear to be jpegs at 100% quality rather than
   the specified 85%).
 * This is a new install of NextGen Gallery as of yesterday.
 *   Forum: [Networking WordPress](https://wordpress.org/support/forum/multisite/)
   
   In reply to: [Add Media is giving long path complete with /wp-content/blogs.dir](https://wordpress.org/support/topic/add-media-is-giving-long-path-complete-with-wp-contentblogsdir/)
 *  Thread Starter [markp](https://wordpress.org/support/users/markp/)
 * (@markp)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/add-media-is-giving-long-path-complete-with-wp-contentblogsdir/#post-3184758)
 * I don’t have a problem seeing the images on the site. The only problem I have
   is that the path in the ‘Link URL’ field in the ‘Add Media’ screen is the long
   path that includes blogs.dir. It should be the short path. See my first post.
 *   Forum: [Networking WordPress](https://wordpress.org/support/forum/multisite/)
   
   In reply to: [Add Media is giving long path complete with /wp-content/blogs.dir](https://wordpress.org/support/topic/add-media-is-giving-long-path-complete-with-wp-contentblogsdir/)
 *  Thread Starter [markp](https://wordpress.org/support/users/markp/)
 * (@markp)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/add-media-is-giving-long-path-complete-with-wp-contentblogsdir/#post-3184754)
 * I can’t see how the domain is going to affect whether we have blogs.dir in the
   uploaded files path.
 * When I create a new site it always creates it in the form
    sitedomain.networkdomain.
   tld I can’t stop it from appending networkdomain.tld so I immediately correct
   it to sitedomain.tld
 *   Forum: [Networking WordPress](https://wordpress.org/support/forum/multisite/)
   
   In reply to: [Add Media is giving long path complete with /wp-content/blogs.dir](https://wordpress.org/support/topic/add-media-is-giving-long-path-complete-with-wp-contentblogsdir/)
 *  Thread Starter [markp](https://wordpress.org/support/users/markp/)
 * (@markp)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/add-media-is-giving-long-path-complete-with-wp-contentblogsdir/#post-3184752)
 * for ‘Fileupload Url’ I have:
    [http://sitedomain.networkdomain.tld/files](http://sitedomain.networkdomain.tld/files)
   which is the original subdomain that, when you set up a new site, it gets set
   to and then I change the ‘Domain’ (with ‘Update siteurl and home as well’ checked)
   immediately after to ‘sitedomain.tld’, under the ‘info’ tab of the same page.
 * FYI
    I have no value against ‘Upload Url Path’. ‘Upload Path’ is ‘wp-content/
   blogs.dir/33/files’.
 * I haven’t kept any debug edits in the core files – it is all straight up original
   WP.
 *   Forum: [Networking WordPress](https://wordpress.org/support/forum/multisite/)
   
   In reply to: [Add Media is giving long path complete with /wp-content/blogs.dir](https://wordpress.org/support/topic/add-media-is-giving-long-path-complete-with-wp-contentblogsdir/)
 *  Thread Starter [markp](https://wordpress.org/support/users/markp/)
 * (@markp)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/add-media-is-giving-long-path-complete-with-wp-contentblogsdir/#post-3184740)
 * Actually I’m not sure which line of this code
    the function wp_get_attachment_url
   in the file /wp-includes/post.php is giving me the wrong url. $url = $uploads[‘
   baseurl’] . “/$file”; or $url = apply_filters( ‘wp_get_attachment_url’, $url,
   $post->ID );
 * The first gives me the longhand URL, but is the second line supposed to change
   it to the short URL?
 *   Forum: [Networking WordPress](https://wordpress.org/support/forum/multisite/)
   
   In reply to: [Add Media is giving long path complete with /wp-content/blogs.dir](https://wordpress.org/support/topic/add-media-is-giving-long-path-complete-with-wp-contentblogsdir/)
 *  Thread Starter [markp](https://wordpress.org/support/users/markp/)
 * (@markp)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/add-media-is-giving-long-path-complete-with-wp-contentblogsdir/#post-3184737)
 * OK. The function
    wp_get_attachment_url in the file /wp-includes/post.php is 
   returning a value of [http://domain.tld/wp-content/blogs.dir/33/files/2012/11/file.jpg](http://domain.tld/wp-content/blogs.dir/33/files/2012/11/file.jpg)
   instead of [http://domain.tld/files/2012/11/file.jpg](http://domain.tld/files/2012/11/file.jpg)
 * when I manually override (by a quick hack) the value that is passed back from
   this function then that is the value I see in the ‘Link URL’ field.
 * Doing some further debugging in that function I find that it is the value of
   
   $uploads[‘baseurl’] that is incorrect and that $uploads = wp_upload_dir() I look
   at this function shortly and see where it is getting it’s values.

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

1 [2](https://wordpress.org/support/users/markp/replies/page/2/?output_format=md)
[→](https://wordpress.org/support/users/markp/replies/page/2/?output_format=md)