01/10/2018, 10:07

Lỗi: Parse error: syntax error, unexpected T_STRING, expecting T_CONSTANT_ENCAPSED_STRING khi sử dụng CKFinder

Mình đang sử dụng CKFinder thì bị lỗi này: Lỗi: Parse error: syntax error, unexpected T_STRING, expecting T_CONSTANT_ENCAPSED_STRING khi sử dụng CKFinder. Mong mọi người chỉ giáo.

Dark.Hades viết 12:22 ngày 01/10/2018

Dòng bao nhiêu, code bạn như thế nào?

Nam Trung viết 12:17 ngày 01/10/2018

Parse error: syntax error, unexpected T_STRING, expecting T_CONSTANT_ENCAPSED_STRING or ‘(’ in /home/veammotor/domains/veam-motor.com/public_html/CKfinder/core/connector/php/connector.php on line 16

đây là đoạn config của mình:
CKEDITOR.replace( ‘noi_dung’,
{
skin : ‘v2’, language: ‘vi’ ,
filebrowserBrowseUrl : ‘/CKfinder/ckfinder.html’,
filebrowserImageBrowseUrl : ‘/CKfinder/ckfinder.html?Type=Images’,
filebrowserFlashBrowseUrl : ‘/CKfinder/ckfinder.html?Type=Flash’,
filebrowserUploadUrl : ‘/CKfinder/core/connector/php/connector.php?command=QuickUpload&type=Files’,
filebrowserImageUploadUrl : ‘/CKfinder/core/connector/php/connector.php?command=QuickUpload&type=Images’,
filebrowserFlashUploadUrl : ‘/CKfinder/core/connector/php/connector.php?command=QuickUpload&type=Flash’
});

Dark.Hades viết 12:23 ngày 01/10/2018

Bạn cho mình xem toàn bộ đoạn dòng từ 10-20 trong file CKfinder/core/connector/php/connector.php

Nam Trung viết 12:19 ngày 01/10/2018

Đây là toàn bộ file connector.php của mình:

<?php /* * CKFinder * ======== * http://cksource.com/ckfinder * Copyright (c) 2007-2016, CKSource - Frederico Knabben. All rights reserved. * * The software, this file and its contents are subject to the CKFinder * License. Please read the license.txt file before using, installing, copying, * modifying or distribute this file or part of its contents. The contents of * this file is part of the Source Code of CKFinder. */ require_once __DIR__ . '/vendor/autoload.php'; use CKSource\CKFinder\CKFinder; $ckfinder = new CKFinder(__DIR__ . '/../../../config.php'); $ckfinder->run();
Dark.Hades viết 12:15 ngày 01/10/2018

namespace hỗ trợ PHP 5.3 trở lên thì phải, bạn xem phiên bản của host là bao nhiêu. nên nâng lên 5.6

Nam Trung viết 12:08 ngày 01/10/2018

Mình fix được lỗi đó nhưng giờ trong phần insert ảnh nó load luôn ra cả trang chủ của mình luôn,
http://veam-motor.com/CKfinder/ckfinder.html?Type=Images&CKEditor=noi_dung&CKEditorFuncNum=1&langCode=vi

Bài liên quan
0