สอบถามปริ้นเอกสารใบปะหน้าไม่ได้

ถามตอบ ปัญหาการพัฒนา Extension ไม่ว่าจะเป็น Module plugin Component หรือ แม้แต่ template การปรับแต่งโค้ด Joomla ต่างๆ ทุกเวอร์ชั่น 1.5 2.5 หรือ 3.x

Moderator: mindphp, ผู้ดูแลกระดาน

ภาพประจำตัวสมาชิก
Thanapoom1514
PHP VIP Members
PHP VIP Members
โพสต์: 4329
ลงทะเบียนเมื่อ: 04/07/2022 9:46 am

สอบถามปริ้นเอกสารใบปะหน้าไม่ได้

โพสต์ที่ยังไม่ได้อ่าน โดย Thanapoom1514 »

ใน localhost สามารถปริ้นเอกสารใบปะหน้าได้ครับ แต่ในอัพขึ้นเว็บแล้วลองปริ้นใช้งานไม่ได้ครับ
Joomla Development-1.png
Joomla Development-1.png (37.54 KiB) Viewed 1536 times

โค้ด: เลือกทั้งหมด

TCPDF ERROR: Unable to create output file: /components/com_mooziicart/files/delivery_label/72_delivery_label_f71bdaa1a78a24dce1bc1ffa4c779e2c.pdf
ซึ่ง localhost สามารถกดปริ้นเอกสารขึ้นแสดงได้ครับ
Joomla Development-2.png
Joomla Development-2.png (75.75 KiB) Viewed 1536 times
โค้ดปริ้นหน้าเอกสาร

โค้ด: เลือกทั้งหมด

	public function printDeliveryLabel()
	{
		$order_id = $this->input->getInt("order_id");
		$order = MZCFactory::getTable('order');
		$order->load($order_id);
		$order->prepareOrderPrint('', 1);
		
		$jshopConfig = MZCFactory::getConfig();
		$file_generete_pdf_order = $jshopConfig->file_generete_pdf_order;
	
		include_once($file_generete_pdf_order);

		$delivery_note = generateDeliveryLabelPDF($order);
		if ($delivery_note && file_exists(JPATH_ROOT . '/components/com_mooziicart/files/delivery_label/' . $delivery_note))
		{
			header('location: ' . JUri::root() . 'components/com_mooziicart/files/delivery_label/' . $delivery_note);
		}
		exit();
	}
:gfb:
ภาพประจำตัวสมาชิก
tsukasaz
PHP VIP Members
PHP VIP Members
โพสต์: 24190
ลงทะเบียนเมื่อ: 18/04/2012 9:39 am

Re: สอบถามปริ้นเอกสารใบปะหน้าไม่ได้

โพสต์ที่ยังไม่ได้อ่าน โดย tsukasaz »

ปัญหาน่าเป็นโฟลเดอร์หาย delivery_label
The last bug isn't fixed until the last user is dead. (Sidney Markowitz, 1995)
ตอบกลับโพส

ผู้ใช้งานขณะนี้

สมาชิกกำลังดูบอร์ดนี้: ไม่มีสมาชิกใหม่ และบุคลทั่วไป 11