jonaswork
Forum Replies Created
Viewing 3 replies - 1 through 3 (of 3 total)
-
Forum: Plugins
In reply to: [DK PDF - WordPress PDF Generator] CSS not displaying correctlyThank you so much for your help!
Forum: Plugins
In reply to: [DK PDF - WordPress PDF Generator] CSS not displaying correctlyHi dinamiko
Thank you for answering and solving the problem with the error message.
I’ve updated and now the following error occur in the debug.log (seems that still something is worng with:
[17-Oct-2024 08:52:36 UTC] PHP Deprecated: Function strftime() is deprecated in /var/www/vhosts/mythenforum.ch/httpdocs/wp-content/themes/henrik-child/dkpdf/dkpdf-index.php on line 91
[17-Oct-2024 08:52:36 UTC] PHP Deprecated: Function strftime() is deprecated in /var/www/vhosts/mythenforum.ch/httpdocs/wp-content/themes/henrik-child/dkpdf/dkpdf-index.php on line 94
[17-Oct-2024 08:52:36 UTC] PHP Deprecated: Function strftime() is deprecated in /var/www/vhosts/mythenforum.ch/httpdocs/wp-content/themes/henrik-child/dkpdf/dkpdf-index.php on line 97
[17-Oct-2024 08:52:36 UTC] PHP Deprecated: Function strftime() is deprecated in /var/www/vhosts/mythenforum.ch/httpdocs/wp-content/themes/henrik-child/dkpdf/dkpdf-index.php on line 100
[17-Oct-2024 08:52:36 UTC] PHP Deprecated: Function strftime() is deprecated in /var/www/vhosts/mythenforum.ch/httpdocs/wp-content/themes/henrik-child/dkpdf/dkpdf-index.php on line 103
[17-Oct-2024 08:52:36 UTC] PHP Deprecated: Function strftime() is deprecated in /var/www/vhosts/mythenforum.ch/httpdocs/wp-content/themes/henrik-child/dkpdf/dkpdf-index.php on line 106
[17-Oct-2024 08:52:36 UTC] PHP Deprecated: Function strftime() is deprecated in /var/www/vhosts/mythenforum.ch/httpdocs/wp-content/themes/henrik-child/dkpdf/dkpdf-index.php on line 109
[17-Oct-2024 08:52:38 UTC] PHP Warning: Undefined array key "bgcolorarray" in /var/www/vhosts/mythenforum.ch/httpdocs/wp-content/plugins/dk-pdf/lib/packages/Mpdf/Mpdf.php on line 18613
[17-Oct-2024 08:52:38 UTC] PHP Warning: Trying to access array offset on null in /var/www/vhosts/mythenforum.ch/httpdocs/wp-content/plugins/dk-pdf/lib/packages/Mpdf/Mpdf.php on line 16140
[17-Oct-2024 08:52:38 UTC] PHP Warning: Trying to access array offset on null in /var/www/vhosts/mythenforum.ch/httpdocs/wp-content/plugins/dk-pdf/lib/packages/Mpdf/Mpdf.php on line 16140
[17-Oct-2024 08:52:38 UTC] PHP Warning: Trying to access array offset on null in /var/www/vhosts/mythenforum.ch/httpdocs/wp-content/plugins/dk-pdf/lib/packages/Mpdf/Mpdf.php on line 16140
[17-Oct-2024 08:52:38 UTC] PHP Warning: Trying to access array offset on null in /var/www/vhosts/mythenforum.ch/httpdocs/wp-content/plugins/dk-pdf/lib/packages/Mpdf/Mpdf.php on line 16140
[17-Oct-2024 08:52:38 UTC] PHP Warning: Trying to access array offset on null in /var/www/vhosts/mythenforum.ch/httpdocs/wp-content/plugins/dk-pdf/lib/packages/Mpdf/Mpdf.php on line 16140
[17-Oct-2024 08:52:38 UTC] PHP Warning: Undefined array key "bgcolorarray" in /var/www/vhosts/mythenforum.ch/httpdocs/wp-content/plugins/dk-pdf/lib/packages/Mpdf/Mpdf.php on line 18613Thanks also for the tip on fixing the strftime error, but I have no idea how to solve it (as I’m not really a developer).
Do you have a tip? At the moment it looks like this:
<?php /* // Evtl. brauchbar für Admin $seiten_url = add_query_arg($_SERVER['QUERY_STRING'], '', home_url( $wp->request )); $findMich = '?pdf='; $pdf_Seite = strpos($seiten_url, $findMich); */ $karten_titel = get_field("karten_bezeichnung"); $karten_titel_hinweiszeile = get_field("kalenderwoche"); //Kalenderwochen-Nr. aus Zeile extrahieren $year = date("Y"); $str = $karten_titel_hinweiszeile; preg_match_all('!\d+!', $str, $matches); $week_no = $matches[0][0]; $datetime = new DateTime(); $datetime->setISODate($year,$week_no); $montag_nach_wo_nr = $datetime->modify("+0 day")->format('d-m-Y'); $montag_deutsch = strftime("%d. %B %Y", strtotime($montag_nach_wo_nr)); $dienstag_nach_wo_nr = $datetime->modify("+1 day")->format('d-m-Y'); $dienstag_deutsch = strftime("%d. %B %Y", strtotime($dienstag_nach_wo_nr)); $mittwoch_nach_wo_nr = $datetime->modify("+1 day")->format('d-m-Y'); $mittwoch_deutsch = strftime("%d. %B %Y", strtotime($mittwoch_nach_wo_nr)); $donnerstag_nach_wo_nr = $datetime->modify("+1 day")->format('d-m-Y'); $donnerstag_deutsch = strftime("%d. %B %Y", strtotime($donnerstag_nach_wo_nr)); $freitag_nach_wo_nr = $datetime->modify("+1 day")->format('d-m-Y'); $freitag_deutsch = strftime("%d. %B %Y", strtotime($freitag_nach_wo_nr)); $samstag_nach_wo_nr = $datetime->modify("+1 day")->format('d-m-Y'); $samstag_deutsch = strftime("%d. %B %Y", strtotime($samstag_nach_wo_nr)); $sonntag_nach_wo_nr = $datetime->modify("+1 day")->format('d-m-Y'); $sonntag_deutsch = strftime("%d. %B %Y", strtotime($sonntag_nach_wo_nr)); ?>
Thank you for your help!
Jonas
Forum: Plugins
In reply to: [DK PDF - WordPress PDF Generator] CSS not displaying correctlyPerfect, thank you so much!
It looks like only this error remains in the log:
[07-Oct-2024 11:58:17 UTC] PHP Deprecated: Creation of dynamic property DKPDF::$admin is deprecated in /var/www/vhosts/mythenforum.ch/httpdocs/wp-content/plugins/dk-pdf/dk-pdf.php on line 75
Viewing 3 replies - 1 through 3 (of 3 total)