Title: Alexander's Replies | WordPress.org

---

# Alexander

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

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

 Search replies:

## Forum Replies Created

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

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

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[PDF Invoices & Packing Slips for WooCommerce] External image on PDF invoice](https://wordpress.org/support/topic/external-image-on-pdf-invoice/)
 *  Thread Starter [Alexander](https://wordpress.org/support/users/torlock/)
 * (@torlock)
 * [1 year, 7 months ago](https://wordpress.org/support/topic/external-image-on-pdf-invoice/#post-18104730)
 * Hello,
 * Still no luck with the logo set as well.
 * I’ve also checked our custom template and hardcoded the logo in there but this
   doesn’t work either:
 * First few lines of `child-theme/woocommerce/pdf/customtemplate/invoice.php`
 *     ```wp-block-code
       <?php if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly ?><?php do_action( 'wpo_wcpdf_before_document', $this->get_type(), $this->order ); ?><table class="head container">	<tr>		<td class="header">			<img src='https://d5bm31en4blvo.cloudfront.net/uploads/2019/12/logo.png'/>		?>		</td>		<td class="shop-info">			<?php do_action( 'wpo_wcpdf_before_shop_name', $this->get_type(), $this->order ); ?>			<div class="shop-name"><h3><?php $this->shop_name(); ?></h3></div>			<?php do_action( 'wpo_wcpdf_after_shop_name', $this->get_type(), $this->order ); ?>			<?php do_action( 'wpo_wcpdf_before_shop_address', $this->get_type(), $this->order ); ?>			<div class="shop-address"><?php $this->shop_address(); ?></div>			<?php do_action( 'wpo_wcpdf_after_shop_address', $this->get_type(), $this->order ); ?>		</td>	</tr></table>
       ```
   
 * Is it possible the plugin isn’t picking up on the template, otherwise would it
   just go for the direct image rather than try for the logo set in WP?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[PDF Invoices & Packing Slips for WooCommerce] External image on PDF invoice](https://wordpress.org/support/topic/external-image-on-pdf-invoice/)
 *  Thread Starter [Alexander](https://wordpress.org/support/users/torlock/)
 * (@torlock)
 * [1 year, 7 months ago](https://wordpress.org/support/topic/external-image-on-pdf-invoice/#post-18099742)
 * Hi [@yordansoares](https://wordpress.org/support/users/yordansoares/)
 * To answer your questions:
    1. We are using the Simple Premium template
    2. No logo is currently set as I thought this might interfere with the filter code,
       I will add the logo back, check and report back but let me know which was is
       preferable
    3. This was generated after the code was published and checking the latest orders
       since and still nothing
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[PDF Invoices & Packing Slips for WooCommerce] External image on PDF invoice](https://wordpress.org/support/topic/external-image-on-pdf-invoice/)
 *  Thread Starter [Alexander](https://wordpress.org/support/users/torlock/)
 * (@torlock)
 * [1 year, 7 months ago](https://wordpress.org/support/topic/external-image-on-pdf-invoice/#post-18095565)
 * Sure, here’s the link: [https://file.io/GivcfUB3DT3K](https://file.io/GivcfUB3DT3K)
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[PDF Invoices & Packing Slips for WooCommerce] External image on PDF invoice](https://wordpress.org/support/topic/external-image-on-pdf-invoice/)
 *  Thread Starter [Alexander](https://wordpress.org/support/users/torlock/)
 * (@torlock)
 * [1 year, 7 months ago](https://wordpress.org/support/topic/external-image-on-pdf-invoice/#post-18087725)
 * I notice there is no `img` attribute in the `&output=html` version either with
   this solution.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[PDF Invoices & Packing Slips for WooCommerce] External image on PDF invoice](https://wordpress.org/support/topic/external-image-on-pdf-invoice/)
 *  Thread Starter [Alexander](https://wordpress.org/support/users/torlock/)
 * (@torlock)
 * [1 year, 7 months ago](https://wordpress.org/support/topic/external-image-on-pdf-invoice/#post-18086736)
 * Hi [@yordansoares](https://wordpress.org/support/users/yordansoares/),
 * Thanks for the quick reply.
 * Unfortunately not having much luck with that code – still getting this in the
   logs:
 * `2024-10-21T18:25:37+00:00 Critical Header logo file not found.`
 * I updated the image location, removed the currently set logo, cleared all caches
   to be safe and regenerated an invoice but no logo.
 *     ```wp-block-code
       /** * PDF Invoices & Packing Slips for WooCommerce: * Set a shop logo manually (this will override the shop logo in the plugin's settings) */add_filter( 'wpo_wcpdf_header_logo_img_element', function( $img_element, $attachment) {	// Set the URL of your shop logo below:	$shop_logo_url = 'https://d5bm31en4blvo.cloudfront.net/uploads/2019/12/logo.png';	return "<img src='{$shop_logo_url}'/>";}, 10, 2 );
       ```
   
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce PayPal Checkout Payment Gateway] PayPal and Credit/Debit Buttons Stopped Working](https://wordpress.org/support/topic/paypal-and-credit-debit-buttons-stopped-working/)
 *  [Alexander](https://wordpress.org/support/users/torlock/)
 * (@torlock)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/paypal-and-credit-debit-buttons-stopped-working/#post-14358312)
 * Thanks for the reply [@guicmazeredo](https://wordpress.org/support/users/guicmazeredo/).
 * Sorry I should have clarified, I meant a WP Core or Woo update that introduced
   some breaking changes. This is just a theory of course but the sudden, recent
   occurrence makes it feel a likely culprit.
 * But yes I will start a new thread once I manage to reproduce and I’ll include
   some more specific information on the site, plugins, environment etc.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce PayPal Checkout Payment Gateway] PayPal and Credit/Debit Buttons Stopped Working](https://wordpress.org/support/topic/paypal-and-credit-debit-buttons-stopped-working/)
 *  [Alexander](https://wordpress.org/support/users/torlock/)
 * (@torlock)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/paypal-and-credit-debit-buttons-stopped-working/#post-14357997)
 * Our website is experiencing the same issue too, which seems to have been echoed
   a few times on this support forum by various users as well as yourself.
 * I can’t seem to replicate the issue myself but I will test further using different
   browsers/settings shortly and report back. However, courtesy of customer reports
   it seems that the symptoms include (though there may be more):
    - a customer enters their card details, click to pay and nothing happens (or
      the form is cleared)
    - or that clicking the Pay with Debit/Credit Card button doesn’t do anything
      at all (the card details form never gets shown)
 * Logging is enabled but there is no resulting log entry to correspond with any
   of the customer reports.
 * The issue only seems to occur with the credit/debit option and not for all users,
   however, it must be a substantial amount as there have been regular reports for
   the past two weeks.
 * I’ve switched between both the current plugin and this one: [https://wordpress.org/plugins/woocommerce-paypal-payments/](https://wordpress.org/plugins/woocommerce-paypal-payments/)
 * Both are having very similar issues and again only within the last few weeks (
   likely in a recent update).
 * My guess is that this is an issue with the frontend and the order never even 
   attempts to reach PayPal as I’ve talked to MTS and there seem to be no correlating
   orders or errors on their end.
 * PayPal’s “Smart Buttons” (a common theme between both these plugins), a JS error
   or maybe something browser-related – hence no error in the log file. However,
   I am just reaching at this point as cannot figure out what is going, especially
   since I can’t replicate it myself and have very limited customer reports to go
   on.
 * I will pass on any more information as I get more reports but if the plugin support
   team have any suggestions it would be greatly appreciated.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce PayPal Payments] Stuck in Onboarding](https://wordpress.org/support/topic/stuck-in-onboarding/)
 *  [Alexander](https://wordpress.org/support/users/torlock/)
 * (@torlock)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/stuck-in-onboarding/#post-14324004)
 * Thanks for the reply.
 * I have a feeling that it is to do with this being a pre-existing PayPal account
   rather than a new one (or _newer_ as our PayPal is many years old now). I haven’t
   tried to connect the plugin with sandbox just yet but using the link on the advanced
   processing page is like making a whole new account with entirely new payment 
   terms, though we already have a sandbox account under the same email.
 * I’m slightly concerned that we need to make some sort account “upgrade” in order
   to be compatible with and enable this feature which might feed back into the 
   existing fee structure we’ve negotiated under new terms.
 * This is a UK based business PayPal account if that helps.
 * I will try testing the feature with this sandbox account shortly and report back.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce PayPal Payments] Stuck in Onboarding](https://wordpress.org/support/topic/stuck-in-onboarding/)
 *  [Alexander](https://wordpress.org/support/users/torlock/)
 * (@torlock)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/stuck-in-onboarding/#post-14323518)
 * Same issue here and after contacting PayPal MTS they have recommended a different
   plugin rather than onboarding us.
 * Does anyone know how to enable credit card processing?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Flare] Reddit share doesnt work (1.2.4)](https://wordpress.org/support/topic/reddit-share-doesnt-work-124/)
 *  [Alexander](https://wordpress.org/support/users/torlock/)
 * (@torlock)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/reddit-share-doesnt-work-124/#post-3921324)
 * Same problem here, any solution to this yet as I do love Reddit.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Is it possible to add widgets to custom post types archive sidebar?](https://wordpress.org/support/topic/is-it-possible-to-add-widgets-to-custom-post-types-archive-sidebar/)
 *  Thread Starter [Alexander](https://wordpress.org/support/users/torlock/)
 * (@torlock)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/is-it-possible-to-add-widgets-to-custom-post-types-archive-sidebar/#post-3939559)
 * Okay got a custom archive for the post type now (archive-djs.php)
 * I noticed I had to make it archive-djs rather than {djs}
 * But now there is no sidebar?
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Is it possible to add widgets to custom post types archive sidebar?](https://wordpress.org/support/topic/is-it-possible-to-add-widgets-to-custom-post-types-archive-sidebar/)
 *  Thread Starter [Alexander](https://wordpress.org/support/users/torlock/)
 * (@torlock)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/is-it-possible-to-add-widgets-to-custom-post-types-archive-sidebar/#post-3939557)
 * Hello, I have looked into what you suggested but I coan’t get it to work.
 * Heres what I did:
 * 1) Added custom sidebar using this code:
 *     ```
       if ( function_exists('register_sidebar') ) {
       register_sidebar(array(
       'name' => 'Roster Sidebar',
       'id' => 'roster-sidebar',
       'description' => 'Appears as the sidebar on the roster',
       'before_widget' => '<div style="height: 280px"></div><li id="%1$s" class="widget %2$s">',
       'after_widget' => '</li>',
       'before_title' => '<h2 class="widgettitle">',
       'after_title' => '</h2>',
       ));
       }
       ```
   
 * 2) Added widget to new sidebar
 * 3) Created a new file called sidebar-roster.php with this code in:
 *     ```
       <div id="sidebar">
          <ul>
             <?php
             if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('roster-sidebar') ) :
             endif; ?>
          </ul>
       </div>
       ```
   
 * 4) Created a file called archive-{djs}.php and added:
 *     ```
       <?php
       get_header();
       if(have_posts()) : while(have_posts()) : the_post();
       	the_title();
       	echo '<div class="entry-content">';
       	the_content();
       	echo '</div>';
       endwhile; endif;
   
       <?php get_sidebar('roster'); ?>
   
       get_footer();
       ?>
       ```
   
 * I then reloaded [http://gummet.com/djs/](http://gummet.com/djs/) and it still
   have the default sidebar.
 * What am I doing wrong?
 * I also found this ([http://codex.wordpress.org/Page_Templates#Example_Using_Custom_Post_Types](http://codex.wordpress.org/Page_Templates#Example_Using_Custom_Post_Types))
 * Maybe this is an option? But where would I upload it and what would I call it?
 * Thanks for the help 🙂
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [500 Error can you help me with my .htaccess?](https://wordpress.org/support/topic/500-error-can-you-help-me-with-my-htaccess/)
 *  Thread Starter [Alexander](https://wordpress.org/support/users/torlock/)
 * (@torlock)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/500-error-can-you-help-me-with-my-htaccess/#post-3910347)
 * Hello again,
 * I have talked to my host (GoDaddy) it seems the first error with mod_dir in it
   more of a warning due to something wordpress is doing. Apparently it should be
   looked at but isn’t ‘too big a deal’.
 * As for the second error:
 * (Request exceeded the limit of 10 internal redirects due to probable configuration
   error. Use ‘LimitInternalRecursion’ to increase the limit if necessary. Use ‘
   LogLevel debug’ to get a backtrace)
 * They seem to think it is a plugin causing it. Trouble is, because the error happens
   randomly at different time intervals it is going to take a while to deactivate
   and reactivate each plugin to find this out.
 * I think it may well be the .htaccess file though as I looked up the error separately
   and found this:
 * [http://www.andrew-kirkpatrick.com/2012/06/apache-virtualhost-htaccess-issue-request-exceeded-the-limit-of-10-internal-redirects-redirected-from-r-uri/](http://www.andrew-kirkpatrick.com/2012/06/apache-virtualhost-htaccess-issue-request-exceeded-the-limit-of-10-internal-redirects-redirected-from-r-uri/)
 * Maybe it is worth a go? I know that there is some generic code in the htaccess
   file but im not should if tampering with it is a good idea. I got this code off
   that page:
 * RewriteRule ^(.+)$ /index.php/$1 [NC,L,QSA]
 * > I looked in my php5.ini file check your php.ini too and REMOVED the Zend optimizer.
 * Thanks for the advice there but I just checked my ini file and all of the zend
   optimiser section is already commented out.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [500 Error can you help me with my .htaccess?](https://wordpress.org/support/topic/500-error-can-you-help-me-with-my-htaccess/)
 *  Thread Starter [Alexander](https://wordpress.org/support/users/torlock/)
 * (@torlock)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/500-error-can-you-help-me-with-my-htaccess/#post-3910314)
 * Perfect I shall call them now, thanks alot!
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [500 Error can you help me with my .htaccess?](https://wordpress.org/support/topic/500-error-can-you-help-me-with-my-htaccess/)
 *  Thread Starter [Alexander](https://wordpress.org/support/users/torlock/)
 * (@torlock)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/500-error-can-you-help-me-with-my-htaccess/#post-3910311)
 * Helle Esmi,
 * I have to errors in the error logs:
 * This one which is repeatedly popping up
 * [Sun Jul 07 11:35:44 2013] [11063472] [dir:error] [client] Inside mod_dir, setting
   document_root to PARENT_DOCUMENT_ROOT : /var/chroot/home/content/72/11063472/
   html, referer [http://rerral.com/](http://rerral.com/)
 * And this on which occasionally pops up:
 * [Sun Jul 07 11:35:42 2013] [11063472] [core:error] [client] AH00124: Request 
   exceeded the limit of 10 internal redirects due to probable configuration error.
   Use ‘LimitInternalRecursion’ to increase the limit if necessary. Use ‘LogLevel
   debug’ to get a backtrace., referer [http://rerral.com/](http://rerral.com/)

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

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