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!
Related
'''Fatal error: Uncaught Exception: Unable to open file /skins/MinervaNeue/skin.json: filemtime(): stat failed for /skins/MinervaNeue/skin.json'''
I tried running MediaWiki 1.38 (upgraded from 1.37.x) and tried using .git. Everything went smoothly, but after configuring the install through the browser (mw-config) I went to the site and got an 500 error. I turned on error reporting and got that error above (over and over). I’m on a shared hosting provider , I can’t edit the overall config, I can alter some php.ini settings, but I think it is something simple.
I tried changing my DB password in case it was that: Fatal Error Uncaught Exception unable to open INI file
I’ve already googled using different phrases and the exception with "php" and "mediawiki" Nothing except other fatal exception but none with failing to open a file. I’ve tried checking the permissions (directories are 755, and files are 774), checking the spelling of all the involved directories, changing the path to not use relative paths, re-downloading the skins, and changing which version of PHP (7.4 FastCGI to 7.4) I’m using from my ISP’s control panel. Nothing worked, and for a bit I broke it so bad that I was getting blank pages, but found those errors, But I can’t find the solution to this one. I’m out of Ideas. Help.
So, I it turns out the problem was my LocalSettings.php file was corrupted. Once I deleted the file (so it would cause mediaWiki to regenerated the file) & went into the mediaWiki setup again, and it worked as expected.
I am getting error
Fatal error: Uncaught Error: Class 'MyClass' not found in /home/x/domain.com/x/x/init.php:3 Stack trace: #0 /home/x/domain.com/x/login.php(6): require_once() #1 {main} thrown in /home/x/domain.com/x/x/init.php on line 3
The thing is, I can run it in XAMPP on localhost without problems, I even ran it on the webserver before. The only thing I did is: deleted DB & files from webserver and 1:1 copied from XAMPP to the webserver and by that moment, I am getting this error.
I have edited things like DB connection etc, there is no error at all ** I THINK ** (since it is running fine in the XAMPP, PHP version is same on webserver as XAMPP (7.3)).
Webserver is running on Namecheap, it is shared hosting, so it is Litespeed server
mainfolder/index.php which is redirecting to login.php (mainfolder/clients/login.php) & login is calling init.php which is in clients/iip/init.php. require_once 'iip/init.php'; (i tried even './iip/init.php') and that 'user' class is located in iip/functions.php called from iip/init.php ( require_once 'functions.php'; )
EDIT: I tried to access init.php at the working XAMPP side and i am getting the same error, BUT site is still working, i am confused
Are you sure you specified your DocumentRoot (in apache config file) correctly?
It seems that your web server can't find specified file or MyClass is not defined in specified file.
You are probably making a mistake specifying the file path. The file path could be like "localhost/functions.php".
Also, after uploading the files to the server, are you sure that you can make the database connection without any problems?
I am trying to run PDFTron for php following the instructions.
However, when called: PDFNet::Initialize(); i'm getting an error
Fatal error: Uncaught Error: Call to undefined function PDFNet_Initialize() in .../PDFNetPHP_core.php
I assume that PDFNet_Initialize is part of extension because i can't see declaration in PDFNetPHP_core.php file
I setup exenstion PDFNetPHP.so and enable_dl = on in php.ini. Also when i run test in PDFNetWrappers/Samples/AddImageTest/PHP then it's looks ok:
PDFNet is running in demo mode.
Permission: write
Done. Result saved in addimage.pdf...<br />
when i run php -m module PDFNetPHP is on list
what am I doing wrong?
If the sample code is working on your end, it's likely that your project is unable to find the libPDFNetC.soshared library. The RunTest.sh in the AddImageTest sample sets the following environment variable:
export LD_LIBRARY_PATH=../../../PDFNetC/Lib
You might need to add the .so explicitly, or at least put the .so in a folder that PHP will load .so files from. See your PHP documentation. Please also see the following post:
https://stackoverflow.com/a/35442777/3761687
I was setting up a Twitter auto reply bot on my VPS. When I ran the PHP script it gave me an error. Yes, obviously I installed the PECL OAuth extension, added the code to the php.ini file & even checked it to see if it was enabled by creating a phpinfo.php file. Still, nothing.
So I'm really confused here. I even rebooted the server & restarted apache but with no success. So what should I do? Here's the output when I run the script:
PHP Fatal error: Class 'OAuth' not found in
/var/www/html/twitters/TwitterAutoReply.php on line 24
root#Graffocp:/var/www/html/twitters#
Thanks for your help :)
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.