Wamp and xml_unserializer issue - php

I am trying to fix an online site, but before that I would like to make it work on my local machine/wamp. Everytime I click on Search event and Register links on the site, the error below shows up.
Warning: require_once(XML/Unserializer.php) [function.require-once]: failed to open stream: No such file or directory in C:\wamp\www\xxxxxx\includes\common_form_controls.php on line 19
Fatal error: require_once() [function.require]: Failed opening required 'XML/Unserializer.php' (include_path='.;C:\php\pear') in C:\wamp\www\itsonat\includes\common_form_controls.php on line 19
Is it because I don't have xml_unserializer installed on my computer? Where and How do I install it? I've been trying to install Pear in my wamp, but I am unsure of the relationship between Pear and XML_serializer.
Can someone please help me on how to fix this problem?
Thanks heaps. S:)

PEAR can be installed, of course. There are a couple of guides out there.
Also, install the PEAR modules required by your app to work properly, perhaps following this guide.
Hope it helps.

Related

I Couldn't Install Opencart 2.1

I'm trying to install OpenCart 2.1 using the Wamp server but I got this message error.
Warning: require_once(d:\wamp\www\opencart\upload\config.php) [function.require-once]: failed to open stream: Permission denied in d:\wamp\www\opencart\upload\index.php on line 9
Check-in (d:\wamp\www\opencart\upload\config.php) that "config.php" file is still there or not. If it is not, you search "config-dist.php" and "admin/config-dist.php" and rename this "config.php". If there are not then you have to reinstall opencart.
Probably it will be OK.

Error: Failed to start application: Call to undefined function Joomla\CMS\Language\simplexml_load_file()

I am getting the error mentioned in the question, I am using:
Linux Mint 18
LAMP
Joomla3.5
solr-7
I have already installed the required libraries here are the screenshots:
Screenshot
I reinstalled the module using the synaptic manager and restarted apache but still the error persists.
Please help me in finding the solution.

cakephp 3.* installation issue

Cakephp is my first PHP framework. I followed the instructions in Documentation / install. It seems everything was correct, but when i tried to run, i get errors:
Warning: require(/var/www/html/caketest/vendor/autoload.php): failed
to open stream: No such file or directory in
/var/www/html/caketest/config/bootstrap.php on line 23
Fatal error: require(): Failed opening required
'/var/www/html/caketest/vendor/autoload.php'
(include_path='.:/usr/share/php:/usr/share/pear') in
/var/www/html/caketest/config/bootstrap.php on line 23
im using ubuntu with php 5.5.9, pear is installed
I tried to find the solution but without sucsess.
How to correct these errors?
I found out that there was a missing package in my system. - php5-intl
It was written in official CakePHP install manual, and i checked it but looks like not well.
Install manual for php5-intl
http://php.net/manual/en/intl.setup.php
ps: restart apache after instalation
sudo /etc/init.d/apache2 restart

why aws.phar runs once then won't load again?

I install aws sdk for php in my elastic beanstalk application using phar file,:
require_once __DIR__ . '/../AWS-SDK/aws.phar';
when I run the script for the first time, it succeed ! but when I try again I got this error :
Warning: require(phar://aws.phar/aws-autoloader.php): failed to open stream: phar error: invalid url or non-existent phar "phar://aws.phar/aws-autoloader.php" in /var/app/current/src/utils/AWS-SDK/aws.phar on line 3 Fatal error: require(): Failed opening required 'phar://aws.phar/aws-autoloader.php' (include_path='.:/usr/share/pear:/usr/share/php') in /var/app/current/src/utils/AWS-SDK/aws.phar on line 3
How to solve the problem ?
Don't use require_once. That's causing that issue. You should use require or include
There seems to be an error on some versions of the aws.phar file that causes this behavior and warning message.
Warning: require(phar://aws.phar/aws-autoloader.php): failed to open stream: phar error: invalid url or non-existent phar "phar://aws.phar/aws-autoloader.php" in /var/app/current/src/utils/AWS-SDK/aws.phar on line 3 Fatal error: require(): Failed opening required 'phar://aws.phar/aws-autoloader.php' (include_path='.:/usr/share/pear:/usr/share/php')
I was experimenting the same issue using aws.phar with version 2.7.17 of the AWS SDK for PHP
The solution that worked for me was to download and extract the aws.zip version of the AWS SDK for PHP and require aws-autoloader.php instead as described in the installation docs.
http://docs.aws.amazon.com/aws-sdk-php/guide/latest/installation.html#installing-via-zip
Some people reports success when using the 2.4.10 version of the AWS (aws.phar) but that is too old for my purposes.
https://pyd.io/f/topic/pydio-6-0-s3-plugin-phar-error/
Try turning off opcache
add the following to /etc/php5/apache2/php.ini opcache.enable=0
restart apache service apache2 restart
This is a know issue at least with older versions of the aws.phar and there seems to be a general issue with phars and opc (formerly Zend Optimizer+)
to solve the problem I'v installed the sdk using composer ! BTW it's the recommended technique !
Make sure you declare all namespace usage at the top of the file before you do "require". If you include files first, it can mess up the namespacing. This fixed the issue for me.

daloRadius Is not working, DB.PHP file not found

daloRadius is an open source and free software based on php, i downloaded it and trying to run it in waamp server, after the login page i am getting this error
include_once(DB.php): failed to open stream: No such file or directory in C:\wamp\www\daloradius-0.9-9\library\opendb.php
I have searched thoroughly the db.php file but couldnt find it in the folder, what should I do? Do Ii have to create the file?
I was working on a ubuntu 14 based freeradius setup and daloradius as web interface, encountered the same issue.
PHP Warning: include_once(DB.php): failed to open stream: No such
file or directory in /var/www/html/daloradius/library/opendb.php on
line 84
Installing php-db worked for me:
sudo apt-get install php-db
You are missing the PHP Pear DB library. Install the library via pear install DB

Categories