-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Parse error: syntax error, unexpected end of file, expecting function (T_FUNCTION) or const (T_CONST) in mecha-cms.de/engine/kernel/state.php on line 1 #2
Comments
The Please paste the generated error log here in case it does exist. |
Oh, could you try to disable the source code optimization and see if it works? It shows the error on the first line because the file content is compressed into a single line. Must be caused by the attribute syntax that it is being treated as a literal comment in PHP < 8.0. |
Hi, I'm trying to install in an SSD hosting too, but that errors are visible:
Always a network error and the installer without code optimizing still not worked. |
Make sure
What’s the new error message appears after you disable the code optimizer? I need the exact code line information from the uncompressed file. |
PHP is 7.3.x, allow url fopen is active and I have this error:
It's always only that error I show at Firefox browser under https://mecha.officiis.biz . I want to move, if the installation it's done, to the main domain under https://mecha-cms.de . |
Must be from my side. Why not try to install it the manual way? There’s an experimental website available to visit here: https://dev.mecha-cms.com. You can download the ZIP file directly from the home page. The |
Parse error: syntax error, unexpected end of file, expecting function (T_FUNCTION) or const (T_CONST) in mecha.officiis.biz/engine/kernel/state.php on line 1 So now, I'm trying with the code optimization. It's the same error, I think. |
I need it without the code optimization to get the exact code line from the uncompressed file. |
Ah, ok, I want always to install my CMS via browser way :-) It's ok, I want to try this now. Wait, please just a moment, OK. |
Now, I had uploaded from your source the packet with mecha CMS and under https://mecha-cms.de I see that error:
PHP is 7.4.x and allow url fopen is active. |
Why it is always on line 1? Have you unchecked the “Minify PHP” input before downloading the package? |
So now a new error by the name of:
I have uploaded the mecha again, and I have unchecked the "Minify PHP". |
Okay, I know this part. For now, please go to |
Ok, now it's all fine, and I have removed this site from Cloudflare, because it's not worked with Cloudflare. I think, that is by the side of Cloudflare, you know, Tovic. In the next a couple of hours will be the DNS done and after that we will know more about my Mecha CMS website :-). |
The new error is from Firefox browser and I don't know, what is that:
|
It shows content encoding error because there’s an error when printing the response body. When this happen, usually a log file will be available as |
Hi Tovic, I have shown in the error.log file and have found that error:
I'm trying both PHP versions like 7.3.x and 7.4.x, and it's the same error. So I don't know what I can now do. Can you help me again with mecha? ` |
Open define('TEST', false); This does not happen with PHP 8.x.x though. |
I have uploaded old files of mecha CMS of the version 2.6.3 to mecha-cms.de and now in the backend I have shown that error:
How I can fix this? PHP is 7.4.x. Many thanks for the help, Tovic! |
Please download the uncompressed version of mecha-cms/x.search extension so that I can know exactly where the code line is. FYI, the mecha-cms/y.normal layout is not yet compatible with Mecha 3.0.0. |
Good morning, Tovic, now it's everything fine with my mecha website. I have now uploaded your mecha version 2.6.3 with the default layout, which working fine. And thanks for all the help to me! |
Yeah, sorry about that. Version 3.0.0 is not yet stable and not ready for production. But once it stable, there will be more extensions and layouts available. |
@AlexL777HRO could you try again the |
Hi, ok, thank you I will check it today at later evening :-) |
Good morning, Tovic,
the installer trough /start.php going not done. My hosting is great prepared for the installation, but It's nothing possible over /start.php.
I have PHP 7.3 or 7.4 and an Apache web server at my hosting.
Can you help me with this?
Many thanks, Tovic :-)
The text was updated successfully, but these errors were encountered: