Sửa lỗi joomla 1.5 trên php 5 năm 2024

– Do 1 số function trên cấu hình hệ thống Hosting chưa được thiết lập theo đúng yêu cầu của phiên bản Joomla cài đặt.

– Và chắc chắn rằng bạn sẽ đặt vấn đề : Tại sao nhà cung cấp dịch vụ không thiết lập sẵn để tiện sử dụng?

Chúng tôi xin trả lời:

  • Việc cấu hình mặc định toàn hệ thống như trên sẽ kém bảo mật cho toàn bộ máy chủ.
  • Một số nhà cung cấp Hosting thiết lập sẵn để tiện cho việc sử dụng (Server chuyên Joomla), tuy nhiên nếu 1 lỗ hỗng từ mã nguồn trên 1 Hosting bị khai phá nó sẽ có thể gây ảnh hưởng đến toàn bộ các Hosting còn lại trên máy chủ.

2.Làm sao để có thể cài đặt:

– Điều chỉnh các function trong php.ini >>> điều này bạn không thể thao tác vì chỉ có nhà quản lý dịch vụ mới có thể điều chỉnh trên.

– Do đó, chúng ta phải kiểm tra các thông số yêu cầu: Và gửi thông tin đến kỹ thuật của nhà cung cấp dịch vụ để được hỗ trợ nhanh chóng.

– Thông tin mà chúng tôi khuyến khích bạn nên cung cấp để vấn đề được giải quyết dứt điểm :

  • Phiên bản Joomla cài đặt
  • Các function cần điều chỉnh
  • Các thông số khác …..

3.Cách xác định thông tin

– Khi các bạn thao tác cài đặt Joomla từ phiên bản 2.5 và 3.x ở Bước thứ 2 hay 3 sẽ nhận được thông báo cấu hình tiêu chuẩn.

Với nhiều người còn dùng mã nguồn Joomla version 1.5 đã cũ, thường sẽ xảy ra lỗi font unicode – tiếng Việt có dấu khi sử dụng trên hệ thống với Mariadb.

Sửa lỗi joomla 1.5 trên php 5 năm 2024

Bài viết này mình sẽ hướng dẫn cách để xử lý lỗi này cụ thể như sau:

File cần chỉnh sửa:

libraries/joomla/database/database/mysql.php

libraries/joomla/database/database/mysqli.php

Nội dung chỉnh sửa:

Tìm đến dòng: function hasUTF()

$verParts = explode( ‘.’, $this->getVersion() ); return ($verParts[0] == 5 || ($verParts[0] == 4 && $verParts[1] == 1 && (int)$verParts[2] >= 2));

và thay bằng:

$verParts = explode( ‘.’, $this->getVersion() ); return (1);

1- Mở file configuration.php của Joomla để xem $dbtype đang sử dụng là mysql hay mysqli

var $dbtype = ‘mysql’;

hoặc

var $dbtype = ‘mysqli’;

Từ đó tìm file tương ứng

Code:

libraries/joomla/database/database/mysql.php

hoặc

Code:

libraries/joomla/database/database/mysqli.php

tìm đến dòng (hình như là dòng 186 – các bạn nhớ tìm chính xác)

Code:

return ($verParts[0] == 5 || ($verParts[0] == 4 && $verParts[1] == 1 && (int)$verParts[2] >= 2));

Thực hiện comment lại và thêm dòng sau ở bên dưới Code:

return (1);

trông nó giống như sau Code:

function hasUTF() { $verParts = explode( ‘.’, $this->getVersion() ); // return ($verParts[0] == 5 || ($verParts[0] == 4 && $verParts[1] == 1 && (int)$verParts[2] >= 2)); return (1); }

Lưu lại File trên, sau đó F5 lại trang web để theo dõi kết quả.

Chúc bạn thành công!

Khi cần hỗ trợ xin liên hệ với chúng tôi: Công ty phần mềm Nhân Hòa Trụ sở Hà Nội: Tầng 4 – Toà nhà 97 – 99 Láng Hạ, Đống Đa, Hà Nội Chi nhánh HCM: 270 Cao Thắng (nối dài), Phường 12, Quận 10, TP HCM Chi nhánh Vinh – Nghệ An: Tầng 2 Tòa nhà Sài Gòn Sky, ngõ 26 Nguyễn Thái Học, phường Đội Cung, TP. Vinh, Nghệ An

Joomla websites already running on Joomla 3.x should have their hosting updated to PHP 7.2 if it isn't already. (Security support for PHP 7.1 ends on 3rd December 2018).

Joomla 1.5 and Joomla 2.5 are not compatible with PHP 7. As hosting providers drop support for PHP 5, Joomla 1.5 and 2.5 will cease to function. It's not clear exactly when this will happen and it might depend on the timing and severity of security vulnerabilities discovered after security support for Joomla 5.6 ends at the end of 2018.

When your hosting company announces they are dropping support for PHP 5.6, a short term solution may be to move to another host that still supports PHP 5.6 but ideally you should be aiming to migrate any remaining Joomla 1.5 or Joomla 2.5 websites to Joomla 3.x or some other secure platform within the next few months.

Another option for a simple Joomla 1.5 or Joomla 2.5 website with few ongoing updates is to recreate the website as a static HTML website as I have done for Graham Woodhouse Conveyancing and similar. A static HTML website can still have all the basic essential features such as a responsive template, SSL, search engine friendly URLs, Google Analytics, search engine optimisation and a contact form. Additional benefits of static HTML websites are faster performance and little or no ongoing cost (apart from the domain name and hosting renewals).

What Version of PHP is My Website Running On?

There are a few ways for you to check what version of PHP your website is running on. For example:

  • use a free online tool such as the HTTP / HTTPS Header Check at http://www.webconfs.com/http-header-check.php
  • on Joomla 1.5 websites, log in to the back-end of the website and go to Help -> System Info
  • on Joomla 2.5 and Joomla 3.x websites, log in to the back-end of the website and go to Site -> System Information
  • log in to your cPanel (or similar) hosting control panel and click on "Select PHP Version" or similar

What if My Hosting Company Does Not Offer Support For PHP 7?

Your hosting company should be running at least one supported version of PHP. If not, you should ask them why not and when they propose to fix the security issue. If there is no satisfactory answer then you probably have no other option but to move to a better quality hosting company.

See https://webhostingdownunder.com.au for help in choosing a new hosting company.

Migrate My Joomla Website

Migrate from Joomla 1.5 to Joomla 3.x

The cost of migrating from Joomla 1.5 to Joomla 3.x depends on the number of third party extensions and whether there are Joomla 3.x equivalents, whether there is an equivalent Joomla 3.x template and other factors. A straightforward Joomla 1.5 to Joomla 3.x migration typically takes at least five hours and costs from around $450.

Contact me for a quote.

Migrate from Joomla 2.5 to Joomla 3.x

The cost of migrating from Joomla 2.5 to Joomla 3.x depends on the number of third party extensions and whether there are Joomla 3.x equivalents, whether there is an equivalent Joomla 3.x template and other factors. A straightforward Joomla 2.5 to Joomla 3.x migration migration typically takes at least three hours and costs from around $250.

Contact me for a quote.

Migrate from Joomla 3.x to Joomla 4.x

The cost of migrating from Joomla 3.x to Joomla 4.x depends on the number of third party extensions and whether there are Joomla 3.x equivalents, whether there is an equivalent Joomla 4.x template and other factors. A straightforward Joomla 3.x to Joomla 4.x migration migration typically takes at least three hours and costs from around $250.

Contact me for a quote.

Move My Website to a Better Web Hosting Company

Moving a website to a new web host typically takes a couple of hours or around $176 and includes:

  • backing up the current website
  • finding the most suitable web hosting company for your particular website within your budget
  • purchasing a new web hosting plan on your behalf
  • restoring the website to the new web host
  • updating the domain name to point to the new host
  • testing
  • forwarding any orphaned emails on the old host to the new host
  • optionally moving your domain name to the new service provider

Note that you will be moving to a better web hosting company and for most of my clients this is often a cheaper web hosting company so that the cost of the move is soon recovered.