Title: Lukas G.'s Replies | WordPress.org

---

# Lukas G.

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

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

 Search replies:

## Forum Replies Created

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

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

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Timber] Version 1.23.3 breaks websites](https://wordpress.org/support/topic/version-1-23-3-breaks-websites/)
 *  [Lukas G.](https://wordpress.org/support/users/gchtr/)
 * (@gchtr)
 * [1 year, 2 months ago](https://wordpress.org/support/topic/version-1-23-3-breaks-websites/#post-18493481)
 * Thanks for the report. This error was fixed in version 1.23.4.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Timber] Cannot be used without SSH access](https://wordpress.org/support/topic/cannot-be-used-without-ssh-access/)
 *  [Lukas G.](https://wordpress.org/support/users/gchtr/)
 * (@gchtr)
 * [2 years, 1 month ago](https://wordpress.org/support/topic/cannot-be-used-without-ssh-access/#post-17860032)
 * If you can’t install Composer on your shared host, this doesn’t mean that you
   can’t use Timber version 2.
 * You can use Composer locally on your computer and then upload the Composer dependencies
   to your shared host.
 * We have a guide where you can read all about how to switch from the plugin version
   to the Composer version of Timber: [https://timber.github.io/docs/v1/getting-started/switch-to-composer/](https://timber.github.io/docs/v1/getting-started/switch-to-composer/).
 * We recommend switching from the plugin version to the Composer version of Timber
   v1 first, and then do the upgrade to Timber v2.
 * Unfortunately, there will be no plugin version of Timber v2. You can read more
   about why in the announcement: [https://github.com/timber/timber/discussions/2804](https://github.com/timber/timber/discussions/2804).
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Spam protection, Honeypot, Anti-Spam by CleanTalk] Fatal error in combination with form sign exclusions](https://wordpress.org/support/topic/fatal-error-in-combination-with-form-sign-exclusions/)
 *  Thread Starter [Lukas G.](https://wordpress.org/support/users/gchtr/)
 * (@gchtr)
 * [2 years, 9 months ago](https://wordpress.org/support/topic/fatal-error-in-combination-with-form-sign-exclusions/#post-17180109)
 * Thanks a lot for fixing this!
 * > Could you tell me if the **facetwp_refresh **is AJAX submission or regular 
   > POST data submission?
 * It’s an AJAX request made using `fetch()` with `POST` method:
 *     ```wp-block-code
       fetch(endpoint, {
           method: 'POST',
           // ...
       }
       ```
   
 * The endpoint can either be
    - the **current URL** of the page that is displayed
    - or a **REST endpoint** (e.g. `/wp-json/facetwp/v1/refresh`).
 * Here you can see an example from the FacetWP demo: [https://facetwp.com/demo/cars/](https://facetwp.com/demo/cars/).
 * As far as I can see, **no requests** are made using **admin-ajax.php**.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[DearFlip - PDF Flipbook, 3D Flipbook, PDF embed, PDF viewer] JS/CSS files for deaflip plugin are loaded when not needed.](https://wordpress.org/support/topic/js-css-files-for-deaflip-plugin-are-loaded-when-not-needed/)
 *  [Lukas G.](https://wordpress.org/support/users/gchtr/)
 * (@gchtr)
 * [3 years ago](https://wordpress.org/support/topic/js-css-files-for-deaflip-plugin-are-loaded-when-not-needed/#post-16927849)
 * [@dearhive](https://wordpress.org/support/users/dearhive/) I understand that 
   this could lead to problems with AJAX implementations. But not providing a solution
   is a reason for us to not use the DearFlip plugin at all. Performance is very
   important.
 * What if you added a setting where we can set how the assets are included? The
   setting could come with the following options:
    - Load assets on every page load (optimal for AJAX implementations)
    - Load assets only when the `dflip` shortcode is used
 * The way we work around this at the moment is to dequeue the assets and enqueue
   them only when the `dflip` shortcode is used. It works, but is not a future-proof
   method in case the included script or style names are updated.
 *     ```wp-block-code
       add_action( 'wp_enqueue_scripts', function() {
           wp_dequeue_script( 'dflip-script' );
           wp_dequeue_style( 'dflip-icons-style' );
           wp_dequeue_style( 'dflip-style' );
       }, 11 );
   
       add_filter( 'do_shortcode_tag', function( $output, $tag ) {
           if ( $tag !== 'dflip' ) {
               return $output;
           }
   
           wp_enqueue_script( 'dflip-script' );
           wp_enqueue_style( 'dflip-icons-style' );
           wp_enqueue_style( 'dflip-style' );
   
           return $output;
       }, 10, 2 );
       ```
   
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Timber] PHP Fatal error after PHP upgrade](https://wordpress.org/support/topic/php-fatal-error-after-php-upgrade/)
 *  [Lukas G.](https://wordpress.org/support/users/gchtr/)
 * (@gchtr)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/php-fatal-error-after-php-upgrade/#post-16337057)
 * Would you mind opening an issue for this in the [Timber repository on GitHub](https://github.com/timber/timber/issues)?
 * We only rarely track issues here.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Timber] PHP8 error Deprecated: Required parameter $lineno follows optional parameter…](https://wordpress.org/support/topic/php8-error-deprecated-required-parameter-lineno-follows-optional-parameter/)
 *  [Lukas G.](https://wordpress.org/support/users/gchtr/)
 * (@gchtr)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/php8-error-deprecated-required-parameter-lineno-follows-optional-parameter/#post-16244833)
 * Hey [@aclase](https://wordpress.org/support/users/aclase/). It would be best 
   if you [open a new issue in Timber’s GitHub repo](https://github.com/timber/timber/issues),
   because we only rarely track issues here.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Timber] Fatal Twig\Extension\DebugExtension Timber 1.21.0](https://wordpress.org/support/topic/fatal-twigextensiondebugextension-timber-1-21-0/)
 *  [Lukas G.](https://wordpress.org/support/users/gchtr/)
 * (@gchtr)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/fatal-twigextensiondebugextension-timber-1-21-0/#post-16230066)
 * This should be fixed with Timber version 1.22.0.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Timber] Issue with twig template and WP preview in new tab](https://wordpress.org/support/topic/issue-with-twig-template-and-wp-preview-in-new-tab/)
 *  [Lukas G.](https://wordpress.org/support/users/gchtr/)
 * (@gchtr)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/issue-with-twig-template-and-wp-preview-in-new-tab/#post-16230062)
 * I see you posted your issue on GitHub: [https://github.com/timber/timber/issues/2680](https://github.com/timber/timber/issues/2680).
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Timber] PHP8 error Deprecated: Required parameter $lineno follows optional parameter…](https://wordpress.org/support/topic/php8-error-deprecated-required-parameter-lineno-follows-optional-parameter/)
 *  [Lukas G.](https://wordpress.org/support/users/gchtr/)
 * (@gchtr)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/php8-error-deprecated-required-parameter-lineno-follows-optional-parameter/#post-16230057)
 * This issue was resolved with version 1.22.0 of Timber. We updated the Twig version
   shipped with Timber and tested everything for PHP 8.0 and 8.1 support.
 * No need to create patches on your own ;).
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Timber] Display post content using two different single.twig files](https://wordpress.org/support/topic/display-post-content-using-two-different-single-twig-files/)
 *  [Lukas G.](https://wordpress.org/support/users/gchtr/)
 * (@gchtr)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/display-post-content-using-two-different-single-twig-files/#post-13847494)
 * Hey [@mikehermary](https://wordpress.org/support/users/mikehermary/)
 * That’s very well possible with Timber and Twig.
 * But it’s not only a Timber and Twig use case. Your first hurdle is probably to
   set up a custom permalink structure for your use case, which is more directly
   related to WordPress itself rather than Timber and Twig.
 * You could use [Routes](https://timber.github.io/docs/guides/routing/), which 
   might be easier to start with.
 * Since we only rarely answer questions here in the support forum, I suggest you
   post your question on StackOverflow using the [Timber tag](https://stackoverflow.com/questions/tagged/timber).
   You might get more exposure there.
 * Also, I would split your question into multiple smaller problems, because it 
   would be a lot to expect of somebody to come up with complete code example for
   your use case.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Timber] Ongoing PHP error kills the whole page.](https://wordpress.org/support/topic/ongoing-php-error-kills-the-whole-page/)
 *  [Lukas G.](https://wordpress.org/support/users/gchtr/)
 * (@gchtr)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/ongoing-php-error-kills-the-whole-page/#post-13819424)
 * Hey!
 * That looks like somewhere in your theme `TimberHelper::function_wrapper()` is
   called. That function was deprecated and you shouldn’t use it anymore. Maybe 
   you can search for “function_wrapper” in your theme to see where it is used.
 * Refer to [https://timber.github.io/docs/guides/functions/](https://timber.github.io/docs/guides/functions/)
   for how to call functions in Twig.
 * I hope that helps.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Timber] Unknown get_image function error](https://wordpress.org/support/topic/unknown-get_image-function-error/)
 *  [Lukas G.](https://wordpress.org/support/users/gchtr/)
 * (@gchtr)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/unknown-get_image-function-error/#post-13775153)
 * Already answered in [https://stackoverflow.com/a/65247276/1059980](https://stackoverflow.com/a/65247276/1059980).
   I hope that helps.
 * That’s actually some kind of weird documentation bug that we’ll have to fix.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Timber] Warning message from WP](https://wordpress.org/support/topic/warning-message-from-wp/)
 *  [Lukas G.](https://wordpress.org/support/users/gchtr/)
 * (@gchtr)
 * [6 years ago](https://wordpress.org/support/topic/warning-message-from-wp/#post-13233881)
 * What’s your current version of Timber?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Timber] Args passed to twig_array_filter() must be an instance of Twig\Environment](https://wordpress.org/support/topic/args-passed-to-twig_array_filter-must-be-an-instance-of-twigenvironment/)
 *  [Lukas G.](https://wordpress.org/support/users/gchtr/)
 * (@gchtr)
 * [6 years ago](https://wordpress.org/support/topic/args-passed-to-twig_array_filter-must-be-an-instance-of-twigenvironment/#post-13214382)
 * Thanks for reporting this. I created an [issue in the repository](https://github.com/timber/timber/issues/2301).
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Timber] Language Switch as last item in menu inherits custom class names](https://wordpress.org/support/topic/language-switch-as-last-item-in-menu-inherits-custom-class-names/)
 *  [Lukas G.](https://wordpress.org/support/users/gchtr/)
 * (@gchtr)
 * [7 years, 7 months ago](https://wordpress.org/support/topic/language-switch-as-last-item-in-menu-inherits-custom-class-names/#post-11049600)
 * I think this is a valid issue where Timber might be too restrictive with its 
   check for a `WP_Post` object. Would you mind [opening a new issue](https://github.com/timber/timber/issues)
   in Timber’s GitHub repository?

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

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