Tikiwiki 16.2 Error while registering new user - tiki-wiki

I did a fresh install of 16.2 and when I try to register a new user I get the error below. I've re-extracted the zip and reinstalled the database, but I get the same error.
Tikiwiki is in a public_html/tiki folder and I have made no adjustments to it.
Any help would be appreciated.
Here's the error:
Fatal error: Uncaught exception 'Zend\Math\Exception\RuntimeException' with message 'The RandomLib fallback pseudorandom generator is not installed. Please install it to support secure random numbers' in /home/ghsfhaco/public_html/tiki/vendor/zendframework/zend-math/src/Rand.php:75 Stack trace: #0 /home/ghsfhaco/public_html/tiki/vendor/zendframework/zend-math/src/Rand.php(60): Zend\Math\Rand
getAlternativeGenerator() #1 /home/ghsfhaco/public_html/tiki/vendor/zendframework/zend-captcha/src/AbstractWord.php(354): Zend\Math\Rand
getBytes(32) #2 /home/ghsfhaco/public_html/tiki/vendor/zendframework/zend-captcha/src/AbstractWord.php(340): Zend\Captcha\AbstractWord->generateRandomId() #3 /home/ghsfhaco/public_html/tiki/vendor/zendframework/zend-captcha/src/Image.php(447): Zend\Captcha\AbstractWord->generate() #4 /home/ghsfhaco/public_html/tiki/lib/captcha/captchalib.php(150): Zend\Captcha\Image->generate() #5 /home/ghsfhaco/public_html/tiki/vendor/smarty/smarty/libs/sysplugins/smarty_internal_templatebase.php(171) : eval()'d c in /home/ghsfhaco/public_html/tiki/vendor/zendframework/zend-math/src/Rand.php on line 75

