twig source error after update 3.2.0 to 3.2.1

Get help with installation and running phpBB 3.2.x here. Please do not post bug reports, feature requests, or extension related questions here.
Post Reply
User avatar
durangod
Registered User
Posts: 639
Joined: Tue Nov 03, 2009 1:26 pm

twig source error after update 3.2.0 to 3.2.1

Post by durangod » Tue Jul 18, 2017 2:38 am

Error after update 3.2.0 to 3.2.1

[[18-Jul-2017 02:34:55 UTC] PHP Catchable fatal error: Object of class Twig_Source could not be converted to string in /home/xxxxxxxxxxx/public_html/xxxxxxxxx.com/phpbb/template/twig/lexer.php on line 147

OK gonna try this

viewtopic.php?f=556&t=2431111#p14782911

User avatar
durangod
Registered User
Posts: 639
Joined: Tue Nov 03, 2009 1:26 pm

Re: twig source error after update 3.2.0 to 3.2.1

Post by durangod » Tue Jul 18, 2017 2:49 am

Nope that didnt work, the only difference is when i installed the icon pack to get the dark colored icons. I downloaded the merge zip, installed it, rechecked the files and same files are not updated. If i just continue the update then it says it completed and then it gives me the twig error when i try to go to the ACP..

I guess i will uninstall the dark colored icon pack then put the original icons back in the file, then try the update again... What a P.I.T.A....

User avatar
durangod
Registered User
Posts: 639
Joined: Tue Nov 03, 2009 1:26 pm

Re: twig source error after update 3.2.0 to 3.2.1

Post by durangod » Tue Jul 18, 2017 2:57 am

Well even with doing that, it went though the update like a breeze with no file differences at all. But same error after going to acp afterwords... well now what?

Well here is the array, seems to me there needs to be a conditional statement in the code..

Array ( [0] => INCLUDE [1] => INCLUDEPHP [2] => INCLUDEJS [3] => INCLUDECSS )


code line 147

Code: Select all

return preg_replace('#<!-- (' . implode('|', $tokens) . ') (([\'"])?(.*?)\1) -->#', '<!-- $1 $2 -->', $code);

rxu
Extensions Development Team
Posts: 2769
Joined: Wed Oct 25, 2006 12:46 pm
Location: Siberia, Russian Federation
Name: Ruslan
Contact:

Re: twig source error after update 3.2.0 to 3.2.1

Post by rxu » Tue Jul 18, 2017 3:27 am

viewtopic.php?p=14783056#p14783056
I mean, the full package update way.

User avatar
durangod
Registered User
Posts: 639
Joined: Tue Nov 03, 2009 1:26 pm

Re: twig source error after update 3.2.0 to 3.2.1

Post by durangod » Tue Jul 18, 2017 3:43 am

i am trying to do that but now i get

[phpBB Debug] "include(../install/update/index.php): failed to open stream: No such file or directory" in file /home/xxxxxxx/public_html/xxxxxx.com/phpbb/install/module/obtain_data/task/obtain_update_files.php on line 77
[phpBB Debug] "include(../install/update/index.php): failed to open stream: No such file or directory" in file /home/xxxxxxx/public_html/xxxxx.com/phpbb/install/module/obtain_data/task/obtain_update_files.php on line 77
[phpBB Debug] "include(): Failed opening '../install/update/index.php' for inclusion (include_path='.:/opt/cpanel/ea-php70/root/usr/share/pear')" in file /home/xxxxxx/public_html/xxxxxx.com/phpbb/install/module/obtain_data/task/obtain_update_files.php on line 77


so im just getting in deeper and deeper. I dont know who approved this for release but you really need to do your due dilligence before you release an update guys. I have one if not the most normal server setups there is Cpanel/Apache, theres nothing special about my server setup, i did it that way to avoid complications so i pay the highway robbery every month that cpanel charges.

There really is no reason at all that an update should fail on my very normal system. So it looks like rather than spend another couple or hours or days trying to figure out the update. Ill just wipe the site completely and do a fresh install of 3.2.1..

Next time folks test more release less... Thanks
Sorry im not being mean, but i had other plans of things to work on tonight and this was not one of them, but i guess it is now. So yes im upset...

rxu
Extensions Development Team
Posts: 2769
Joined: Wed Oct 25, 2006 12:46 pm
Location: Siberia, Russian Federation
Name: Ruslan
Contact:

Re: twig source error after update 3.2.0 to 3.2.1

Post by rxu » Tue Jul 18, 2017 3:48 am

Do you follow the instaructions? You need to delete install folder as well as any others and reupload it from the full package too.

User avatar
durangod
Registered User
Posts: 639
Joined: Tue Nov 03, 2009 1:26 pm

Re: twig source error after update 3.2.0 to 3.2.1

Post by durangod » Tue Jul 18, 2017 4:00 am

Yes i followed the instructions. I been working with PHPBB for many years. I would not say what i said without prior experience of excellence with previous updates that went very smoothly...

I have already wiped the site and the DB... the site is only a few weeks old, i can set it all up again... thats what im doing. Even though it is going toa take me half the night, at least i know there are no guesses.. it will work..

User avatar
durangod
Registered User
Posts: 639
Joined: Tue Nov 03, 2009 1:26 pm

Re: twig source error after update 3.2.0 to 3.2.1

Post by durangod » Tue Jul 18, 2017 6:41 am

OK site is back up again and running fine after 100% fresh install and redoing everything. Im done being mad now :roll: ... Thanks for all the new features, its appreciated, i like it alot.

Dave :)

