Title: thpani's Replies | WordPress.org

---

# thpani

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

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

 Search replies:

## Forum Replies Created

Viewing 13 replies - 1 through 13 (of 13 total)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Photo Gallery by 10Web - Mobile-Friendly Image Gallery] Shortcode insertion broken](https://wordpress.org/support/topic/shortcode-insertion-broken/)
 *  Thread Starter [thpani](https://wordpress.org/support/users/thpani/)
 * (@thpani)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/shortcode-insertion-broken/#post-11158105)
 * Sorry, I don’t see how a screenshot would help, my original problem description
   is pretty comprehensive.
    This issue has been reported before, and apparently
   is not yet fixed: [https://wordpress.org/support/topic/gallery-doesnt-display-2/](https://wordpress.org/support/topic/gallery-doesnt-display-2/)
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Photo Gallery by 10Web - Mobile-Friendly Image Gallery] Shortcode insertion broken](https://wordpress.org/support/topic/shortcode-insertion-broken/)
 *  Thread Starter [thpani](https://wordpress.org/support/users/thpani/)
 * (@thpani)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/shortcode-insertion-broken/#post-11148298)
 * Just upgraded to WordPress 5.0.3 and the issue above persists.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Photo Gallery, Sliders, Proofing and Themes - NextGEN Gallery] We cannot display this gallery – 2.2.12](https://wordpress.org/support/topic/we-cannot-display-this-gallery-2-2-12/)
 *  [thpani](https://wordpress.org/support/users/thpani/)
 * (@thpani)
 * [8 years, 5 months ago](https://wordpress.org/support/topic/we-cannot-display-this-gallery-2-2-12/#post-9781714)
 * I’ve found a workaround for the incompatibility btw nextgen and polylang-slug
   described by [@prezenta](https://wordpress.org/support/users/prezenta/) and [@grapplerulrich](https://wordpress.org/support/users/grapplerulrich/),
   I’ll leave it here for reference:
 *     ```
       function my_polylang_slug_disable ($disable, $query) {
         if ($disable) return true;
   
         if (isset($query->query_vars['meta_query'])) {
           $meta_query = $query->query_vars['meta_query'];
           return isset($meta_query[0]) && isset($meta_query[0]['value']) && substr($meta_query[0]['value'], 0, 10) === "photocrati";
         }
         return $disable;
       }
       add_filter ('polylang_slug_disable', 'my_polylang_slug_disable', 10, 2);
       ```
   
    -  This reply was modified 8 years, 5 months ago by [thpani](https://wordpress.org/support/users/thpani/).
    -  This reply was modified 8 years, 5 months ago by [thpani](https://wordpress.org/support/users/thpani/).
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce mPAY24 Gateway] Partial refunds](https://wordpress.org/support/topic/partial-refunds-2/)
 *  Thread Starter [thpani](https://wordpress.org/support/users/thpani/)
 * (@thpani)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/partial-refunds-2/#post-6938412)
 * In particular, the mpay callback setting `STATUS` to `CREDITED` contains a `PRICE`
   field. This could be used to call `wc_create_refund` with the appropriate amount.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce mPAY24 Gateway] Transaction stuck in tstatus=ERROR](https://wordpress.org/support/topic/transaction-stuck-in-tstatuserror/)
 *  Thread Starter [thpani](https://wordpress.org/support/users/thpani/)
 * (@thpani)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/transaction-stuck-in-tstatuserror/#post-5373697)
 * Many thanks for the wonderful support, now it works perfectly!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce mPAY24 Gateway] Transaction stuck in tstatus=ERROR](https://wordpress.org/support/topic/transaction-stuck-in-tstatuserror/)
 *  Thread Starter [thpani](https://wordpress.org/support/users/thpani/)
 * (@thpani)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/transaction-stuck-in-tstatuserror/#post-5373504)
 * Found the culprit, the confirmation callback contains a `PROFILE_ID` field, which
   causes `$wpdb->update` to fail with:
 * `Unknown column 'profile_id' in 'field list'`
 * Should this column be added to the DB? Or filter the `$update` array to only 
   include columns present in the DB?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce mPAY24 Gateway] Transaction stuck in tstatus=ERROR](https://wordpress.org/support/topic/transaction-stuck-in-tstatuserror/)
 *  Thread Starter [thpani](https://wordpress.org/support/users/thpani/)
 * (@thpani)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/transaction-stuck-in-tstatuserror/#post-5373498)
 * I’ve updated the gist to include all SOAP messages, the token matches the one
   passed in the confirmation URL. There’s no authentication.
 * I’ll try to track down where the transaction update fails tomorrow.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce mPAY24 Gateway] Transaction stuck in tstatus=ERROR](https://wordpress.org/support/topic/transaction-stuck-in-tstatuserror/)
 *  Thread Starter [thpani](https://wordpress.org/support/users/thpani/)
 * (@thpani)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/transaction-stuck-in-tstatuserror/#post-5373388)
 * Thanks for the quick reply! Then I have to take a closer look at what’s going
   on, my logs look like this: [https://gist.github.com/thpani/4a1aaecdc15ddaf77140](https://gist.github.com/thpani/4a1aaecdc15ddaf77140)
 * I suppose in the last line it should say `billed` instead of `error`
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce mPAY24 Gateway] Transaction stuck in tstatus=ERROR](https://wordpress.org/support/topic/transaction-stuck-in-tstatuserror/)
 *  Thread Starter [thpani](https://wordpress.org/support/users/thpani/)
 * (@thpani)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/transaction-stuck-in-tstatuserror/#post-5373378)
 * Whatever works?
 * Unless I’m missing something, this plugin is handling mPAY confirmations and 
   trying to update the order status accordingly. But as tstatus will always default
   to ERROR I don’t see how this could be working for anybody — it will always take
   the ‘error’ branch here: [https://plugins.trac.wordpress.org/browser/woocommerce-mpay24-gateway/tags/1.4.1/gateway-mpay24.php#L675](https://plugins.trac.wordpress.org/browser/woocommerce-mpay24-gateway/tags/1.4.1/gateway-mpay24.php#L675)
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[SlimStat Analytics] enable_ads_network option reset](https://wordpress.org/support/topic/enable_ads_network-option-reset/)
 *  Thread Starter [thpani](https://wordpress.org/support/users/thpani/)
 * (@thpani)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/enable_ads_network-option-reset/#post-4326231)
 * Found the problem, the streams transport in WP_Http doesn’t correctly handle 
   timeouts: [http://core.trac.wordpress.org/ticket/13841](http://core.trac.wordpress.org/ticket/13841)
 * If the API is frequently congested, maybe you can test for Wp_Http_Curl or something…
   it’s a shame such bugs stay unfixed for 3 years…
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[SlimStat Analytics] enable_ads_network option reset](https://wordpress.org/support/topic/enable_ads_network-option-reset/)
 *  Thread Starter [thpani](https://wordpress.org/support/users/thpani/)
 * (@thpani)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/enable_ads_network-option-reset/#post-4326201)
 * Hi,
 * thanks for the quick response.
    I just noticed the timeout being set, but I definitely
   have blocking requests. Perhaps there’s a bug in WP_Http, I’ll let you know.
 * Thomas
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[wp-FileManager] HTML5 support](https://wordpress.org/support/topic/html5-support/)
 *  Thread Starter [thpani](https://wordpress.org/support/users/thpani/)
 * (@thpani)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/html5-support/#post-3139085)
 * proposed patch:
 *     ```
       --- incl/upload.inc.php.old	2012-10-23 15:51:11.000000000 +0200
       +++ incl/upload.inc.php	2012-10-23 16:51:40.000000000 +0200
       @@ -12,7 +12,7 @@
          print $StrUploadFailPost;
         else
         {
       -  for($i=0;$i<=3;$i++)
       +  for($i=0;$i<count($_FILES['userfile']['tmp_name']);$i++)
          {
           $_FILES['userfile']['name'][$i] = stripslashes($_FILES['userfile']['name'][$i]);
        if (@move_uploaded_file($_FILES['userfile']['tmp_name'][$i], realpath($home_directory.$wp_fileman_path)."/".$_FILES['userfile']['name'][$i])) {
       @@ -45,8 +45,10 @@
        $max_post = (int)(ini_get('post_max_size'));
        $memory_limit = (int)(ini_get('memory_limit'));
        $upload_mb = min($max_upload, $max_post, $memory_limit);
       +$max_files = (int)(ini_get('max_file_uploads'));
        //	print "MAX UPload : $max_upload MB, MAX POST : $max_post MB, MEM LIMIT : $memory_limit MB";
        print "<br /><b>&nbsp;&nbsp;Maximum File Size Allowed : $upload_mb MB</b>";
       +print "<br /><b>&nbsp;&nbsp;Maximum Number of Files Allowed : $max_files</b>";
        // FIXME : add link to howto on how to change the upload size.
            print "<center><br />";
   
       @@ -55,7 +57,7 @@
            print "<form action='$base_url&output=upload&upload=true' method='post' enctype='multipart/form-data'>";
   
            print "<table class='upload'>";
       -     print "<tr><td>$StrFirstFile</td><td><input type='file' name='userfile[]' size=30></td></tr>";
       +     print "<tr><td>$StrFirstFile</td><td><input type='file' name='userfile[]' size=30 multiple="multiple"></td></tr>";
             print "<tr><td>$StrSecondFile</td><td><input type='file' name='userfile[]' size=30></td></tr>";
             print "<tr><td>$StrThirdFile</td><td><input type='file' name='userfile[]' size=30></td></tr>";
             print "<tr><td>$StrFourthFile</td><td><input type='file' name='userfile[]' size=30></td></tr>";
       ```
   
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WP Hide Post] [Plugin: WP Hide Post] Add plugin metabox in Custom Post editor Page](https://wordpress.org/support/topic/plugin-wp-hide-post-add-plugin-metabox-in-custom-post-editor-page/)
 *  [thpani](https://wordpress.org/support/users/thpani/)
 * (@thpani)
 * [14 years, 6 months ago](https://wordpress.org/support/topic/plugin-wp-hide-post-add-plugin-metabox-in-custom-post-editor-page/#post-2006155)
 * The link above is dead, could someone please repost the code?
 * Thanks, th

Viewing 13 replies - 1 through 13 (of 13 total)