Dompdf library is not working in joomla - php

I am using Google's dompdf library to download articles as pdf in my joomla site( test.guru99.com/arrays.html ), it was working fine before.
Now when i enabled Rokbooster - loadtime optimizer pdf downloader is stopped working. I have printed out the errors in a log file but i didn't understand what are the errors.
I have integrated dompdf library in joomla using this. I know this issue is arise due to Rokbooster plugin.
Here's error log file, i just want to understand the error so that i can debug and solve the issue.

Use following link. It has properly described how to install the library step by step.
Creating PDF views

Related

according to xammps dashboard, imagick is installed, but accoring to laravel, imagic class does not exist

I am working on a schoolproject which should be able to generate pdf of a qr code.
I have a view that contains a label about track and trace info:
But when I generate a pdf of it, the following error occurs:
But according to xammps dashboard, imagick is already installed
I am using laravel version 9 for this project, php version 8.1 and xammp. I spent hours to try to find a solution, but no results. Any one that can help me out? I'd really appreciate it!

Login error on Joomla 2.5.28 installation

After installing a Joomla plugin called “Digi Template Switch” on a live server everything seemed fine until my session expired and I tried accessing the dashboard with my credentials, only this time I got a php error -
Fatal error: Call to undefined method JUserHelper::verifyPassword() in /home/mysite/public_html/plugins/authentication/joomla/joomla.php on line 56
Read up on some people who have had this issue in the past and they suggested replacing the adminstrator, libraries and include folders with that from a fresh download of same Joomla version but I have installed quite a few plugins already which would make my replacing the administrator folder a little tricky.
Would really appreciate an assistance as the Joomla installation is on a live server at the moment without access to the backend.
You can download joomla version 2.5.28 and replace that file con your server, the plugins you have installed will not be touched.

PDF version downgrade to 1.4 - No SSH access

I'm currently using mpdf to merge together a few pdf files the users uploaded. I found myself to face the issue of mpdf using the free version of FPDI which gives a mPDF error: Unable to find xref table - Maybe a Problem with 'auto_detect_line_endings' error when trying to operate on files whose PDF version is higher than 1.4.
I don't have ssh access but just CPanel, so I can't install GhostScript. Having to tell users to manually re-save and downgrade their own PDFs before uploading them surely isn't the way to go at it.
tl;dr Is there some way to downgrade PDFs to 1.4, using PHP, without ssh access/relying on an external server to convert?

Installing phpwkhtmltopdf by mikehaertl

I've spent hours on this problem and still got nothing. I'm quite a noob when it comes to installing something rather than double clicking may that's why i'm stuck.
What i want to do is to develop a web service which takes a url and returns an image file of the screen shot of that url.
I found out that i can do this doing the following steps:
Using wkhtmltopdf to convert my html files to pdf
And then converting this pdf to image using php imagic library.
I'm still on the first step. I downloaded an executable for wkhtmltopdf from some website and by using the following lines in command line, i successfully created a pdf:
\"C:\\Program Files\\wkhtmltopdf\\bin\\wkhtmltopdf\" --page-width 300 --page-height 225 \"$url\" $dir\\$tempName.pdf &
But now i wanted to make this as a web service online but this lines just run on cmd, not on a shared hosting server. What to do know? I've also seen phpwkhtmltopdf but i don't understand the installation phase as disscused Here.

codeigniter HMVC issue

I installed the codeigniter HMVC plugin and it's working fine for me but when I try to load any plugin I get the error
An Error Was Encountered
Unable to locate the file: captcha_pi.php
Even if this file exists. I added one more plugin but it's the same. Do plugins work with HMVC?
The problem is that captcha is not a plugin, it's a helper (the reference guide example loads it as a plugin).
So, all you need to do is:
$this->load->helper('captcha');
instead of:
$this->load->plugin('captcha');
Plugins are a dying breed anyway. What version of CodeIgniter are you using, and what version of HMVC? The most recent is designed to work with CI 2.0 with compatibility for 1.7.x, but it could well be that it's broken. You should upgrade to CodeIgniter 2.0 anyway.

Categories