Reputation: 11
I am installing PHPProBid Auction Script and suddenly I get this error:
Fatal error: Call to undefined function Cube\Config\simplexml_load_file() in /home/admin/webserendibite.ir/library/Cube/Config/Xml.php on line 60
Configuration:CentOS 5,Apache httpd,php 5.6,froxlor panel php info page: http://www.webserendibite.ir/phpInfo.php ionloader installer page :http://webserendibite.ir/ioncube/loader-wizard.php
and here is this function:
/** * * convert input into \SimpleXMLElement, then process the xml into an array * * @param mixed $input the input variable, it can be a path to an xml file, a string in xml format or an object of type \SimpleXMLElement * @return \Cube\Config\Xml */
public function setData($input)
{
$xml = null;
if ($input instanceof \SimpleXMLElement) {
$xml = $input;
}
else if (file_exists($input)) {
$xml = simplexml_load_file($input);
}
else {
$xml = simplexml_load_string($input);
}
$this->_data = json_decode(json_encode((array)$xml), 1);
return $this;
}
I appreciate any help :)
Upvotes: 1
Views: 3442
Reputation: 21
I tried to create new controller in phpprobid, but got an error 404 Error
The page you are looking for could not be found.
Try checking the URL for errors, then hit the refresh button on your browser.
This is the process i fallowed
**//created route**
'app-test' => array(
'test',
array(
'controller' => 'test',
'action' => 'index',
),
),
**//controller**
namespace App\Controller;
use Ppb\Controller\Action\AbstractAction,
Cube\Controller\Front,
Cube\View,
Cube\Validate\Url as UrlValidator,
Cube\Controller\Request,
Ppb\Service;
class Test extends AbstractAction
{
public function Index()
{
die('ok');
}
public function test()
{
die('ok');
}
}
Thanks
Upvotes: 0
Reputation: 11
error log for the last try to access the page:[Sat Jul 25 21:44:01 2015] [notice] caught SIGTERM, shutting down
Failed loading /usr/lib/kloxophp/ioncube/ioncube_loader_lin_5.2.so: /usr/lib/kloxophp/ioncube/ioncube_loader_lin_5.2.so: undefined symbol: execute
[Sat Jul 25 21:45:43 2015] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Sat Jul 25 21:45:43 2015] [warn] RSA server certificate wildcard CommonName (CN) *.lxlabs.com' does NOT match server name!?
[Sat Jul 25 21:45:43 2015] [notice] Digest: generating secret for digest authentication ...
[Sat Jul 25 21:45:43 2015] [notice] Digest: done
[Sat Jul 25 21:45:44 2015] [warn] RSA server certificate wildcard CommonName (CN)
*.lxlabs.com' does NOT match server name!?
[Sat Jul 25 21:45:44 2015] [notice] Apache/2.2.27 (Unix) DAV/2 PHP/5.6.11 mod_ssl/2.2.27 OpenSSL/0.9.8e-fips-rhel5 configured -- resuming normal operations
Upvotes: 0
Reputation: 320
It looks like your server is missing the SimpleXML PHP extension. If you can install packages on this server (either via command line or some other means), look for a package called php-simplexml
or php-xml
. You will have solved the problem when you see the SimpleXML
extension on your phpinfo page, or in the command line output of php -m
.
As a side note, I don't think exposing your phpinfo and especially ioncube loader pages is a good idea, especially if your application will be running on this same server. I suggest restricting access to those pages as soon as possible.
Upvotes: 1