I have been working with some clients on some issues and I think I can shed some light on problems people have been having. See below:
Symptom: Blank page when sending orders or Cannot redeclare class FPDF error when Super Orders is installed.
Cause: It appears that the new version of Super Orders ALWAYS requires fpdf for EVERY admin page. It does it in this file: admin/includes/functions/extra_functions/lcsd_merged_packing_slips.php. Files in that directory are always loaded no matter what page is loaded. So, every page loads FPDF. In addition, the new version of Super Orders also uses an outdated version of FPDF.
Purchase Orders stores fpdf in the admin directory and Super Orders stores it in admin/includes/classes. So, changing require to require_once won't do the trick. Plus, they are different versions of FPDF anyway.
Solution: 1. Take out the require line for fpdf at the top of admin/pdfpack.php. It should look like this:
Code:
require('fpdf/fpdf.php');
2. Delete the old admin/includes/classes/fpdf folder. 3. Move the folder admin/fpdf to admin/includes/classes. 4. Find the line in admin/send_pos.php near the top that defines where the font directory is for fpdf. Change it from fpdf/font/ to includes/classes/fpdf/font/. The line you are looking for should look like this:
Code:
define('FPDF_FONTPATH','fpdf/font/');
Or...just don't use Super Orders with Purchase Orders.
------------------
Symptom: Using the new version of TY Package Tracker makes the enter tracking page not function correctly or not function at all.
Cause: A legacy line of code in Purchase Orders requires a file from TY Package Tracker that no longer exists in the new version. Luckily, as I said, this line of code is legacy, and should no longer be necessary.
Solution: This makes the solution easy! Just remove this line of code from admin/confirm_track_sub.php:
Code:
require('admin/includes/extra_datafiles/tracker.php');
Of course, admin will be changed to your admin directory per the installation instructions. Some versions may have a different line:
Code:
require($admin_dir.'/includes/extra_datafiles/tracker.php');
Either way, remove this line and all is well again.
I hope that helps!
Bookmarks