Hi i found this function hw_who() which says to Gets the list of currently logged in users.
however when i want to use it like that:
print_r(hw_who());
i get this error message
Fatal error: Call to undefined function hw_who() in ...
I have looked every where but it seems no post or how to use it.
anyhelp thanks !
EDIT:
my php version is : PHP Version 5.4.26
From the PHP manual:
This extension is considered unmaintained and dead. However, the
source code for this extension is still available within PECL SVN
here: » http://svn.php.net/viewvc/pecl/hyperwave.
This extension has been moved to the » PECL repository and is no
longer bundled with PHP as of PHP 5.0.0
So either you've installed it incorrectly via PECL, or you just haven't considered that.
My advice: Tackle your issue at hand differently.
Related
How to "guess" php version by looking at code?
Suppose you're handed a zip file containing php code for an application.
Are there any telltale signs about which version (5.x, 7.1, 7.3,etc )
the original author was working with?
My issue is, I suspect I'm running an incorrect php version for my (phalcon) application, my users can't log in. I see in logs
"PHP Warning: Use of undefined constant success - assumed 'success' (this will throw an Error in a future version of PHP)"
and
Uncaught Error: Class 'View' not found in ....
In general, this is not possible. You can inspect the set of features the original author used and try to identify a minimal version. When you find removed features you can also find a maximum version.
According to your warning message I assume you are using PHP 7.2 right now?!
The author probably developed this with a lower version (5.x) or has disabled warnings.
Maybe have a look here for more info about your warning message.
However, the warnings and errors you get are not really version related but seem to result from missing files and / or bad programming.
You should try to make it work with Version 7.2+ instead of choosing the version matching the developers version. Have a look at PHP versions here.
i have a problem with some old TYPO3 stuff, i tried to make a old TYPO3 Website run on my Ubuntu system.
And sorry if somethings are not clear to understand for me, i am new in CMS's and i am forced to change some stuff on a old page.
Problems are:
1.
Backend seems working, half. If i enable the ext. TemplaVoila my be Page module shows me a white page.
On TV disable,
Page module, seems working but it gives me some strange error messages inside the content fields.
if i try to look at the front-end it gives me this exception:
1: PHP Runtime Deprecation Notice: Non-static method tx_ttnews_div::getSubCategories() should not be called statically,
assuming $this from incompatible context in
/var/www/projectfolder/projectfolder-typo3/typo3conf/ext/tt_news/pi/class.tx_ttnews.php
line 3740
Just apart from this, i read about a removed php feature in update 5.6 i was using currently.
Things i checked already:
-Correct PHP -v
-Database import correct
-LocalConf correct (took from live server and changed for my localhost)
-Checked install-tool and rm -rf * inside typo3temp folder
Thanks for you help
Your PHP version combined with the versions of TYPO3 and extensions seems to be incompatible. You either need to use a different PHP version or upgrade TYPO3 and/or the extensions being used. FYI, the method being called is from a very old extension so although you don't say which version you're using, I assume your TYPO3 version is very old (either 6.x or even 4.x versions).
The normal recommendation would be to upgrade TYPO3 and any extensions. The less recommended alternative would be to use a different PHP version. But please be aware that remaining on older TYPO3 versions means your site may not be patched for security issues and may not be compatible with modern browsers.
I have twig installed via composer on a new codebase I'm working on (OSX), and on a new server I was trying install my app on. I started getting a fatal error on twig_template_get_attributes()
namely
PHP Fatal error: Call to undefined function twig_template_get_attributes() in /<path_to_here>/templates_c/a2/4e/3fbd69b54a0875d7cd3744d62bf1fa98ed4e7b1b375f904ead10b7cb27b6.php
I don't have this problem locally (OSX), and I was trying figure out why this is happening on my other server (Ubuntu 12.04 if that matters). When I install twig as a PHP extension the problem goes away, but my understanding is that the extension is completely optional and only optimizes one call
as per the documentation
The C extension is optional but it brings some nice performance
improvements. Note that the extension is not a replacement for the PHP
code; it only implements a small part of the PHP code to improve the
performance at runtime; you must still install the regular PHP code.
and
And from now on, Twig will automatically compile your templates to
take advantage of the C extension. Note that this extension does not
replace the PHP code but only provides an optimized version of the
Twig_Template::getAttribute() method.
very confused about this behavior.
I have tried using the printer methods but I get errors when whenever I use them. Have searched the web and the solution was to install the printer.dll file but I have failed to get this file.
forexample I get this for printer_list function
Call to undefined function printer_list()
How can I solve this.
Please refer to http://php.net/manual/fa/printer.installation.php
This » PECL extension is not bundled with PHP.
Windows users must enable php_printer.dll inside of php.ini in order to use these functions. A DLL for this PECL extension is currently unavailable. See also the building on Windows section.
You can find the currently available DLLs at
http://windows.php.net/downloads/pecl/releases/
Printer does not have an official release, but there is snapshot release available at
http://windows.php.net/downloads/pecl/snaps/printer/0.1.0-dev/
You need to find the right one for the PHP version you are using. As you can tell by the file names, these DLLs are for 5.3 to 5.5 - if you need it for a different PHP version, you need to build it yourself.
I'm using php 5.5.11 and when I try to call posix_kill I get the following error:
Fatal error: Call to undefined function posix_kill() in /var/www/.../someScript.php on line 861
I'm not sure what more information is relevant, feel free to ask.
You need to install PHP's posix extension which implements that function. Without that extension the function simply is not defined, which leads to the error.
How to install such an extension package depends on your operating system. Easiest is in Linux where you can search, identify, download and install packages with a single click inside the software management system.