Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2015-11-23 10:29:02

philwareham
Core designer
From: Haslemere, Surrey, UK
Registered: 2009-06-11
Posts: 3,564
Website GitHub Mastodon

[Solved] Textpattern 4.6 install error (eAccelerator issue)

Hi,

I’m trying to install a copy of 4.6dev onto my server – I get this message:

Fatal error: Call to undefined function script_js() in /var/www/vhosts/example.com/httpdocs/textpattern/setup/index.php on line 98

Any idea why this is happening (obviously example.com is really my domain, I’ve just replaced it here)?

PHP 5.4.45
MySQL 5.5.46

Offline

#2 2015-11-23 11:17:20

etc
Developer
Registered: 2010-11-11
Posts: 5,187
Website GitHub

Re: [Solved] Textpattern 4.6 install error (eAccelerator issue)

Hi Phil,

I guess you are installing admin-layout-update branch? The setup routine calls script_js.php, but it is not available at this stage. One should probably include_once txpath.'/lib/txplib_html.php'; in setup/index.php

Edit: it looks like the error appeared few days ago and it looks like txplib_html.php is included now… I’m lost

Last edited by etc (2015-11-23 11:43:11)

Offline

#3 2015-11-23 11:41:56

philwareham
Core designer
From: Haslemere, Surrey, UK
Registered: 2009-06-11
Posts: 3,564
Website GitHub Mastodon

Re: [Solved] Textpattern 4.6 install error (eAccelerator issue)

Yes it is the admin-layout-update branch, but it looks like that line is already included in setup/index.php on line 51?

Should it be called before the vendor loader thing instead though – is that it?

Offline

#4 2015-11-23 11:45:12

etc
Developer
Registered: 2010-11-11
Posts: 5,187
Website GitHub

Re: [Solved] Textpattern 4.6 install error (eAccelerator issue)

I’d swear it was not there twenty minutes ago… download again, maybe?

Offline

#5 2015-11-23 11:47:55

philwareham
Core designer
From: Haslemere, Surrey, UK
Registered: 2009-06-11
Posts: 3,564
Website GitHub Mastodon

Re: [Solved] Textpattern 4.6 install error (eAccelerator issue)

Not sure that is it – maybe something going wrong with txpath? I get this on both master and admin-layout-update branches I think.

Offline

#6 2015-11-23 11:56:25

etc
Developer
Registered: 2010-11-11
Posts: 5,187
Website GitHub

Re: [Solved] Textpattern 4.6 install error (eAccelerator issue)

Yes, I must have been dreaming… no idea, sorry.

Offline

#7 2015-11-23 13:36:11

philwareham
Core designer
From: Haslemere, Surrey, UK
Registered: 2009-06-11
Posts: 3,564
Website GitHub Mastodon

Re: [Solved] Textpattern 4.6 install error (eAccelerator issue)

There is definitely something wrong with the admin-layout-update branch – master is actually fine. Will try to investigate.

Offline

#8 2015-11-23 14:19:56

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 11,446
Website GitHub

Re: [Solved] Textpattern 4.6 install error (eAccelerator issue)

Freaky. By the time it hits line 98, it’s already rendered three or four script_js() calls, so why fail on the last one? Is there something up with the one immediately prior to the last? Visually looks OK to me (without testing it). Or is that just the error handler using the last line of the block as the reference to the entire statement that failed?

Either way, seems a bit odd. We can always go back to the old way of just using script tags directly if it’s a problem. But quite why it’s failing is a mystery at present.


The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.

Txp Builders – finely-crafted code, design and Txp

Online

#9 2015-11-23 14:29:34

philwareham
Core designer
From: Haslemere, Surrey, UK
Registered: 2009-06-11
Posts: 3,564
Website GitHub Mastodon

Re: [Solved] Textpattern 4.6 install error (eAccelerator issue)

I’m getting all manner of problems with a clean install (of master branch now) on my server. Just done an install and got these tag errors on the default theme:

Tag error: <txp:article limit="5" /> ->  Warning: array_filter() expects parameter 2 to be a valid callback, no array or string given while parsing form None on page default
Tag error: <txp:article limit="5" /> ->  Warning: join(): Invalid arguments passed while parsing form None on page default
Tag error: <txp:linklist limit="1" /> ->  Warning: array_filter() expects parameter 2 to be a valid callback, no array or string given while parsing form None on page default
Tag error: <txp:linklist limit="1" /> ->  Warning: Invalid argument supplied for foreach() while parsing form None on page default
Tag error: <txp:linklist wraptag="ul" break="li" /> ->  Warning: array_filter() expects parameter 2 to be a valid callback, no array or string given while parsing form None on page default
Tag error: <txp:linklist wraptag="ul" break="li" /> ->  Warning: Invalid argument supplied for foreach() while parsing form None on page default

Offline

#10 2015-11-23 14:45:41

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 11,446
Website GitHub

Re: [Solved] Textpattern 4.6 install error (eAccelerator issue)

philwareham wrote #296784:

Tag error: <txp:article limit="5" /> -> Warning: array_filter() expects parameter 2 to be a valid callback, no array or string given while parsing form None on page default...

My guess would be the new do_list_unique() function, but quite why it’s throwing its toys out I can’t fathom. Maybe the lambda function inside array_filter() isn’t being fed quite what it’s expecting in some cases?

etc? Any ideas?


The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.

Txp Builders – finely-crafted code, design and Txp

Online

#11 2015-11-23 14:49:27

wet
Developer Emeritus
From: Schoerfling, Austria
Registered: 2005-06-06
Posts: 3,330
Website Mastodon

Re: [Solved] Textpattern 4.6 install error (eAccelerator issue)

Works for me.

Offline

#12 2015-11-23 20:23:20

etc
Developer
Registered: 2010-11-11
Posts: 5,187
Website GitHub

Re: [Solved] Textpattern 4.6 install error (eAccelerator issue)

Bloke wrote #296785:

My guess would be the new do_list_unique() function, but quite why it’s throwing its toys out I can’t fathom. Maybe the lambda function inside array_filter() isn’t being fed quite what it’s expecting in some cases?

etc? Any ideas?

No clue, especially since it works for Robert… I can only subscribe to your analysis: Phil’s server does not seem to taste lambda functions, but why? PHP version is recent enough, and I don’t think one can (mis)configure it that much. Phil, if you can run PHP scripts, you can try something like

print_r( array_filter( array(1, '', 2), function ($v) {return ($v=='') ? false : true;}) );

to see if the error comes from here.

Offline

Board footer

Powered by FluxBB