Twig Error with 2.13.1

danville

I sent my info to Luisehahne
Thank you for help with this!

hgs

For further analysis we need the access data from the superadmin (User-ID1) of the website and the FTP access data.
If you trust us, please send them by pm to Luisehahne
LG Harald

"Fange nie an, aufzuhören - höre nie auf, anzufangen." Marcus Tullius Cicero (106-43 v.Chr.)

danville

Thank you!!!!!  The 113 PHP 7.4 patch restores the Add-ons and Access menus and solves the Twig issue.

However, I am still having issues with saving files
   ". . . . Also, pages and settings do not save.  I can eventually get settings or a page to save.  So, there is a weird problem with permissions."

This is weird it is inconsistent, meaning that if I press save, eventually the same page will save.
This occurs both on a fresh install and upgrading sites. 
Is there a permissions utility for WB that can run a site-wide permissions check of files and folder?  Or is this something else?

Thank you!!

hgs

Quote from: danville on April 26, 2022, 03:38:02 PM
Post #8 states
"Please test the newest Patch 2.13.1.112 and inform us the result, so we can close the error ticket on the project page"

The patch 113 is ready for download, see here in the forum.
My site with php7.4 runs with it again.


To your comment:
...
here is the explanation what I meant:

#9 is
QuoteAutor: Luisehahne « am: 25 April 2022, 15:43:10 » 

       
  • Zitat einfügen
Please test the newest Patch 2.13.1.112 and inform us the result, so we can close the error ticket on the project page

Dietmar
#8 is
QuoteAutor: Luisehahne « am: 23 April 2022, 17:22:12 » 

       
  • Zitat einfügen
Zitat von: danville am 22 April 2022, 22:39:16<blockquote>No Addons - This is a fresh install from the 2.13.1 downloaded from WebsiteBaker.com
So, I am stuck.
</blockquote>
Seems that your provider disabled the Ctype Functions in php. We are working for  a solution, but it is not a quick patch possible. We need a few days. Maybe your provider again is willing to enable the Ctype Functions.

Dietmar

But we hope that it will work with patch 113.
LG Harald

"Fange nie an, aufzuhören - höre nie auf, anzufangen." Marcus Tullius Cicero (106-43 v.Chr.)

Luisehahne

Quote from: danville on April 26, 2022, 03:38:02 PM
Post #8 states
"Please test the newest Patch 2.13.1.112 and inform us the result, so we can close the error ticket on the project page"

I informed the result as composer requiring PHP 8.0.0 as indicated in the two composer files in the WB root patch 2.13.1.112

I am unsure what you mean by "The answer that gets to the root of the problem is in post #8"

Is there a way to have the patch require PHP 7.4.x instead of PHP 8.0.x?

Thank you

We are working that the patch require PHP 7.4.x and higher

Dietmar
Note: Once the code has been generated, it is easy to debug. It's not a bug, it's a feature!

danville

Post #8 states
"Please test the newest Patch 2.13.1.112 and inform us the result, so we can close the error ticket on the project page"

I informed the result as composer requiring PHP 8.0.0 as indicated in the two composer files in the WB root patch 2.13.1.112

I am unsure what you mean by "The answer that gets to the root of the problem is in post #8"

Is there a way to have the patch require PHP 7.4.x instead of PHP 8.0.x?

Thank you

hgs

The answer that gets to the root of the problem is in post #8
LG Harald

"Fange nie an, aufzuhören - höre nie auf, anzufangen." Marcus Tullius Cicero (106-43 v.Chr.)

danville

I installed the patch and this message shows up on the front and back ends.
"Composer detected issues in your platform: Your Composer dependencies require a PHP version ">= 8.0.0".

The composer files in WB root both include PHP 8.0.0

Not sure how to fix this.

I really appreciate any help I can get with this.

hgs

#11
Since this is a new installation with php 7.4.x, install the patch and report back to us if the error is gone.
Thanks
Postscript:
Just tested the patch on a test domain with php 7.4.x without problems
LG Harald

"Fange nie an, aufzuhören - höre nie auf, anzufangen." Marcus Tullius Cicero (106-43 v.Chr.)

danville

Unfortunately I do not have PHP 8.0.
Can the patch be configured to use PHP 7.4?

Luisehahne

Please test the newest Patch 2.13.1.112 and inform us the result, so we can close the error ticket on the project page

Dietmar
Note: Once the code has been generated, it is easy to debug. It's not a bug, it's a feature!

Luisehahne

Quote from: danville on April 22, 2022, 10:39:16 PM
No Addons - This is a fresh install from the 2.13.1 downloaded from WebsiteBaker.com
So, I am stuck.

Seems that your provider disabled the Ctype Functions in php. We are working for  a solution, but it is not a quick patch possible. We need a few days. Maybe your provider again is willing to enable the Ctype Functions.

Dietmar
Note: Once the code has been generated, it is easy to debug. It's not a bug, it's a feature!

Luisehahne

Quote from: danville on April 22, 2022, 10:39:16 PM
No Addons - This is a fresh install from the 2.13.1 downloaded from WebsiteBaker.com
So, I am stuck.

We created a ticket on Twig Github and got an answer in the morning. If we finished fixing the issue we inform you all and create a new patch.

Sorry for the circumstances, we hurry up

Dietmar

Note: Once the code has been generated, it is easy to debug. It's not a bug, it's a feature!

crnogorac081

Quote from: DarkViper link=topic=32030.msg224121#msg224121http://project.websitebaker.org.

Greatings, Manuela
I would like to join, if it is possible.

Pm me login details
Web developer

danville

No Addons - This is a fresh install from the 2.13.1 downloaded from WebsiteBaker.com
So, I am stuck.

Luisehahne

#4
Quote from: danville on April 22, 2022, 04:45:12 PM
I am receive this error under Add-Ons and Access menus on the backend with a fresh install on Netfirms.com PHP 7.4

There was an uncatched exception
Call to undefined function Twig\ctype_alpha()
in line (469) of (/include/twig/twig/src/Lexer.php):


We are able to fix it. It's not the WB Core, It's the twig class himself. We only have to know, which addon is throwing this exception, so we can test if it is solved.

Dietmar
Note: Once the code has been generated, it is easy to debug. It's not a bug, it's a feature!

DarkViper

Yes/No  8-)
In order to use Twig templates instead of htt templates, the entire source code of the respective module or even core must be adapted. We are working on the next WB version. There will be many changes, some of them very far-reaching, in the next few months.
You can follow us there at http://project.websitebaker.org.

Greatings, Manuela
[url=http://www.youtube.com/watch?v=tmzDAz6ZvFQ]Der blaue Planet[/url] - er ist nicht unser Eigentum - wir haben ihn nur von unseren Nachkommen geliehen[br]
[i]"You have to take the men as they are... but you can not leave them like that !" :-P [/i]
[i]Das tägliche Stoßgebet: [b]Oh Herr, wirf Hirn vom Himmel ![/b][/i]

crnogorac081

Another question, can I use twig instead .htt files in backend template ?
Web developer

danville

#1
I am receive this error under Add-Ons and Access menus on the backend with a fresh install on Netfirms.com PHP 7.4

There was an uncatched exception
Call to undefined function Twig\ctype_alpha()
in line (469) of (/include/twig/twig/src/Lexer.php):

Also, pages and settings do not save.  I can eventually get settings or a page to save.  So, there is a weird problem with permissions.

PLEASE HELP!!