Guide for installation and for upgrade / migrate for new version. Can you please me help? #303
-
|
Dear developer, I have issue with installation. I send you any screenshots. I tried install on two servers. I downloaded start.php from here I tried install from main directoin and from sub folder too. Can you please send me guide how to install?
|
Beta Was this translation helpful? Give feedback.
Replies: 8 comments 5 replies
-
|
The folder where you want to install needs to have that First, try to move your existing files and folders out of the installation folder, then begin the installation again. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
|
I set 777 permissions in FTP again after installation. But On mypage.com/panel display Error |
Beta Was this translation helpful? Give feedback.
-
|
Dear developer. My hosting service provider support switch PHP versions. On PHP version 7.4 and 8.3 is the same error :( (I changed PHP file after install from start.php, of course, before is it not possible from me) |
Beta Was this translation helpful? Give feedback.
-
|
I send you video from installation. Error log folders are empty and not exist. I installed Mecha on my PC. On my Linux is installed PHP and Apache. But the same error on localhost too. In my terminal is log from Apache, but I am not sure whether it helped you. My code in hook file <?php
// By default, extension(s) are loaded in alphabetical order. The most obvious example is the loading order of Panel and
// User extension. Panel extension will be loaded before User extension even though Panel depends on User. It is
// necessary to make sure that User extension is loaded before Panel extension. However, because of the extension’s
// default loading order, it is currently not possible to load User extension before Panel extension. Plug file(s) can
// be used as a dirty solution for now to load other extension requirement(s) early, so that they can be loaded before
// the target extension’s `index.php` file is loaded.
//
// There is no particular reason why I chose this `hook.php` file, except that it (the `Hook` class) is the most ideal
// class to watch its initial loading event because most extension(s) will call it in their `index.php` file, so it will
// immediately trigger the `$user` variable below to be declared. There are several other class(es) that are loaded much
// earlier than the `Hook` class, such as the `State` and the `URL` class(es), but they are loaded before the class
// and plug file(s) from other extension(s) are loaded, so there will be more potential for unpredictable error(s) due
// to declaring the `User` class too early.
$user = new User(is_file($f = LOT . D . 'user' . D . basename(cookie('user.name') ?? P) . '.page') ? $f : null);
// if (($user->token ?? 0) !== (cookie('user.token') ?? 1)) {
// $user = new User; // Invalid token!
// }
lot('user', $user);vokoscreenNG-2026-01-16_12-00-53-00.00.00.000-00.01.25.000.mp4 |
Beta Was this translation helpful? Give feedback.
-
|
Ah, now I remember. It was caused by the minification. PHP 7.3 does not support attributes, but when the PHP code minified, it keeps the attributes, that caused the PHP version 7.3 to read it as inline comment, thus make the source code broken. When installing, just keep the source code as it is. Problem: CMS installed in PHP 7.3, but the minification happen in a web server that runs in PHP 8+ that support attribute (can read attribute token). Actually, it can be solved simply by adding line break after every attribute, but I don’t think it is worth it as I’m going to move forward. Attributes are mostly written in // This breaks in PHP 7.3 but works in PHP 8.0
#[ReturnTypeWillChange]public function offsetGet($key){return null;}
// This works in both PHP 7.3 and PHP 8.0
#[ReturnTypeWillChange]
public function offsetGet($key){return null;}Solution: Just keep the source code as it is. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
|
Sucess :) vokoscreenNG-2026-01-16_16-06-17-00.00.00.000-00.00.46.688.mp4 |
Beta Was this translation helpful? Give feedback.











Ah, now I remember. It was caused by the minification. PHP 7.3 does not support attributes, but when the PHP code minified, it keeps the attributes, that caused the PHP version 7.3 to read it as inline comment, thus make the source code broken. When installing, just keep the source code as it is.
Problem: CMS installed in PHP 7.3, but the minification happen in a web server that runs in PHP 8+ that support attribute (can read attribute token).
Actually, it can be solved simply by adding line break after every attribute, but I don’t think it is worth it as I’m going to move forward. Attributes are mostly written in
.\engine\kernel\genome.php// This breaks in PHP 7.3 but works in PHP 8.0 #…