Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
[solved] The following PHP functions are missing
I’m in the middle of migrating to a new server and although TXP appears to be working fine I’m getting the following list of missing functions:
The following PHP functions (which may be necessary to run Textpattern) are disabled on your server: apc_cache_info, apc_clear_cache, apc_sma_info, apc_store, apc_fetch, apc_delete, apc_delete_file, apc_define_constants, apc_load_constants, apc_compile_file, apc_add, apc_inc, apc_dec, apc_cas, apc_bin_dump, apc_bin_load, apc_bin_dumpfile, apc_bin_loadfile, apc_exists, eval, proc_close, proc_get_status, proc_nice, proc_terminate, , openlog, syslog, closelog, apache_child_terminate, apache_get_modules, apache_get_version, apache_getenv, apache_note, apache_request_headers, apache_reset_timeout, apache_note, apache_setenv, virtual, ini_alter, pcntl_alarm, pcntl_exec, pcntl_fork, pcntl_setpriority, posix_access, posix_kil, posix_mkfifo, posix_setegid, posix_seteuid, posix_setgid, posix_setpgid, posix_setsid, posix_setuid
From this FAQ entry it appears that the two definites I need are:
apache_get_modules
apache_get_version
I have a few in the not required list but also a fair few not listed at all. Following is an edited list – I’ve edited out the known required functions and the non-required functions leaving the missing functions not listed in the FAQ post:
apc_cache_info,
apc_clear_cache,
apc_sma_info,
apc_store,
apc_fetch,
apc_delete,
apc_delete_file,
apc_define_constants,
apc_load_constants,
apc_compile_file,
apc_add,
apc_inc,
apc_dec,
apc_cas,
apc_bin_dump,
apc_bin_load,
apc_bin_dumpfile,
apc_bin_loadfile,
apc_exists,
eval,
apache_request_headers,
apache_reset_timeout,
pcntl_alarm,
pcntl_exec,
pcntl_fork,
pcntl_setpriority,
posix_access,
posix_kil,
posix_mkfifo,
posix_setegid,
posix_seteuid,
posix_setgid,
posix_setpgid,
posix_setsid,
posix_setuid
Can anyone shed light on what I actually do / don’t need please?
Last edited by Gocom (2014-03-30 09:39:09)
Offline
Re: [solved] The following PHP functions are missing
You can safely ignore apc_*
as they refer to the APC PHP cache.
Offline
Re: [solved] The following PHP functions are missing
Without eval
, I guess you won’t be able to run <txp:php />
(try <txp:php>echo 'hi';</txp:php>
), and some plugins could break too.
Offline
Re: [solved] The following PHP functions are missing
Thanks. Are there any others I need to worry about?
pcntl_
posix_ etc
Last edited by damienbuckley (2014-01-16 22:48:37)
Offline
#5 2014-01-16 22:53:09
- uli
- Moderator
- From: Cologne
- Registered: 2006-08-15
- Posts: 4,315
Re: [solved] The following PHP functions are missing
I remembered wet posted something about pcntl_.
In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links
Offline
Re: [solved] The following PHP functions are missing
Awesome, thanks for that. Looks like the list is down to this pretty much:
apache_request_headers,
apache_reset_timeout,
posix_access,
posix_kil,
posix_mkfifo,
posix_setegid,
posix_seteuid,
posix_setgid,
posix_setpgid,
posix_setsid,
posix_setuid
Offline
#7 2014-01-17 00:18:47
- uli
- Moderator
- From: Cologne
- Registered: 2006-08-15
- Posts: 4,315
Re: [solved] The following PHP functions are missing
Here you find some posix’ one doesn’t need.
For unusual patterns like “posix_” Google (i.e. the search field top right on all pages) isn’t the matter of choice. For this purpose the forum internal search (the search tab) is more reliable.
Last edited by uli (2014-01-17 00:20:14)
In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links
Offline
Re: [solved] The following PHP functions are missing
Thankyou. You’ve been hugely helpful.
Offline
Re: [solved] The following PHP functions are missing
uli wrote #278212:
[…] (the search tab) […]
Wow. I just saw that for the first time. Is that new with the redesign or have I been snow-blind for years?
Offline
#10 2014-01-17 11:15:41
- uli
- Moderator
- From: Cologne
- Registered: 2006-08-15
- Posts: 4,315
Re: [solved] The following PHP functions are missing
gaekwad wrote #278215:
Is that new with the redesign or have I been snow-blind for years?
Mustard-blind, and that is an excuse :))
I’m quite sure it has been there for years, though I admit I’ve not often taken notice of the tabs. The spot I remember better is the tiny link below the search field.
The forum search’s been kind of hidden and partly replaced because it didn’t work satisfactorily (can’t tell whether that’s better now), but I always prefer(red) it for searches that Google believes are mistyped.
In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links
Offline
Re: [solved] The following PHP functions are missing
uli wrote #278221:
Mustard-blind […]
Bravo, sir. +1 bonus point for that.
I’ll leave this thread now – apologies for hijacking it.
Offline
Re: [solved] The following PHP functions are missing
damienbuckley wrote #278191:
following list of missing functions
To shed some light on this, we don’t check whether functions are missing. The functions we list are explicitly disabled with a configuration directive set in PHP’s main configuration file. The list is raw and doesn’t really tell anything on its own.
eval
Without eval you can not use any plugins or PHP tags in your templates. Plugins and PHP blocks are evaluated with it.
apc_*, posix_*, pcntl_*
These are functions from optional PHP extensions. Your host disabling these seems counterproductive. If they have those extensions loaded, they should just unload them. You can’t anyways use them when their API access is disabled. Having rampant OPcode APC which you can’t flush is just mad.
Offline