Install issue with phpChart Lite in Windows / xampp? - php

I am having the same problem on the Windows-with-xampp side of the fence as Gerardo Tarragona is having on the Ubuntu-with-lampp side. Ref: How to install phpChart lite library?
I have tried a couple or few things and the roadblock I am hitting (see PHP error messages from browser below the code snippet) seems to be that the conf.php file is trying to require_once('phpChart.php') but I cannot find this file phpChart.php anywhere on disk. It does not seem to be with the phpChart_Lite extracted download. Can anybody shed light on this ? What am I missing ?
Here is the conf.php file code:
<?php
define('SCRIPTPATH','/phpChart_Lite/');
define('DEBUG', true);
/******** DO NOT MODIFY ***********/
require_once('phpChart.php');
/**********************************/
?>
Warning: require_once(phpChart.php): failed to open stream: No such file or directory in C:\xampp\htdocs\phpChart_Lite\conf.php on line 10
Fatal error: require_once(): Failed opening required 'phpChart.php' (include_path='.;C:\xampp\php\PEAR') in C:\xampp\htdocs\phpChart_Lite\conf.php on line 10

Depending on your system, change SCRIPTPATH to
define('SCRIPTPATH','/phpChart_Lite');
or
define('SCRIPTPATH','phpChart_Lite/');

Related

Error when try to run a website in Xampp

I have very basic knowledge of coding, I took a copy of our company's website to practice making changes to it.
But when I try to run it I get this error
Warning: require_once(/var/www/html/classes/database_class_pdo.php):
failed to open stream: No such file or directory in
D:\xampp\htdocs\HJ\top.php on line 10
Fatal error: require_once(): Failed opening required
'/var/www/html/classes/database_class_pdo.php'
(include_path='D:\xampp\php\PEAR') in D:\xampp\htdocs\HJ\top.php on
line 10
Please, can someone tell me the issue here?
Thank you.
It's because your php file is trying to open a file named /var/www/html/classes/database_class_pdo.php but cannot find it. Try to see if the path is correct or if the file exists.

Warning: require(./wp-blog-header.php) [function.require]: failed to open stream: No such file or directory in ......?

I moved wordpress from one server to other...home page is running fine but when I click to category pages/links it shows these errors
Warning: require(./wp-blog-header.php) [function.require]: failed to open stream: No such file or directory in /home/server/public_html/index.php on line 17
Warning: require(./wp-blog-header.php) [function.require]: failed to open stream: No such file or directory in /home/server/public_html/index.php on line 17
Fatal error: require() [function.require]: Failed opening required './wp-blog-header.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/server/public_html/index.php on line 17
I searched on google and tried accordingly but not solved. I tried wp-codex tech like http://codex.wordpress.org/Changing_The_Site_URL but also failed. I have the wp-blog-header file in my directory but still not working....any help ...thanx in advance
Change php version for 7. My tech.support make this and problem was done
I had a similar issue and the problem was with the PHP version used which in my case by default was PHP 5.2 and it was throwing the 500 status code error.
When upgrading the PHP version to 5.3 the 500 status code was gone but Wordpress returned this error:
Your server is running PHP version 5.3.29 but WordPress 5.4.2 requires at least 5.6.20.
Note to myself (and everyone else with this error): When moving Wordpress websites between different servers make sure you are running the minimum required PHP version.
Also remember:
Note: If you are in a legacy environment where you only have older PHP or MySQL versions, WordPress also works with PHP 5.6.20+ and MySQL 5.0+, but these versions have reached official End Of Life and as such may expose your site to security vulnerabilities.
According to WP docs the recommended PHP is version 7.3.
Try the default theme and see if you still have the error. If so the theme you are using is causing the error - as in my case. The page that had an error was calling a file in "pages" that was not there. When I changed what is to show on that page to something current - the error went

Unable to 'include' php files on Xampp on Ubuntu

I have Xampp running on Ubuntu 12.04. I have a php page in which i've included another file like include 'dbconfig.php'. But whenever I try to open the page I get an error like this:
Warning: require(1): failed to open stream: No such file or directory in /opt/lampp/htdocs/index.php on line 2
Fatal error: require(): Failed opening required '1' (include_path='.:/opt/lampp/lib/php') in /opt/lampp/htdocs/index.php on line 2
I have tried using the relative path, the full path and everything. I have also double-checked that dbconfig.php IS present in the same folder as index.php. I googled around a bit and i think the problem is that php is unable to open dbconfig.phpbecause of 'permission' issues.
I'm new to ubuntu, so I have no idea how to fix this. Can someone please help me out?
The code from index.php goes like this :
<?php
include 'dbconfig.php';
?>

PHP/MySQL: Path Error: [function.require]: failed to open stream:

I have applied the google map to my local server via Xampp. I have moved it to my web hosting server and I can not get it to connect to the databse. I was able to get other db connections to work but the issue here is I must be puting the file path in incorrectly. I am using the same file structure as on my local machine.
The Errors:
Warning: require(../includes/core/db/map_dbinfo.php) [function.require]: failed to open stream: No such file or directory in /home/xxxxxxx/public_html/includes/state_map/phpsqlajax_genxml2.php on line 2
Fatal error: require() [function.require]: Failed opening required '../includes/core/db/map_dbinfo.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/xxxxxxx/public_html/includes/state_map/phpsqlajax_genxml2.php on line 2
Anyone know why it's throwing these errors now but not on local machine and how I can go about fixing it?
I really have no idea where to start or even how to word this question. Any help would be appreciated. Thanks
You are standing in .../includes/states_map/phpsqlajax_genxml2.php and trying to reach "../includes/core/db/map_dbinfo.php". If you go back one directory from states_map you get to includes, and then you try to find includes under the includes directory.
Change the include to ../../includes/core/db/map_dbinfo.php
Why this is happening? Probably because you on your local server has .../includes added in you r include_path in php, which then will try includes/../includes/...

FirePHP beginner issues

I am writing a web page that uses some php files. The php isn't working properly and I am trying to debug for things such as printing variables. I am new to php so this is all new territory.
I use firebug for other debugging and css alignment so I thought firephp might be a good way to begin.
I added firePHP into firefox and then following some tutorials I found I added this to my php file:
<?PHP
/* comment here down to line 15 */
require_once('FirePHPCore/FirePHP.class.PHP');
$firephp = FirePHP::getInstance(true);
The result I get when I load my page is:
Warning: require_once(FirePHPCore/FirePHP.class.PHP): failed to open stream: No such file or directory in /var/www/contactform.php on line 15 Fatal error: require_once(): Failed opening required 'FirePHPCore/FirePHP.class.PHP' (include_path='.:/usr/share/php') in /var/www/contactform.php on line 15
It seems like some more setup and library loading is required, but I am not sure what or how?
I am developing on Ubuntu using apache and /var/www/ as my local server.
Description: Ubuntu 11.04
Release: 11.04
Codename: natty
Advice on how to get past this error?
You need to add the "FirePHPCore" folder to the same directory that this code is being run in
require_once('FirePHPCore/FirePHP.class.php');
The file extension (.php) is NOT SUPPOSED TO BE CAPITALIZED.

Categories