Custom Shortcodes
-
Hey,
is it possible to execute a custom shortcode in the pdf?
Then I could build in dynamic content.Thank you!
-
Hi!
Can you test this with my last version on GitHub: https://github.com/Florent73/send-pdf-for-contact-form-7
Download files and replace on your FTP.
Give me a feedback please…
Hey,
thank you for fast support.
unfortunately i get the following erros:[24-Mar-2021 15:20:47] WARNING: [pool www] child 15 said into stderr: “NOTICE: PHP message: PHP Fatal error: Uncaught Error: Undefined constant “WPCF7_ADMIN_READ_CAPABILITY” in /usr/share/webapps/wordpress/wp-content/plugins/send-pdf-for-contact-form-7-master/classes/send-pdf.php:281″
[24-Mar-2021 15:20:47] WARNING: [pool www] child 15 said into stderr: “Stack trace:”
[24-Mar-2021 15:20:47] WARNING: [pool www] child 15 said into stderr: “#0 /usr/share/webapps/wordpress/wp-includes/class-wp-hook.php(292): cf7_sendpdf->wpcf7pdf_add_admin()”
[24-Mar-2021 15:20:47] WARNING: [pool www] child 15 said into stderr: “#1 /usr/share/webapps/wordpress/wp-includes/class-wp-hook.php(316): WP_Hook->apply_filters()”
[24-Mar-2021 15:20:47] WARNING: [pool www] child 15 said into stderr: “#2 /usr/share/webapps/wordpress/wp-includes/plugin.php(484): WP_Hook->do_action()”
[24-Mar-2021 15:20:47] WARNING: [pool www] child 15 said into stderr: “#3 /usr/share/webapps/wordpress/wp-admin/includes/menu.php(155): do_action()”
[24-Mar-2021 15:20:47] WARNING: [pool www] child 15 said into stderr: “#4 /usr/share/webapps/wordpress/wp-admin/menu.php(327): require_once(‘…’)”
[24-Mar-2021 15:20:47] WARNING: [pool www] child 15 said into stderr: “#5 /usr/share/webapps/wordpress/wp-admin/admin.php(158): require(‘…’)”
[24-Mar-2021 15:20:47] WARNING: [pool www] child 15 said into stderr: “#6 /usr/share/webapps/wordpress/wp-admin/plugins.php(10): require_once(‘…’)”
[24-Mar-2021 15:20:47] WARNING: [pool www] child 15 said into stderr: “#7 {main}”
[24-Mar-2021 15:20:47] WARNING: [pool www] child 15 said into stderr: ” thrown in /usr/share/webapps/wordpress/wp-content/plugins/send-pdf-for-contact-form-7-master/classes/send-pdf.php on line 281″
[24-Mar-2021 15:20:47] WARNING: [pool www] child 15 said into stderr: “sh: line 1: /usr/bin/sendmail: No such file or directory”
[24-Mar-2021 15:20:53] WARNING: [pool www] child 126 said into stderr: “NOTICE: PHP message: PHP Fatal error: Uncaught Error: Undefined constant “WPCF7_ADMIN_READ_CAPABILITY” in /usr/share/webapps/wordpress/wp-content/plugins/send-pdf-for-contact-form-7-master/classes/send-pdf.php:281″
[24-Mar-2021 15:20:53] WARNING: [pool www] child 126 said into stderr: “Stack trace:”
[24-Mar-2021 15:20:53] WARNING: [pool www] child 126 said into stderr: “#0 /usr/share/webapps/wordpress/wp-includes/class-wp-hook.php(292): cf7_sendpdf->wpcf7pdf_add_admin()”
[24-Mar-2021 15:20:53] WARNING: [pool www] child 126 said into stderr: “#1 /usr/share/webapps/wordpress/wp-includes/class-wp-hook.php(316): WP_Hook->apply_filters()”
[24-Mar-2021 15:20:53] WARNING: [pool www] child 126 said into stderr: “#2 /usr/share/webapps/wordpress/wp-includes/plugin.php(484): WP_Hook->do_action()”
[24-Mar-2021 15:20:53] WARNING: [pool www] child 126 said into stderr: “#3 /usr/share/webapps/wordpress/wp-admin/includes/menu.php(155): do_action()”
[24-Mar-2021 15:20:53] WARNING: [pool www] child 126 said into stderr: “#4 /usr/share/webapps/wordpress/wp-admin/menu.php(327): require_once(‘…’)”
[24-Mar-2021 15:20:53] WARNING: [pool www] child 126 said into stderr: “#5 /usr/share/webapps/wordpress/wp-admin/admin.php(158): require(‘…’)”
[24-Mar-2021 15:20:53] WARNING: [pool www] child 126 said into stderr: “#6 /usr/share/webapps/wordpress/wp-admin/plugins.php(10): require_once(‘…’)”
[24-Mar-2021 15:20:53] WARNING: [pool www] child 126 said into stderr: “#7 {main}”
[24-Mar-2021 15:20:53] WARNING: [pool www] child 126 said into stderr: ” thrown in /usr/share/webapps/wordpress/wp-content/plugins/send-pdf-for-contact-form-7-master/classes/send-pdf.php on line 281″
[24-Mar-2021 15:20:56] WARNING: [pool www] child 19 said into stderr: “NOTICE: PHP message: PHP Fatal error: Uncaught Error: Undefined constant “WPCF7_ADMIN_READ_CAPABILITY” in /usr/share/webapps/wordpress/wp-content/plugins/send-pdf-for-contact-form-7-master/classes/send-pdf.php:281″
[24-Mar-2021 15:20:56] WARNING: [pool www] child 19 said into stderr: “Stack trace:”
[24-Mar-2021 15:20:56] WARNING: [pool www] child 19 said into stderr: “#0 /usr/share/webapps/wordpress/wp-includes/class-wp-hook.php(292): cf7_sendpdf->wpcf7pdf_add_admin()”
[24-Mar-2021 15:20:56] WARNING: [pool www] child 19 said into stderr: “#1 /usr/share/webapps/wordpress/wp-includes/class-wp-hook.php(316): WP_Hook->apply_filters()”
[24-Mar-2021 15:20:56] WARNING: [pool www] child 19 said into stderr: “#2 /usr/share/webapps/wordpress/wp-includes/plugin.php(484): WP_Hook->do_action()”
[24-Mar-2021 15:20:56] WARNING: [pool www] child 19 said into stderr: “#3 /usr/share/webapps/wordpress/wp-admin/includes/menu.php(155): do_action()”
[24-Mar-2021 15:20:56] WARNING: [pool www] child 19 said into stderr: “#4 /usr/share/webapps/wordpress/wp-admin/menu.php(327): require_once(‘…’)”
[24-Mar-2021 15:20:56] WARNING: [pool www] child 19 said into stderr: “#5 /usr/share/webapps/wordpress/wp-admin/admin.php(158): require(‘…’)”
[24-Mar-2021 15:20:56] WARNING: [pool www] child 19 said into stderr: “#6 /usr/share/webapps/wordpress/wp-admin/index.php(10): require_once(‘…’)”
[24-Mar-2021 15:20:56] WARNING: [pool www] child 19 said into stderr: “#7 {main}”
[24-Mar-2021 15:20:56] WARNING: [pool www] child 19 said into stderr: ” thrown in /usr/share/webapps/wordpress/wp-content/plugins/send-pdf-for-contact-form-7-master/classes/send-pdf.php on line 281″
[24-Mar-2021 15:21:32] WARNING: [pool www] child 18 said into stderr: “NOTICE: PHP message: PHP Fatal error: Uncaught Error: Undefined constant “WPCF7_ADMIN_READ_CAPABILITY” in /usr/share/webapps/wordpress/wp-content/plugins/send-pdf-for-contact-form-7/classes/send-pdf.php:281″
[24-Mar-2021 15:21:32] WARNING: [pool www] child 18 said into stderr: “Stack trace:”
[24-Mar-2021 15:21:32] WARNING: [pool www] child 18 said into stderr: “#0 /usr/share/webapps/wordpress/wp-includes/class-wp-hook.php(292): cf7_sendpdf->wpcf7pdf_add_admin()”
[24-Mar-2021 15:21:32] WARNING: [pool www] child 18 said into stderr: “#1 /usr/share/webapps/wordpress/wp-includes/class-wp-hook.php(316): WP_Hook->apply_filters()”
[24-Mar-2021 15:21:32] WARNING: [pool www] child 18 said into stderr: “#2 /usr/share/webapps/wordpress/wp-includes/plugin.php(484): WP_Hook->do_action()”
[24-Mar-2021 15:21:32] WARNING: [pool www] child 18 said into stderr: “#3 /usr/share/webapps/wordpress/wp-admin/includes/menu.php(155): do_action()”
[24-Mar-2021 15:21:32] WARNING: [pool www] child 18 said into stderr: “#4 /usr/share/webapps/wordpress/wp-admin/menu.php(327): require_once(‘…’)”
[24-Mar-2021 15:21:32] WARNING: [pool www] child 18 said into stderr: “#5 /usr/share/webapps/wordpress/wp-admin/admin.php(158): require(‘…’)”
[24-Mar-2021 15:21:32] WARNING: [pool www] child 18 said into stderr: “#6 /usr/share/webapps/wordpress/wp-admin/plugins.php(10): require_once(‘…’)”
[24-Mar-2021 15:21:32] WARNING: [pool www] child 18 said into stderr: “#7 {main}”
[24-Mar-2021 15:21:32] WARNING: [pool www] child 18 said into stderr: ” thrown in /usr/share/webapps/wordpress/wp-content/plugins/send-pdf-for-contact-form-7/classes/send-pdf.php on line 281″
[24-Mar-2021 15:21:34] WARNING: [pool www] child 15 said into stderr: “NOTICE: PHP message: PHP Fatal error: Uncaught Error: Undefined constant “WPCF7_ADMIN_READ_CAPABILITY” in /usr/share/webapps/wordpress/wp-content/plugins/send-pdf-for-contact-form-7/classes/send-pdf.php:281″
[24-Mar-2021 15:21:34] WARNING: [pool www] child 15 said into stderr: “Stack trace:”
[24-Mar-2021 15:21:34] WARNING: [pool www] child 15 said into stderr: “#0 /usr/share/webapps/wordpress/wp-includes/class-wp-hook.php(292): cf7_sendpdf->wpcf7pdf_add_admin()”
[24-Mar-2021 15:21:34] WARNING: [pool www] child 15 said into stderr: “#1 /usr/share/webapps/wordpress/wp-includes/class-wp-hook.php(316): WP_Hook->apply_filters()”
[24-Mar-2021 15:21:34] WARNING: [pool www] child 15 said into stderr: “#2 /usr/share/webapps/wordpress/wp-includes/plugin.php(484): WP_Hook->do_action()”
[24-Mar-2021 15:21:34] WARNING: [pool www] child 15 said into stderr: “#3 /usr/share/webapps/wordpress/wp-admin/includes/menu.php(155): do_action()”
[24-Mar-2021 15:21:34] WARNING: [pool www] child 15 said into stderr: “#4 /usr/share/webapps/wordpress/wp-admin/menu.php(327): require_once(‘…’)”
[24-Mar-2021 15:21:34] WARNING: [pool www] child 15 said into stderr: “#5 /usr/share/webapps/wordpress/wp-admin/admin.php(158): require(‘…’)”
[24-Mar-2021 15:21:34] WARNING: [pool www] child 15 said into stderr: “#6 /usr/share/webapps/wordpress/wp-admin/plugins.php(10): require_once(‘…’)”
[24-Mar-2021 15:21:34] WARNING: [pool www] child 15 said into stderr: “#7 {main}”
[24-Mar-2021 15:21:34] WARNING: [pool www] child 15 said into stderr: ” thrown in /usr/share/webapps/wordpress/wp-content/plugins/send-pdf-for-contact-form-7/classes/send-pdf.php on line 281″`Edit: However, now there are no more erros but the custom shortcodes still dont work.
They appear in the pdf like they are not executed (with the square brackets).Hi!
Have you enter you shortcode in “Enter here your Shortcodes” field?
Thanks
- The topic ‘Custom Shortcodes’ is closed to new replies.