In controller i used.
$this->load->library("PHPExcel");
Its working on local machine but in main server have error...
Error : NetworkError: 500 Internal Server Error
Fatal error: Class 'PHPExcel_Shared_String' not found in Autoloader.php on line 36
What will be the issue?
Thank You in Adv.
check the permission of the PHPExcel.php file in library. this file have permission to access or not. because this file not have access permission then the occur this type of error.
you have PHP module xmlwriter enabled on server to run PHPExcel,,, check the requirements for PHPExcel.
Related
I'm getting this error when my site is online
[host www.sitename.com] Backend fatal error: PHP Fatal error: require_once() [function.require]: Failed opening required 'admin/config/connection.php' (include_path='.:/opt/cpanel/ea-php53/root/usr/share/pear:/opt/cpanel/ea-php53/root/usr/share/php') in /home/mistrybu/public_html/index.php on line 373\n
The site works well in localhost but when its put online , the dynamic part is not showing.
I changed the php version from php7 to php5 in cpanel. Now the front end is working but the backend is not.
Can someone help me solve this error?
PHP version
Definitely do not go back to PHP5. Keep it to 7. If that means rewriting some of the existing code, so be it, it will make your site more secure and more future proof.
Error Message
Your require_once() method cannot find or access a particular file. This is most probably because:
File missing
The file (connection.php) doesn't exist in the given location (admin/config). Now keep in mind that as the location doesn't start with a /, it's going to be relative to where the require_once() method is being run from.
Since you're running require_once() from:
home/mistrybu/public_html/
it's going to look for the file here:
/home/mistrybu/public_html/admin/config/.
Does that location exist? Does the connection.php reside in the folder?
Folder mismatch
Try adding the following prefix to your path, and see if that makes a difference:
require_once $_SERVER['DOCUMENT_ROOT'].'/admin/config/connection.php';
File errors
Maybe the file exists, but for some reason, gives an error. Try running the following from your command line and see if you get any errors:
php -f admin/config/connection.php
I've updated my mediawiki from 1.26.2 to 1.27, the installation process finished ok, but when I try to access I received this error:
Warning:
require(/var/app/current/includes/specials/SpecialUserLogin.php):
failed to open stream: No such file or directory in
/var/app/current/includes/AutoLoader.php on line 81 Fatal error:
require(): Failed opening required
'/var/app/current/includes/specials/SpecialUserLogin.php'
(include_path='/var/app/current/vendor/pear/pear_exception:/var/app/current/vendor/pear/console_getopt:/var/app/current/vendor/pear/pear-core-minimal/src:/var/app/current/vendor/pear/mail_mime:/var/app/current/vendor/pear/mail_mime-decode:/var/app/current/vendor/pear/net_socket:/var/app/current/vendor/pear/net_smtp:/var/app/current/vendor/pear/mail:.:/usr/share/pear:/usr/share/php')
in /var/app/current/includes/AutoLoader.php on line 81
I have no idea why is this happening. If I check the files in my server they're there. I'm also having template issues if I choose vector I only get a messed up template, without styling.
I'm using PHP 5.6.
I hope someone can help me.
I just stumbled across this same exact error after upgrading to MW 1.27.
In my case, the SpecialUserlogin.php existed and all of the permissions were right BUT the word login was written in lowercase so the system thought this file didn't exist. So I just renamed the SpecialUserlogin.php to SpecialUserLogin.php and b00m, it worked!
As for your templating issues, check the common.css file. Copy paste everything out of there, so it's empty, if you don't use it. And check that you're calling your style files correctly in your template.
My OAuth extension(extension=oauth.so) is present in php.ini and I am able to see it when I give "php -m". I have also made sure that oauth.so file is present in /usr/lib/php5/20121212/. Also given this path in php.ini for include_path variable- include_path = ".:/usr/lib/php5/20121212"
Even though my php application throws this error- Fatal error: Class 'OAuth' not found in /x/y/z.php on line 30
I tried running the php file in server(ubuntu 14.04). This time it said "Failed loading oauth: oauth: cannot open shared object file: No such file or directory"
What could be the reason for the failure of oauth loading. Couldn't proceed further.
Thanks in Advance!
In Dropbox api, this error occurs:
Warning: file_put_contents(dropbox/tokens/766tYP3FZu8IEv4d.token) [function.file-put-contents]: failed to open stream: No such file or directory in C:\xampp\htdocs\dropbox\dropboxupload.php on line 28
Authentication requiredhttps://www.dropbox.com/1/oauth/authorize?oauth_token=766tYP3FZu8IEv4d&oauth_callback=http%3A%2F%2Flocalhost%2Fdropbox%2Fdropboxupload.php%3Fauth_callback%3D1
How can this error be solved?
Errors are returned using standard HTTP error code syntax. Any additional info is included in the body of the return call, JSON-formatted. Error codes not listed here are in the REST API
Create folder at root name "tokens" and try again
warning is due to not having "tokens" folder in your dropbox directory at root level.
create one.
second Oauth doesnot work on a Local Machine .
try to Upload it on a server and try again .
Problem: Any php file we attempt to access on our website shows up as a 500 internal server error. I'm not sure if this is related but I have had a look in the error logs and the below error appears:
[08-Nov-2013 12:41:51 UTC] PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20090626/htscanner.so' - /usr/local/lib/php/extensions/no-debug-non-zts-20090626/htscanner.so:
cannot open shared object file: No such file or directory in Unknown on line 0
Attempt: Some of the things I have tried to do is delete the over size error log and renamed the htaccess file to see if that was causing the problem.
Page: You can see the problem at this page: http://science.org.au/support-us/donate-now.html (Half way down in the iframe)
Question: Does anyone have any ideas on how to fix this? Things to try?
Did you try this?
edit the file /etc/php5/cli/php.ini:
and remove the lines:
[htscanner] Extension = “htscanner.so”
config_file = “.htaccess”
default_docroot = “/var/www”
You should pay more attention to what your error log says. According to it, you should either install htscanner.so PHP extension, or remove reference to it from your php.ini.