Warning (2) : file_put_contents(): Only 0 of 1790 bytes written, possibly out of free disk space [CORE\Cake\Log\Engine\FileLog.php , line 88 ]Code Context }
$output = date ( 'Y-m-d H:i:s' ) . ' ' . ucfirst ( $type ) . ': ' . $message . "\n" ;
return file_put_contents ( $filename , $output , FILE_APPEND );
$type = 'error'
$message = '[MissingConnectionException] Database connection "Mysql" is missing, or could not be created.
#0 D:\xampp\htdocs\lannathaicoffeehub\lib\Cake\Model\Datasource\DboSource.php(261): Mysql->connect()
#1 D:\xampp\htdocs\lannathaicoffeehub\lib\Cake\Model\ConnectionManager.php(101): DboSource->__construct(Array)
#2 D:\xampp\htdocs\lannathaicoffeehub\lib\Cake\Model\Model.php(3195): ConnectionManager::getDataSource('default')
#3 D:\xampp\htdocs\lannathaicoffeehub\lib\Cake\Model\Model.php(1107): Model->setDataSource('default')
#4 D:\xampp\htdocs\lannathaicoffeehub\lib\Cake\Model\Model.php(3217): Model->setSource('category')
#5 D:\xampp\htdocs\lannathaicoffeehub\lib\Cake\Model\Model.php(2674): Model->getDataSource()
#6 D:\xampp\htdocs\lannathaicoffeehub\app\Model\Category.php(36): Model->find('all', Array)
#7 D:\xampp\htdocs\lannathaicoffeehub\app\Controller\AppController.php(43): Category->getCategoryMenu()
#8 D:\xampp\htdocs\lannathaicoffeehub\app\Controller\HomepagesController.php(16): AppController->beforeFilter()
#9 [internal function]: HomepagesController->beforeFilter(Object(CakeEvent))
#10 D:\xampp\htdocs\lannathaicoffeehub\lib\Cake\Event\CakeEventManager.php(247): call_user_func(Array, Object(CakeEvent))
#11 D:\xampp\htdocs\lannathaicoffeehub\lib\Cake\Controller\Controller.php(669): CakeEventManager->dispatch(Object(CakeEvent))
#12 D:\xampp\htdocs\lannathaicoffeehub\lib\Cake\Routing\Dispatcher.php(183): Controller->startupProcess()
#13 D:\xampp\htdocs\lannathaicoffeehub\lib\Cake\Routing\Dispatcher.php(161): Dispatcher->_invoke(Object(HomepagesController), Object(CakeRequest), Object(CakeResponse))
#14 D:\xampp\htdocs\lannathaicoffeehub\app\webroot\index.php(97): Dispatcher->dispatch(Object(CakeRequest), Object(CakeResponse))
#15 {main}'
$debugTypes = array(
(int) 0 => 'notice',
(int) 1 => 'info',
(int) 2 => 'debug'
)
$filename = 'D:\xampp\htdocs\lannathaicoffeehub\app\tmp\logs\error.log'
$output = '2025-05-03 01:59:27 Error: [MissingConnectionException] Database connection "Mysql" is missing, or could not be created.
#0 D:\xampp\htdocs\lannathaicoffeehub\lib\Cake\Model\Datasource\DboSource.php(261): Mysql->connect()
#1 D:\xampp\htdocs\lannathaicoffeehub\lib\Cake\Model\ConnectionManager.php(101): DboSource->__construct(Array)
#2 D:\xampp\htdocs\lannathaicoffeehub\lib\Cake\Model\Model.php(3195): ConnectionManager::getDataSource('default')
#3 D:\xampp\htdocs\lannathaicoffeehub\lib\Cake\Model\Model.php(1107): Model->setDataSource('default')
#4 D:\xampp\htdocs\lannathaicoffeehub\lib\Cake\Model\Model.php(3217): Model->setSource('category')
#5 D:\xampp\htdocs\lannathaicoffeehub\lib\Cake\Model\Model.php(2674): Model->getDataSource()
#6 D:\xampp\htdocs\lannathaicoffeehub\app\Model\Category.php(36): Model->find('all', Array)
#7 D:\xampp\htdocs\lannathaicoffeehub\app\Controller\AppController.php(43): Category->getCategoryMenu()
#8 D:\xampp\htdocs\lannathaicoffeehub\app\Controller\HomepagesController.php(16): AppController->beforeFilter()
#9 [internal function]: HomepagesController->beforeFilter(Object(CakeEvent))
#10 D:\xampp\htdocs\lannathaicoffeehub\lib\Cake\Event\CakeEventManager.php(247): call_user_func(Array, Object(CakeEvent))
#11 D:\xampp\htdocs\lannathaicoffeehub\lib\Cake\Controller\Controller.php(669): CakeEventManager->dispatch(Object(CakeEvent))
#12 D:\xampp\htdocs\lannathaicoffeehub\lib\Cake\Routing\Dispatcher.php(183): Controller->startupProcess()
#13 D:\xampp\htdocs\lannathaicoffeehub\lib\Cake\Routing\Dispatcher.php(161): Dispatcher->_invoke(Object(HomepagesController), Object(CakeRequest), Object(CakeResponse))
#14 D:\xampp\htdocs\lannathaicoffeehub\app\webroot\index.php(97): Dispatcher->dispatch(Object(CakeRequest), Object(CakeResponse))
#15 {main}
' file_put_contents - [internal], line ??
FileLog::write() - CORE\Cake\Log\Engine\FileLog.php, line 88
CakeLog::write() - CORE\Cake\Log\CakeLog.php, line 452
ErrorHandler::handleException() - CORE\Cake\Error\ErrorHandler.php, line 117
[main] - [internal], line ??
CakePHP: the rapid development php framework:
Errors
Warning (512) : _cake_core_ cache was unable to write 'default_tha' to File cache [CORE\Cake\Cache\Cache.php , line 309 ]Code Context ),
E_USER_WARNING
);
$key = 'default_tha'
$value = array(
'LC_MESSAGES' => array(
'Map of Coffee' => 'แผนที่กาแฟ',
'Tourism Route' => 'เส้นทางท่องเที่ยว',
'Cultivated Area' => 'พื้นที่เพาะปลูก',
'Coffee list' => 'รายชื่อกาแฟ',
'Knowledge' => 'องค์ความรู้',
'Promoting Lanna Coffee Activities' => 'กิจกรรมเสริมสร้างกาแฟล้านนา',
'About us' => 'เกี่ยวกับเรา',
'Member' => 'สมาชิก',
'Log in' => 'เข้าสู่ระบบ',
'E-mail' => 'อีเมล์์',
'Password' => 'รหัสผ่าน',
'Register' => 'สมัครสมาชิก',
'Language' => 'เลือกภาษา',
'Home' => 'หน้าแรก',
'News' => 'ข่าวสาร',
'Map' => 'ดูแผนที่',
'Specialist' => 'ผู้เชี่ยวชาญ',
'Information Center for Coffee Lover' => 'ศูนย์รวมข้อมูลทางด้านกาแฟ เพื่อคนรักกาแฟ',
'Coffee Shops' => 'ดูร้านกาแฟ',
'Coffee knowledge' => 'องค์ความรู้กาแฟ',
'Video' => 'วีดีโอ',
'Event Calendar' => 'ปฏิทินกิจกรรม',
'Coffee Lover Activity' => 'กิจกรรมคนรักกาแฟ',
'January' => 'มกราคม',
'February' => 'กุมภาพันธ์',
'March' => 'มีนาคม',
'April' => 'เมษายน',
'May' => 'พฤษภาคม',
'June' => 'มิถุนายน',
'July' => 'กรกฎาคม',
'August' => 'สิงหาคม',
'September' => 'กันยายน',
'October' => 'ตุลาคม',
'November' => 'พฤศจิกายน',
'December' => 'ธันวาคม',
'Search for Coffee Shop' => 'ค้นหาร้านกาแฟ',
'All' => 'ทั้งหมด',
'Arabica Coffee Center' => 'ศูนย์กาแฟอาราบิกา',
'Coffee Specialist' => 'ผู้เชี่ยวชาญทางด้านกาแฟ',
'Enter Keyword' => 'โปรดระบุคำสำคัญ',
'Data base' => 'ระบบฐานข้อมูล',
'Sort by' => 'เรียงตามลำดับโดย',
'Alphabet' => 'ตัวอักษร',
'Popularity' => 'ความนิยม',
'Province' => 'จังหวัด',
'Chiang Mai' => 'เชียงใหม่',
'Lamphun' => 'ลำพูน',
'Lampang' => 'ลำปาง',
'Mae Hong Son' => 'แม่ฮ่องสอน',
'Chiang Rai' => 'เชียงราย',
'Others' => 'อื่นๆ',
'Type of Map' => 'ประเภทแผนที่',
'Opening-Closing time' => 'เวลาเปิด-ปิด',
'Unspecified time' => 'ไม่ระบุช่วงเวลา',
'Satisfaction Levels' => 'ระดับความพึงพอใจ',
'Satisfaction' => 'ความพึงพอใจ',
'Visitors' => 'ผู้เข้าชม',
'Nearby attractions' => 'สถานที่ท่องเที่ยวใกล้เคียง',
'Kilometer' => 'กิโลเมตร',
'Place Detail' => 'รายละเอียดสถานที่',
'Contact' => 'ช่องทางการติดต่อ',
'Name-Surname' => 'ชื่อ-นามสกุล',
'Telephone หรือ Tel.' => 'โทรศัพท์',
'Mobile phone' => 'โทรศัพท์มือถือ',
'Website' => 'เว็บไซต์',
'Price' => 'ราคา',
'Baht' => 'บาท',
'Baht/Kg' => 'บาท/กิโลกรัม',
'Promotion' => 'กิจกรรมส่งเสริมการขาย',
'Recommended menu' => 'เมนูแนะนำ',
'Barista' => 'บาริสตา',
'Search for Article' => 'ค้นหาบทความ',
'Posting date' => 'วันที่ล่าสุด',
'Project's Activities' => 'กิจกรรมโครงการ',
'Type of Media' => 'ประเภทสื่อ',
'Article' => 'บทความ',
'Gallery' => 'ประมวลภาพ',
'Download' => 'ดาวน์โหลด',
'Search for place' => 'ค้นหาสถานที่',
'Certified by Province' => 'คัดกรองโดยจังหวัด',
'Show all' => 'แสดงทั้งหมด',
'Category' => 'หมวดหมู่',
'More Information' => 'ข้อมูลเพิ่มเติม',
'Capacity (Person)' => 'ความจุสูงสุด (คน)',
'Do you want to subscribe for news and updates via e-mail?' => 'ท่านต้องการรับข่าวสารของโครงการผ่านอีเมล์์หรือไม่',
'Cancel' => 'ยกเลิก',
'Address' => 'ที่อยู่',
'Member Detail' => 'รายละเอียดสมาชิก',
'Edit' => 'แก้ไขข้อมูล',
'Delete' => 'ลบ',
'Shop's QR code' => 'QR ร้าน',
'Subscription' => 'สมัครรับข่าวสาร',
'Please enter your e-mail' => 'กรุณากรอกอีเมล์์ของท่าน',
'Target' => 'กลุ่มเป้าหมาย',
'Type of Proficiency' => 'ประเภทความชำนาญ',
'Special Discount' => 'พิเศษ รับส่วนลด',
'Arabica Coffee' => 'กาแฟอาราบิกา',
'Distinctive Species' => 'สายพันธุ์ที่โดดเด่น',
'Lanna Distinctive Species' => 'สายพันธุ์ล้านนาที่โดดเด่น',
'Source of Coffee Production' => 'แหล่งผลิตกาแฟ',
'Mae Hia Agricultural Research and Training Center' => 'ศูนย์พัฒนากาแฟล้านนาไทย',
'Mae Hia, Muang, Chiang Mai (Near Faculty of Agro Industry, Chiang Mai University)' => 'ต.แม่เหียะ อ.เมือง เชียงใหม่ (ใกล้คณะอุตสาหกรรมเกษตร มหาวิทยาลัยเชียงใหม่)',
'Arabica Coffee Experts' => 'ทางด้านกาแฟอะราบิกา',
'Experts in cultivated plot management, post-harvest plant diseases and pest control, including those who have the ability to maintain and control the quality of the entire coffee beans provide consulting services, give advice, help to solve problems in each process, and also be the certification inspector analyzing the quality and safety of coffee beans.' => 'ผู้เชี่ยวชาญในด้านการจัดการในแปลง การควบคุมโรคและแมลงหลังการเก็บเกี่ยว รวมถึงผู้ที่มีความสามารถในการดูแลรักษา ควบคุมคุณภาพเมล็ดกาแฟครบวงจร ให้บริการในด้านการให้คำปรึกษา ให้คำแนะนำและช่วยแก้ไขปัญหาในแต่ละกระบวนการ รวมถึงเป็นผู้ให้การตรวจรับรอง วิเคราะห์ทางด้านคุณภาพและความปลอดภัยของเมล็ดกาแฟ',
'Additional' => 'เพิ่มเติม',
'Read more' => 'อ่านเพิ่ม',
'Be a center for gathering knowledge both domestic and abroad from planting to sales by providing laboratories for analyzing and examining the quality and safety of coffee beans, also laboratories for the development of roasted, brewing, tasting, testing, analyzing, and evaluating the quality of coffee based on international standard to create the identity of Lanna coffee which increases value added to coffee. Open for agriculturists, entrepreneurs, and those who are interested.' => 'เป็นศูนย์กลางในการรวบรวมองค์ความรู้ที่ได้ทั้งในและต่างประเทศ ตั้งแต่การปลูกจนถึงการขาย โดยมีห้องปฏิบัติการสำหรับให้บริการทางด้านการวิเคราะห์ ตรวจสอบทางด้านคุณภาพและความปลอดภัยของเมล็ดกาแฟ รวมถึงมีห้องปฏิบัติการสำหรับพัฒนาการคั่ว ชง ชิม ทดสอบ วิเคราะห์ และประเมินคุณภาพกาแฟในระดับสากล เพื่อสร้างอัตลักษณ์กาแฟล้านนา เพิ่มมูลค่าเพิ่มให้กับกาแฟ เปิดให้บริการสำหรับเกษตรกร ผู้ประกอบการ และผู้ที่สนใจเข้ารับบริการ',
'Objectives' => 'วัตถุประสงค์',
'To increase the production volume and Arabica planting area in the upper Northern provinces area 1.' => 'เพิ่มปริมาณการผลิตและพื้นที่เพาะปลูกกาแฟอะราบิกาในเขตภาคเหนือตอนบน 1',
'To develop the potential and change the system of fresh and roasted Arabica coffee beans production to meet market demand.' => 'พัฒนาศักยภาพและปรับเปลี่ยนระบบการผลิตเมล็ดกาแฟอะราบิกาสดและคั่วให้มีประสิทธิภาพตรงตามที่ตลาดต้องการ',
'To improve the quality of coffee to meet market demand.' => 'ยกระดับคุณภาพกาแฟให้สูงขึ้นตรงตามความต้องการของตลาด',
'To develop agribusiness owners to be professional in the coffee business system' => 'พัฒนานักธุรกิจเกษตร ในระบบธุรกิจกาแฟอย่างมืออาชีพ',
'To create the identity of coffee, encourage, and support the production manufacturing and business sectors to be driven following the coffee strategies.' => 'สร้างอัตลักษณ์เฉพาะตัวของกาแฟเสริมและสนับสนุนภาคการผลิตและภาคธุรกิจในการขับเคลื่อนตามยุทธศาสตร์กาแฟ',
'To create the connection with the upper Northern provinces area 2 and coffee market both domestic and international.' => 'สร้างความเชื่อมโยงกับกลุ่มจังหวัดภาคเหนือตอนบน 2 ตลาดกาแฟในประเทศและต่างประเทศ',
'To increase income for agriculturists.' => 'เพิ่มเงินเพิ่มรายได้ให้แก่เกษตรกร',
'Hide' => 'ซ่อน',
'Show' => 'แสดง',
'The upper Northern provinces area 1. (Chiang Mai, Lamphun, Lampang, and Maehongson) Chiang Mai Provincial Office 3rd Floor, Chotana Road, Chang puak, Muang, Chiang Mai' => '© กลุ่มจังหวัดภาคเหนือตอนบน 1 (เชียงใหม่ ลำพูน ลำปาง แม่ฮ่องสอน) สำนักงานจังหวัดเชียงใหม่ ชั้น 3, ถนนโชตนา, ตำบลช้างเผือก อำเภอเมืองเชียงใหม่ จังหวัดเชียงใหม่',
'Application Download' => 'ดาวน์โหลดแอพลิเคชัน',
'Subscribe' => 'รับข่าวสาร',
'1 Star: Poor' => '1 ดาว : แย่',
'2 Stars: Fair' => '2 ดาว : พอใช้',
'3 Stars: Average' => '3 ดาว : ปานกลาง',
'4 Stars: Good' => '4 ดาว : ดี',
'5 Stars: Excellent' => '5 ดาว : ดีมาก',
'Standard Evaluated by Tasters' => 'ประเมินมาตรฐานร้านกาแฟโดยผู้ชิม',
'Search' => 'ค้นหา',
'No information available in this language.' => 'ไม่มีข้อมูลในภาษานี้',
'Contact us' => 'ติดต่อเรา',
'If you are those who love coffee, come and join us.' => 'หากคุณ คือ ผู้ที่ชื่นชอบเรื่องของกาแฟ มาร่วมเป็นส่วนหนึ่งกับเรา',
'Contact us at ' => 'สามารถติดต่อได้ที่',
'Faculty of Agriculture, Chiang Mai University' => 'คณะเกษตรศาสตร์ มหาวิทยาลัยเชียงใหม่',
'239 Huay Kaew Road, Suthep, Muang, Chiang Mai, Thailand, 50200' => '239 ถ.ห้วยแก้ว ต.สุเทพ อ.เมือง จ.เชียงใหม่ 50200',
'Tel. 0-5394-4031' => 'โทรศัพท์ 0–5394–4031',
'Fax 0-5394-1426, 0-5394-4031 Ext 111' => 'โทรสาร 0–5394–1426, 0–5394–4031 ต่อ 111',
'WebSite : postharvest.cmu.ac.th' => 'WebSite : postharvest.cmu.ac.th',
'WebSite: www.lanna-coffeehub.org' => 'WebSite: www.lanna-coffeehub.org',
'E-mail: postharvest@cmu.ac.th' => 'E-mail: postharvest@cmu.ac.th',
'Facebook : fb.com/LannaThaiCoffeeHub' => 'Facebook : fb.com/LannaThaiCoffeeHub',
'E-book' => 'E-book',
'Place' => 'สถานที่',
'Homepage' => 'หน้าแรก',
'static_page_1' => 'เกี่ยวกับเรา',
'static_page_2' => 'ศูนย์พัฒนากาแฟล้านนาไทย',
'static_page_3' => 'แผนผังเว็ปไซต์',
'Activity' => 'กิจกรรม',
'Data not found' => 'ไม่พบข้อมูล',
'Search for Activity' => 'ค้นหากิจกรรม',
'Search for Specialist' => 'ค้นหาผู้เชี่ยวชาญ',
'Expert Category' => 'หมวดหมู่ผู้เชี่ยวชาญ',
'No category' => 'ไม่มีหมวดหมู่',
'Activity pictures' => 'ประมวลผลภาพกิจกรรม',
'Digital market' => 'ตลาดดิจิทัล',
'Filter by' => 'Filter by',
'Upcoming Events' => 'กิจกกรรมที่กำลังจะเริ่ม',
'Past Events' => 'กิจกกรรมที่ผ่านมา',
'Add to Google calendar' => 'เพิ่มไปยัง Google calendar',
'Village' => 'ชื่อหมู่บ้าน',
'coffee-identity' => 'อัตลักษณ์',
'coffee-detail' => 'รายละเอียด',
'coffee-production' => 'ผลผลิต',
'coffee-history' => 'ประวัติความเป็นมา',
'coffee-management' => 'การบริหารกลุ่ม',
'coffee-grow_system' => 'ระบบการปลูก',
'coffee-product_management' => 'การจัดการผลผลิต',
'coffee-marketing' => 'การตลาด',
'coffee-swot' => 'จุดแข็ง จุดอ่อน และอัตลักษณ์',
'coffee-other' => 'อื่นๆ',
'Search for Coffee' => 'ค้นหาพื้นที่เพาะปลูก',
'Tourist attraction category' => 'ประเภทสถานที่ท่องเที่ยว',
'Brewing method' => 'รูปแบบการชงกาแฟ',
'Not found activity' => 'ไม่พบกิจกรรม',
'Subscribe newsletter' => 'ลงทะเบียนอีเมล์เพื่อรับข่าวสาร',
'You are already subscriber.' => 'อีเมล์นี้เคยลงทะเบียนไว้แล้ว',
'Subscription successfully.' => 'ลงทะเบียนเพื่อรับข่าวสารเรียบร้อยแล้ว',
'Wrong email format.' => 'อีเมล์ไม่ถูกต้อง',
'To date:' => 'ถึงวันที่ :',
'Coffee Traceability Unit' => 'หน่วยตรวจสอบย้อนกลับเมล็ดกาแฟ',
'Download Application here' => 'ดาวน์โหลด Application ได้ที่',
'Follow us' => 'ติดตามเราได้ที่',
'Address No.' => 'บ้านเลขที่',
'Buildings / Villages name' => 'อาคาร/หมู่บ้าน',
'soi' => 'ซอย',
'road' => 'ถนน',
'moo' => 'หมู่ที่',
'Tambol' => 'ตำบล',
'Request to use project logo' => 'ขอสมัครใช้โลโก้ของโครงการ',
'Address_' => 'ที่อยู่',
'Email (Username)' => 'อีเมล์(ใช้เป็นบัญชีผู้ใช้)',
'Confirm password' => 'ยืนยันรหัสผ่าน',
'Capcha not correct.' => 'Capcha ไม่ถูกต้อง',
'Not Subscribe' => 'ไม่รับข่าวสาร',
'agree_send_id_card_copy' => 'ยินดีส่งเอกสาร "<span style='color:red;'>สำเนาบัตรประชาชน หรือ สำเนาใบจดทะเบียนร้านค้า</span>" มายัง <br/>ดร.ณัฏฐวัฒน์ หมื่นมาณี ศูนย์วิจัยหลังการเก็บเกี่ยว คณะเกษตรศาสตร์ มหาวิทยาลัยเชียงใหม่ 239 ถ.ห้วยแก้ว อ.เมือง จ.เชียงใหม่ 50200 โปรดระบุมุมซอง "ส่งถึงโครงการ Lanna Thai Coffee Hub"',
'agree_alert' => 'กรุณายอมรับการส่งสำเนาบัตรประชำชนหรือสำเนาใบจดทะเบียนร้านค้า',
'For member' => 'สำหรับสมาชิก',
'For farmer' => 'สำหรับเกษตรกร',
'Entrepreneur Member' => 'จำนวนสมาชิกผู้ประกอบการ',
'Farmer Member' => 'จำนวนสมาชิกเกษตรกร',
'Change your navigation language' => 'วิธีการเปลี่ยนภาษาการนำทาง',
'Find your place' => 'ค้นหาสถานที่ของคุณ',
'Digital marketing has been updated for further information.' => 'ตลาดดิจิทัลอยู่ระหว่างการดำเนินงานปรับปรุงข้อมูลให้เป็นปัจจุบัน',
'Forum' => 'เว็บบอร์ด',
'modify_date' => 'วันที่แก้ไข',
'Coffee Profile' => 'ข้อมูลกาแฟ',
'%po-header' => array(
'' => ''
)
)
)
$config = '_cake_core_'
$settings = array(
'prefix' => '*****',
'engine' => 'File',
'path' => 'D:\xampp\htdocs\lannathaicoffeehub\app\tmp\cache\persistent\',
'serialize' => true,
'duration' => (int) 10,
'lock' => true,
'isWindows' => true,
'mask' => (int) 436,
'probability' => (int) 100,
'groups' => array()
)
$success = false Cache::write() - CORE\Cake\Cache\Cache.php, line 309
I18n::translate() - CORE\Cake\I18n\I18n.php, line 173
__ - CORE\Cake\basics.php, line 558
FormHelper::label() - CORE\Cake\View\Helper\FormHelper.php, line 791
FormHelper::_inputLabel() - CORE\Cake\View\Helper\FormHelper.php, line 1353
FormHelper::_getLabel() - CORE\Cake\View\Helper\FormHelper.php, line 1215
FormHelper::input() - CORE\Cake\View\Helper\FormHelper.php, line 961
include - APP\View\Layouts\default.ctp, line 41
View::_evaluate() - CORE\Cake\View\View.php, line 947
View::_render() - CORE\Cake\View\View.php, line 909
View::renderLayout() - CORE\Cake\View\View.php, line 534
View::render() - CORE\Cake\View\View.php, line 478
Controller::render() - CORE\Cake\Controller\Controller.php, line 955
ExceptionRenderer::_outputMessage() - CORE\Cake\Error\ExceptionRenderer.php, line 273
ExceptionRenderer::_cakeError() - CORE\Cake\Error\ExceptionRenderer.php, line 197
ExceptionRenderer::render() - CORE\Cake\Error\ExceptionRenderer.php, line 175
Missing Database Connection
Error:
A Database connection using "Mysql" was missing or unable to connect.
The database server returned this error: SQLSTATE[HY000] [2002] No connection could be made because the target machine actively refused it.
Notice:
If you want to customize this error message, create app\View\Errors\missing_connection.ctp.
Stack Trace
CORE\Cake\Model\Datasource\DboSource.php line 261 → Mysql->connect() ));
}
if ( $autoConnect ) {
$this -> connect ();
}
CORE\Cake\Model\ConnectionManager.php line 101 → DboSource->__construct(array) $conn = self :: $_connectionsEnum [ $name ];
$class = $conn [ 'classname' ];
self :: $_dataSources [ $name ] = new $class ( self :: $config ->{ $name });
self :: $_dataSources [ $name ]-> configKeyName = $name ;
array(
'password' => '*****',
'login' => '*****',
'host' => '*****',
'database' => '*****',
'prefix' => '*****',
'datasource' => 'Database/Mysql',
'persistent' => false,
'encoding' => 'utf8'
)
CORE\Cake\Model\Model.php line 3195 → ConnectionManager::getDataSource(string) if ( $dataSource ) {
$this -> useDbConfig = $dataSource ;
}
$db = ConnectionManager :: getDataSource ( $this -> useDbConfig );
if (!empty( $oldConfig ) && isset( $db -> config [ 'prefix' ])) {
CORE\Cake\Model\Model.php line 1107 → Model->setDataSource(string) * @return void
*/
public function setSource ( $tableName ) {
$this -> setDataSource ( $this -> useDbConfig );
$db = ConnectionManager :: getDataSource ( $this -> useDbConfig );
CORE\Cake\Model\Model.php line 3217 → Model->setSource(string) public function getDataSource () {
if (! $this -> _sourceConfigured && $this -> useTable !== false ) {
$this -> _sourceConfigured = true ;
$this -> setSource ( $this -> useTable );
}
CORE\Cake\Model\Model.php line 2674 → Model->getDataSource() return null ;
}
$results = $this -> getDataSource ()-> read ( $this , $query );
$this -> resetAssociations ();
APP\Model\Category.php line 36 → Model->find(string, array) public function getCategoryMenu ()
{
$this -> unBindModel (array( 'hasMany' =>array( 'SubCategory' )));
return $this -> find ( 'all' ,array( 'conditions' =>array( 'Category.parent' => 0 , 'Category.display_menu' => 1 )));
}
'all'
array(
'conditions' => array(
'Category.parent' => (int) 0,
'Category.display_menu' => (int) 1
)
)
APP\Controller\AppController.php line 43 → Category->getCategoryMenu()
public function beforeFilter ()
{
$menu = $this -> Category -> getCategoryMenu ();
if( $this -> params [ 'controller' ] != 'Homepages' )
APP\Controller\HomepagesController.php line 16 → AppController->beforeFilter() //$app_secret = "2e4b82395dc0c4626c9b92308f30538e";'
public function beforeFilter () {
parent :: beforeFilter ();
if(! $this -> request -> is ( 'ajax' )) {
[internal function] → HomepagesController->beforeFilter(CakeEvent) object(CakeEvent) {
data => null
result => null
[protected] _name => 'Controller.initialize'
[protected] _subject => object(HomepagesController) {}
[protected] _stopped => false
}
CORE\Cake\Event\CakeEventManager.php line 247 → call_user_func(array, CakeEvent) if ( $listener [ 'passParams' ] === true ) {
$result = call_user_func_array ( $listener [ 'callable' ], $event -> data );
} else {
$result = call_user_func ( $listener [ 'callable' ], $event );
}
array(
(int) 0 => object(HomepagesController) {},
(int) 1 => 'beforeFilter'
)
object(CakeEvent) {
data => null
result => null
[protected] _name => 'Controller.initialize'
[protected] _subject => object(HomepagesController) {}
[protected] _stopped => false
}
CORE\Cake\Controller\Controller.php line 669 → CakeEventManager->dispatch(CakeEvent) * @return void
*/
public function startupProcess () {
$this -> getEventManager ()-> dispatch (new CakeEvent ( 'Controller.initialize' , $this ));
$this -> getEventManager ()-> dispatch (new CakeEvent ( 'Controller.startup' , $this ));
object(CakeEvent) {
data => null
result => null
[protected] _name => 'Controller.initialize'
[protected] _subject => object(HomepagesController) {}
[protected] _stopped => false
}
CORE\Cake\Routing\Dispatcher.php line 183 → Controller->startupProcess() */
protected function _invoke ( Controller $controller , CakeRequest $request , CakeResponse $response ) {
$controller -> constructClasses ();
$controller -> startupProcess ();
CORE\Cake\Routing\Dispatcher.php line 161 → Dispatcher->_invoke(HomepagesController, CakeRequest, CakeResponse) ));
}
$response = $this -> _invoke ( $controller , $request , $response );
if (isset( $request -> params [ 'return' ])) {
object(HomepagesController) {
name => 'Homepages'
uses => array(
[maximum depth reached]
)
helpers => array(
[maximum depth reached]
)
components => array(
[maximum depth reached]
)
layout => 'homepage'
fb_app_id => '121499491765366'
fb_app_secret => 'b10af7b88c8ff02a71c25f051e4288e2'
allowAction => array(
[maximum depth reached]
)
UserSession => null
request => object(CakeRequest) {}
response => object(CakeResponse) {}
viewPath => 'Homepages'
layoutPath => null
viewVars => array([maximum depth reached])
view => 'ViewPlace'
autoRender => true
autoLayout => true
Components => object(ComponentCollection) {}
viewClass => 'View'
View => null
ext => '.ctp'
plugin => null
cacheAction => false
passedArgs => array(
[maximum depth reached]
)
scaffold => false
methods => array(
[maximum depth reached]
)
modelClass => 'Place'
modelKey => 'homepage'
validationErrors => null
Session => object(SessionComponent) {}
Email => object(EmailComponent) {}
Category => object(Category) {}
[protected] _responseClass => 'CakeResponse'
[protected] _mergeParent => 'AppController'
[protected] _eventManager => object(CakeEventManager) {}
}
object(CakeRequest) {
params => array(
[maximum depth reached]
)
data => array([maximum depth reached])
query => array(
[maximum depth reached]
)
url => 'Homepages/ViewPlace/1468'
base => ''
webroot => '/'
here => '/Homepages/ViewPlace/1468'
[protected] _detectors => array(
[maximum depth reached]
)
[protected] _input => ''
}
object(CakeResponse) {
[protected] _statusCodes => array(
[maximum depth reached]
)
[protected] _mimeTypes => array(
[maximum depth reached]
)
[protected] _protocol => 'HTTP/1.1'
[protected] _status => (int) 200
[protected] _contentType => 'text/html'
[protected] _headers => array([maximum depth reached])
[protected] _body => null
[protected] _file => null
[protected] _charset => 'UTF-8'
[protected] _cacheDirectives => array([maximum depth reached])
[protected] _cookies => array([maximum depth reached])
}
APP\webroot\index.php line 97 → Dispatcher->dispatch(CakeRequest, CakeResponse) App :: uses ( 'Dispatcher' , 'Routing' );
$Dispatcher = new Dispatcher ();
$Dispatcher -> dispatch (new CakeRequest (), new CakeResponse ());
object(CakeRequest) {
params => array(
[maximum depth reached]
)
data => array([maximum depth reached])
query => array(
[maximum depth reached]
)
url => 'Homepages/ViewPlace/1468'
base => ''
webroot => '/'
here => '/Homepages/ViewPlace/1468'
[protected] _detectors => array(
[maximum depth reached]
)
[protected] _input => ''
}
object(CakeResponse) {
[protected] _statusCodes => array(
[maximum depth reached]
)
[protected] _mimeTypes => array(
[maximum depth reached]
)
[protected] _protocol => 'HTTP/1.1'
[protected] _status => (int) 200
[protected] _contentType => 'text/html'
[protected] _headers => array([maximum depth reached])
[protected] _body => null
[protected] _file => null
[protected] _charset => 'UTF-8'
[protected] _cacheDirectives => array([maximum depth reached])
[protected] _cookies => array([maximum depth reached])
}
Warning (512) : _cake_core_ cache was unable to write 'file_map' to File cache [CORE\Cake\Cache\Cache.php , line 309 ]Code Context ),
E_USER_WARNING
);
$key = 'file_map'
$value = array(
'Configure' => 'D:\xampp\htdocs\lannathaicoffeehub\lib\Cake\Core\Configure.php',
'Hash' => 'D:\xampp\htdocs\lannathaicoffeehub\lib\Cake\Utility\Hash.php',
'Cache' => 'D:\xampp\htdocs\lannathaicoffeehub\lib\Cake\Cache\Cache.php',
'FileEngine' => 'D:\xampp\htdocs\lannathaicoffeehub\lib\Cake\Cache/Engine\FileEngine.php',
'CacheEngine' => 'D:\xampp\htdocs\lannathaicoffeehub\lib\Cake\Cache\CacheEngine.php',
'Inflector' => 'D:\xampp\htdocs\lannathaicoffeehub\lib\Cake\Utility\Inflector.php',
'ErrorHandler' => 'D:\xampp\htdocs\lannathaicoffeehub\lib\Cake\Error\ErrorHandler.php',
'CakeLog' => 'D:\xampp\htdocs\lannathaicoffeehub\lib\Cake\Log\CakeLog.php',
'LogEngineCollection' => 'D:\xampp\htdocs\lannathaicoffeehub\lib\Cake\Log\LogEngineCollection.php',
'ObjectCollection' => 'D:\xampp\htdocs\lannathaicoffeehub\lib\Cake\Utility\ObjectCollection.php',
'FileLog' => 'D:\xampp\htdocs\lannathaicoffeehub\lib\Cake\Log/Engine\FileLog.php',
'BaseLog' => 'D:\xampp\htdocs\lannathaicoffeehub\lib\Cake\Log/Engine\BaseLog.php',
'CakeLogInterface' => 'D:\xampp\htdocs\lannathaicoffeehub\lib\Cake\Log\CakeLogInterface.php',
'Debugger' => 'D:\xampp\htdocs\lannathaicoffeehub\lib\Cake\Utility\Debugger.php',
'String' => 'D:\xampp\htdocs\lannathaicoffeehub\lib\Cake\Utility\String.php',
'Dispatcher' => 'D:\xampp\htdocs\lannathaicoffeehub\lib\Cake\Routing\Dispatcher.php',
'CakeEventListener' => 'D:\xampp\htdocs\lannathaicoffeehub\lib\Cake\Event\CakeEventListener.php',
'CakeRequest' => 'D:\xampp\htdocs\lannathaicoffeehub\lib\Cake\Network\CakeRequest.php',
'CakeResponse' => 'D:\xampp\htdocs\lannathaicoffeehub\lib\Cake\Network\CakeResponse.php',
'CakeEvent' => 'D:\xampp\htdocs\lannathaicoffeehub\lib\Cake\Event\CakeEvent.php',
'CakeEventManager' => 'D:\xampp\htdocs\lannathaicoffeehub\lib\Cake\Event\CakeEventManager.php',
'AssetDispatcher' => 'D:\xampp\htdocs\lannathaicoffeehub\lib\Cake\Routing/Filter\AssetDispatcher.php',
'DispatcherFilter' => 'D:\xampp\htdocs\lannathaicoffeehub\lib\Cake\Routing\DispatcherFilter.php',
'CacheDispatcher' => 'D:\xampp\htdocs\lannathaicoffeehub\lib\Cake\Routing/Filter\CacheDispatcher.php',
'Router' => 'D:\xampp\htdocs\lannathaicoffeehub\lib\Cake\Routing\Router.php',
'CakeRoute' => 'D:\xampp\htdocs\lannathaicoffeehub\lib\Cake\Routing/Route\CakeRoute.php',
'CakePlugin' => 'D:\xampp\htdocs\lannathaicoffeehub\lib\Cake\Core\CakePlugin.php',
'HomepagesController' => 'D:\xampp\htdocs\lannathaicoffeehub\app\Controller\HomepagesController.php',
'AppController' => 'D:\xampp\htdocs\lannathaicoffeehub\app\Controller\AppController.php',
'Controller' => 'D:\xampp\htdocs\lannathaicoffeehub\lib\Cake\Controller\Controller.php',
'Object' => 'D:\xampp\htdocs\lannathaicoffeehub\lib\Cake\Core\Object.php',
'ComponentCollection' => 'D:\xampp\htdocs\lannathaicoffeehub\lib\Cake\Controller\ComponentCollection.php',
'SessionComponent' => 'D:\xampp\htdocs\lannathaicoffeehub\lib\Cake\Controller/Component\SessionComponent.php',
'Component' => 'D:\xampp\htdocs\lannathaicoffeehub\lib\Cake\Controller\Component.php',
'EmailComponent' => 'D:\xampp\htdocs\lannathaicoffeehub\lib\Cake\Controller/Component\EmailComponent.php',
'ClassRegistry' => 'D:\xampp\htdocs\lannathaicoffeehub\lib\Cake\Utility\ClassRegistry.php',
'ConnectionManager' => 'D:\xampp\htdocs\lannathaicoffeehub\lib\Cake\Model\ConnectionManager.php',
'Category' => 'D:\xampp\htdocs\lannathaicoffeehub\app\Model\Category.php',
'AppModel' => 'D:\xampp\htdocs\lannathaicoffeehub\app\Model\AppModel.php',
'Model' => 'D:\xampp\htdocs\lannathaicoffeehub\lib\Cake\Model\Model.php',
'BehaviorCollection' => 'D:\xampp\htdocs\lannathaicoffeehub\lib\Cake\Model\BehaviorCollection.php',
'Mysql' => 'D:\xampp\htdocs\lannathaicoffeehub\lib\Cake\Model/Datasource/Database\Mysql.php',
'DboSource' => 'D:\xampp\htdocs\lannathaicoffeehub\lib\Cake\Model/Datasource\DboSource.php',
'DataSource' => 'D:\xampp\htdocs\lannathaicoffeehub\lib\Cake\Model/Datasource\DataSource.php',
'I18n' => 'D:\xampp\htdocs\lannathaicoffeehub\lib\Cake\I18n\I18n.php',
'L10n' => 'D:\xampp\htdocs\lannathaicoffeehub\lib\Cake\I18n\L10n.php',
'CakeSession' => 'D:\xampp\htdocs\lannathaicoffeehub\lib\Cake\Model/Datasource\CakeSession.php',
'ExceptionRenderer' => 'D:\xampp\htdocs\lannathaicoffeehub\lib\Cake\Error\ExceptionRenderer.php',
'CakeErrorController' => 'D:\xampp\htdocs\lannathaicoffeehub\lib\Cake\Controller\CakeErrorController.php',
'View' => 'D:\xampp\htdocs\lannathaicoffeehub\lib\Cake\View\View.php',
'HelperCollection' => 'D:\xampp\htdocs\lannathaicoffeehub\lib\Cake\View\HelperCollection.php',
'ViewBlock' => 'D:\xampp\htdocs\lannathaicoffeehub\lib\Cake\View\ViewBlock.php',
'HtmlHelper' => 'D:\xampp\htdocs\lannathaicoffeehub\lib\Cake\View/Helper\HtmlHelper.php',
'AppHelper' => 'D:\xampp\htdocs\lannathaicoffeehub\app\View\Helper\AppHelper.php',
'Helper' => 'D:\xampp\htdocs\lannathaicoffeehub\lib\Cake\View\Helper.php',
'FormHelper' => 'D:\xampp\htdocs\lannathaicoffeehub\lib\Cake\View/Helper\FormHelper.php',
'SessionHelper' => 'D:\xampp\htdocs\lannathaicoffeehub\lib\Cake\View/Helper\SessionHelper.php'
)
$config = '_cake_core_'
$settings = array(
'prefix' => '*****',
'engine' => 'File',
'path' => 'D:\xampp\htdocs\lannathaicoffeehub\app\tmp\cache\persistent\',
'serialize' => true,
'duration' => (int) 10,
'lock' => true,
'isWindows' => true,
'mask' => (int) 436,
'probability' => (int) 100,
'groups' => array()
)
$success = false Cache::write() - CORE\Cake\Cache\Cache.php, line 309
App::shutdown() - CORE\Cake\Core\App.php, line 893
[main] - [internal], line ??