sincos'blog Logo
Thông báo lỗi phát sinh  < 1 2 3
Post by: Black 13/07/2008 06:36 pm
Một số lõi:
Khi import ftp quá nhiều file thì báo

Message: getimagesize(upload/ftp/097.jpg) [function.getimagesize]: failed to open stream: No such file or directory
Filename: helpers/common_helper.php

Line Number: 157

Rùi hỏng luôn cả datebase -> phải backup lại

2. Trong thư mục ftp mà có thêm thư mục con thì báo
A PHP Error was encountered
Severity: Notice

Message: Array to string conversion

Filename: views/admin_gallery_import_form.php

Line Number: 22


3.Thỉnh thoảng server nhiều lượt truy cập thì tạo danh mục, import hay upload sẽ có lỗi => hỏng database luôn
(Ví dụ là tạo danh mục thì sau tên danh mục có thêm đám kí tự 1-1-1-1-1-1 rùi không làm gì được với nó nữa)
Post by: VInh 24/08/2008 10:25 pm
Cho mình hỏi là Gd2 bật ở đâu nhỉ? Trong ControlPanel của host nó nằm ở phần nào? Tớ thử cài trên host mà nó cứ báo gd2 library not loaded.
Thanks
Post by: Lê Bằng 25/08/2008 08:49 am
@Black: Lỗi thứ nhất có thể do mỗi lần bạn import bạn chọn quá nhiều file. Về mặt kỹ thuật thì code ko giới hạn số file mỗi lần import. Tuy nhiên trong quá trình import thì mỗi mội cái ảnh cần có thời gian move và resize nên nếu bạn chọn nhiều quá có thể bộ nhớ hoặc thời gian sử lý quá lâu có thể sảy ra lỗi. Nên mỗi lần import chỉ chọn khoảng 20 cái đổ về.

Còn lỗi thứ 2 mình chưa hiểu cho lắm.

@VInh: GD2 là thư viện graphic của PHP. Nó dùng để sử lý resize ảnh khi upload hình ảnh. Nó đc config trong file php.ini. Cái này hầu như mọi server đều bật sẵn. Tuy nhiên trong nhiều trường hợp bạn cài webserver dưới máy của bạn thì có khi cái thư viện này mặc định bị tắt đi (disabled).

Bạn có thể tìm file php.ini trong thư mục c:\windows hoặc thư mục cài đặt PHP rồi tìm đến dòng

;extension=php_gd2.dll

Bạn bỏ dấu ;ở đầu và khởi động lại webserver là OK. Chúc vui
Post by: Baby_ghost 28/08/2008 01:20 pm
PHP 5.2.6 với GD2 đã bật cài dạng ISAPI trên IIS, MySQL 5.0 nhưng khi chạy thì trang trắng tinh, còn nếu với PHP 5.1.6 cài trên Apache và MySQL 5.0 thì chạy bình thường!

Có ai giúp mình ko nhỉ!?
Post by: 1551990 03/09/2008 10:15 am

An Error Was Encountered

Không tạo được thư mục: "hinh-dep"


Sao em không tạo được thư mục vậy, hồi hôm mới cài tạo được, sáng ra tạo không được, nó báo như vậy
Em xài dreamhost, khi mới cài không có vấn đề gì cả
Post by: Claudiu 11/06/2009 02:40 pm
Hi,

Hoping i can get some help with this.
I get this error when browsing to 'Import FTP'.
in the ftp folder I have a folder with pictures .. can't understand why this error .. also I can't find this views/admin_gallery_import_form.php anywhere.

I get this error in both IE 7 and FF 3

A PHP Error was encountered
Severity: Notice
Message: Array to string conversion
Filename: views/admin_gallery_import_form.php
Line Number: 27

 < 1 2 3

Nick name:
Email:
Security Code:

B  i   u  Quote Code Img
Smilies

  s.Gallery download
 
(25/09/2008)
(Download: 11594 )
 
     
  Vote
 
s.Gallery good ?
Verry good
Good but has errors
indifferent
Verry bad
 
     
  Counter
 
Online : 2
Visited : 217103
 
     
  Support online
 
 
     
© 2008 sincos. Powered by s.Code
Builded on codeIgniter framework