This also caught us out the other day and it's due to an older version of PHP 5 which hasn't got the mcrypt extension enabled, and we fixed it recently, so there are a few options for you I think:
Upgrade to php 7 (probably not an option unless it's your own server)
Enable php-mcrypt for you php (also probably not possible)
Try again with a recent "daily build" 16.x tarball from dev.tiki.org
Or enable one of the other CAPTCHA methods on Control panels->Security->Spam Protection, such as ReCaptcha or CAPTCHA Questions
HTH

Related

GuzzleHttp\Exception\ConnectException: cURL error 28 when using Google Cloud Speech PHP API

Following Google's instructions to the letter.
This is what I get:
Fatal error: Uncaught GuzzleHttp\Exception\ConnectException: cURL error 28: Connection timed out after 500 milliseconds (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) in C:\xampp\htdocs\ModernMT\vendor\guzzlehttp\guzzle\src\Handler\CurlFactory.php:207 Stack trace: #0 C:\xampp\htdocs\ModernMT\vendor\guzzlehttp\guzzle\src\Handler\CurlFactory.php(162): GuzzleHttp\Handler\CurlFactory::createRejection(Object(GuzzleHttp\Handler\EasyHandle), Array) #1 C:\xampp\htdocs\ModernMT\vendor\guzzlehttp\guzzle\src\Handler\CurlFactory.php(109): GuzzleHttp\Handler\CurlFactory::finishError(Object(GuzzleHttp\Handler\CurlHandler), Object(GuzzleHttp\Handler\EasyHandle), Object(GuzzleHttp\Handler\CurlFactory)) #2 C:\xampp\htdocs\ModernMT\vendor\guzzlehttp\guzzle\src\Handler\CurlHandler.php(45): GuzzleHttp\Handler\CurlFactory::finish(Object(GuzzleHttp\Handler\CurlHandler), Object(GuzzleHttp\Handler\EasyHandle), Object(GuzzleHttp\Handler\CurlFactory)) #3 C:\xampp\htdocs\ModernMT\vendor\guzzlehttp\guzzle\src\Handler\Proxy.php(30): GuzzleH in C:\xampp\htdocs\ModernMT\vendor\guzzlehttp\guzzle\src\Handler\CurlFactory.php on line 207
This happens right after:
# Instantiates a client
$client = new SpeechClient();
Straight from the developers of Google Cloud:
After investigating a bit further, it looks like this is a bug in the google/auth dependency. We just merged a fix, and it should be tagged by the end of the day. You can wait for that (watch this page for v1.11.1), or you could require guzzlehttp/guzzle at ^6.5 to get it working right now. Sorry for the trouble, and thanks for bringing it to our attention!

Uncaught Error: Class 'Zend_Cache' not found in magento2 installation

Fatal error: Uncaught Error: Class 'Zend_Cache' not found in /var/www/html/stdcw/vendor/magento/framework/App/Cache/Frontend/Factory.php:148 Stack trace: #0 /var/www/html/stdcw/vendor/magento/framework/App/Cache/Frontend/Pool.php(67): Magento\Framework\App\Cache\Frontend\Factory->create(Array) #1 /var/www/html/stdcw/vendor/magento/framework/App/Cache/Frontend/Pool.php(146): Magento\Framework\App\Cache\Frontend\Pool->_initialize() #2 /var/www/html/stdcw/vendor/magento/framework/App/Cache/Type/FrontendPool.php(84): Magento\Framework\App\Cache\Frontend\Pool->get('default') #3 /var/www/html/stdcw/vendor/magento/framework/App/Cache/Type/Config.php(49): Magento\Framework\App\Cache\Type\FrontendPool->get('config') #4 /var/www/html/stdcw/vendor/magento/framework/Cache/Frontend/Decorator/Bare.php(65): Magento\Framework\App\Cache\Type\Config->_getFrontend() #5 /var/www/html/stdcw/vendor/magento/framework/App/ObjectManager/ConfigLoader.php(66): Magento\Framework\Cache\Frontend\Decorator\Bare->load('global::DiConfi...') #6 /var/www/h in /var/www/html/stdcw/vendor/magento/framework/App/Cache/Frontend/Factory.php on line 148
It seems cache issue, Clear your all cache which you have installed on your server like APC, MemCached.
if it still give an issue then the problem is in improper installation of Magento2 instance. Install new Magento 2 install with same version you have installed with Separate DB. Hope it helps.

symfony2 php codesniffer standard error

I'm new to phpCodeSniffer and I'm trying to integrate it with eclipse. I've downloaded phpCodeSniffer from PEAR following these instructions, and I also downloaded Symfony2 standards from Github and the php-cs-fixer. I followed all the instructions and everything works fine, but when I try to use the sniffer with eclipse I get the following error:
/usr/bin/php -c /tmp/zend_debug/session7507717624755069136.tmp -d asp_tags=off -d short_open_tag=on /opt/eclipse/plugins/org.phpsrc.eclipse.pti.tools.codesniffer_1.3.0.R20111119000000/php/tools/phpcs.php --report=xml --standard=/usr/share/php/PHP/CodeSniffer/Standards/Symfony2 --tab-width=4 /var/www/siga-nuevo/src/Siga/UserBundle/Controller/UserController.php
PHP Fatal error: Uncaught exception 'PHP_CodeSniffer_Exception' with message 'Referenced sniff Symfony2.Commenting.FunctionComment.MissingParamComment does not exist' in /opt/eclipse/plugins/org.phpsrc.eclipse.pti.library.pear_1.2.2.R20120127000000/php/library/PEAR/PHP/CodeSniffer.php:814
Stack trace:
0 /opt/eclipse/plugins/org.phpsrc.eclipse.pti.library.pear_1.2.2.R20120127000000/php/library/PEAR/PHP/CodeSniffer.php(730): PHP_CodeSniffer->_expandRulesetReference(Object(SimpleXMLElement))
1 /opt/eclipse/plugins/org.phpsrc.eclipse.pti.library.pear_1.2.2.R20120127000000/php/library/PEAR/PHP/CodeSniffer.php(623): PHP_CodeSniffer->getSniffFiles('/usr/share/php/...', 'Symfony2')
2 /opt/eclipse/plugins/org.phpsrc.eclipse.pti.library.pear_1.2.2.R20120127000000/php/library/PEAR/PHP/CodeSniffer.php(438): PHP_CodeSniffer->setTokenListeners('/usr/share/php/...', Array)
3 /opt/eclipse/plugins/org.phpsrc.eclipse.pti.library.pear_1.2.2.R20120127000000/php/library/PEAR/PHP/CodeSniffer/CLI.php(551): PHP_CodeSniffer->process(Array, '/usr/ in /opt/eclipse/plugins/org.phpsrc.eclipse.pti.library.pear_1.2.2.R20120127000000/php/library/PEAR/PHP/CodeSniffer.php on line 814
This is my eclipse configuration:
It looks like the OpenSky symfony2 standards are broken in your case. The relevant part of the error message is this one:
Uncaught exception 'PHP_CodeSniffer_Exception' with message 'Referenced sniff Symfony2.Commenting.FunctionComment.MissingParamComment does not exist'
As symfony follows all the current PSR standards - namely the PSR-0, PSR-1, PSR-2 and PSR-3 (of which PSR-3 provides just the logger interface which monolog respects).
You can aswell directly use the PSR-2 standard included with newer Versions of PHPCS.
The PSR-2 standard implementation in PHPCS has been updated recently - opposite to those old symfony2 standards. Which means the implementation should be more accurate anyway.

Connecting to MongoDB using Lithium li3 Framework

I am writing a relatively simple app in the Lithium (li3) Framework. I am using MongoDB as the datastore. My MongoDB database is hosted in the cloud - at MongoHQ.
I am getting intermittent errors when trying to post data. At times it will work - but then I will get an error that says the following:
Fatal error: Uncaught exception 'MongoConnectionException' with
message 'connecting to mongodb://USERNAME:PASSWORD#flame.mongohq.com:27052/DATABASENAME failed:
Operation now in progress' in
/Applications/MAMP/htdocs/quizapp/libraries/lithium/data/source/MongoDb.php:257 Stack trace:
#0 /Applications/MAMP/htdocs/quizapp/libraries/lithium/data/source/MongoDb.php(257): Mongo-
>__construct('mongodb://mongo...', Array) #1
/Applications/MAMP/htdocs/quizapp/libraries/lithium/data/Source.php(90):
lithium\data\source\MongoDb->connect() #2
/Applications/MAMP/htdocs/quizapp/libraries/lithium/data/source/MongoDb.php(160):
lithium\data\Source->_init() #3
/Applications/MAMP/htdocs/quizapp/libraries/lithium/core/Object.php(93):
lithium\data\source\MongoDb->_init() #4
/Applications/MAMP/htdocs/quizapp/libraries/lithium/data/Source.php(73): lithium\core\Object-
>__construct(Array) #5
/Applications/MAMP/htdocs/quizapp/libraries/lithium/data/source/MongoDb.php(156):
lithium\data\Source->__construct(Array) #6 /Applications/MAMP/htdocs/quizapp/libra in
/Applications/MAMP/htdocs/quizapp/libraries/lithium/data/source/MongoDb.php on line 263
I am running this on MAMP on a Mac. I have tried to stop and restart Apache - but it does not seem to fix the problem. However, I do seem to connect to MongoDB 1 out of every 10 to 15 attempts. I cannot figure out any trends.
Any help will be greatly appreciated.
Thank you
Nino
I can see two possible issues here:
A firewall, and a description to turn that off is at: https://groups.google.com/forum/#!msg/mongodb-user/9-DYhQWEo0E/B4UsY53S1IwJ
Slow connections — in some cases a connection to a host is too slow. And since version 1.3.4 of the Mongo PHP driver (which li3 uses) there is great control over timeouts. Have a look at the timeout option at http://www.php.net/manual/en/mongoclient.construct.php — you will most likely want to increase that (but make sure you use 1.3.4 or later of the driver).

Zend Framework Migration to Live Server

Pardon me guys, I am new to ZF. I need to move my codes from MAMP production server to LAMP Live Server.
When I am working on localhost with the codes are all working fine. However when I upload it to live server, 60% of the modules reflect this error.
Fatal error: Uncaught exception 'Zend_View_Exception' with message
'script 'layout.phtml' not found in path
(/home/lifeoppc/public_html/application/layouts/:/home/lifeoppc/public_html/application/modules/default/views/scripts/:./views/scripts/)'
in /home/lifeoppc/public_html/public/Zend/View/Abstract.php:988 Stack
trace: #0
/home/lifeoppc/public_html/public/Zend/View/Abstract.php(884):
Zend_View_Abstract->_script('layout.phtml') #1
/home/lifeoppc/public_html/public/Zend/Layout.php(796):
Zend_View_Abstract->render('layout.phtml') #2
/home/lifeoppc/public_html/public/Zend/Layout/Controller/Plugin/Layout.php(143):
Zend_Layout->render() #3
/home/lifeoppc/public_html/public/Zend/Controller/Plugin/Broker.php(333):
Zend_Layout_Controller_Plugin_Layout->postDispatch(Object(Zend_Controller_Request_Http))
#4 /home/lifeoppc/public_html/public/Zend/Controller/Front.php(965): Zend_Controller_Plugin_Broker->postDispatch(Object(Zend_Controller_Request_Http))
#5 /home/lifeoppc/public_html/public/Zend/Application/Bootstrap/Bootstrap.php(9
in /home/lifeoppc/public_html/public/Zend/Controller/Plugin/Broker.php
on line 336
I really really need help! Site is going live on Monday and I am really desperate right now =(
Search for file layout.phtml inside your project and then copy paste it inside directory
/home/lifeoppc/public_html/application/layouts/