User avatar
Crizzo
Translations & International Support Teams Manager
Translations & International Support Teams Manager
Posts: 636
Joined: Thu Apr 23, 2009 1:20 pm
Location: Germany
Name: Christian
Contact:

Re: twig source error after update 3.2.0 to 3.2.1

Post by Crizzo » Tue Jul 18, 2017 9:27 am

Can you tell us, what package did you download? (with link please)

And how did you perform the update then?
My extensions for phpBB: crizzo.de
German phpBB Support at www.phpbb.de

User avatar
durangod
Registered User
Posts: 639
Joined: Tue Nov 03, 2009 1:26 pm

Re: twig source error after update 3.2.0 to 3.2.1

Post by durangod » Tue Jul 18, 2017 7:24 pm

Hi, i downloaded from this page
https://www.phpbb.com/downloads/

and this zip
https://www.phpbb.com/files/release/phpBB-3.2.1.zip


But the site is back up again, i got it redone from scratch. :)

wodfer
Registered User
Posts: 49
Joined: Thu Dec 04, 2003 12:14 pm
Location: Norway
Name: Andy Wodfer

Re: twig source error after update 3.2.0 to 3.2.1

Post by wodfer » Sat Oct 21, 2017 10:31 pm

Is there an actual fix to this problem? Anyone knows what's going on?

Today I was updating my 3.2.0 forum to 3.2.1. I did exactly like described in the admin panel, uploaded the install and vendor folder and BOOM, 500 Error... Tried deleting cache, removing stuff, re-uploading. I see the same problems described by the OP here. Twig errors.

Using php 7.1
php-fpm
Apache latest

NOTICE: PHP message: PHP Recoverable fatal error: Object of class Twig_Source could not be converted to string in /usr/local/www/somepath/forum/phpbb/template/twig/lexer.php on line 147

Anyone??

rxu
Extensions Development Team
Posts: 2769
Joined: Wed Oct 25, 2006 12:46 pm
Location: Siberia, Russian Federation
Name: Ruslan
Contact:

Re: twig source error after update 3.2.0 to 3.2.1

Post by rxu » Sun Oct 22, 2017 3:28 am

wodfer wrote:
Sat Oct 21, 2017 10:31 pm
Is there an actual fix to this problem?
I guess it's still the same
rxu wrote:
Tue Jul 18, 2017 3:27 am
the full package update way.

Post Reply

Return to “[3.2.x] Support Forum”

Who is online

Users browsing this forum: Baidu [Spider], bonelifer, Crizzo, janus_zonstraal, JoshyPHP, WWu777 and 28 guests

cron