Fatal error: require_once() [function.require]: Failed opening required global.php - mysql

I am try to open my site in locally. xampp is installed, but I get the following errors. How can I rectify this:
Warning: require_once(/Applications/XAMPP/xamppfiles/htdocs/artgallery/administrator/components/com_virtuemart/classes/phpInputFilter/class.inputfilter.php) [function.require-once]: failed to open stream: No such file or directory in /Applications/XAMPP/xamppfiles/htdocs/artgallery/administrator/components/com_virtuemart/global.php on line 104
And:
Fatal error: require_once() [function.require]: Failed opening required '/Applications/XAMPP/xamppfiles/htdocs/artgallery/administrator/components/com_virtuemart/classes/phpInputFilter/class.inputfilter.php' (include_path='.:/Applications/XAMPP/xamppfiles/lib/php:/Applications/XAMPP/xamppfiles/lib/php/pear') in /Applications/XAMPP/xamppfiles/htdocs/artgallery/administrator/components/com_virtuemart/global.php on line 104

This Warning is not Failed opening required global.php. This warning says line number 104 of global.php have a statement for requiring a file named class.inputfilter.php But, failed to load it.
This issue can occur in following cases :
--> File does not exists.
--> File exists but do not have READ permission.
Solution :
Go to the path :
/Applications/XAMPP/xamppfiles/htdocs/artgallery/administrator/components/com_virtuemart/classes/phpInputFilter/
and find the file named class.inputfilter.php.
If not found then get it from the fresh package of Virtuemart(Remember to check the version. Both files have to be from same Virtuemart version).
If exists then change its permissions to 644 or 755.

Related

Octave GUI on Mac is not able to find a file

I entered this code on my octave GUI on Mac:
>>cd file:///Users/Sudipta/Downloads/Stanford/warmUpExercise.m
error: file:///Users/Sudipta/Downloads/Stanford/warmUpExercise.m: No such file or directory
I am using macOS Big Sur and Octave version 3.8.0.The file in question exists in my computer and I have checked this code multiple times.
It is not able to locate the file on my MacBook for some reason. Can someone help?
Edit: I have tried a new code as mentioned in the comments, but it also can't find the file
>> cd Users/Sudipta/Downloads/Stanford/warmUpExercise.m
error: Users/Sudipta/Downloads/Stanford/warmUpExercise.m: No such file or directory
I have also tried:
1.>> cd Users/Sudipta/Downloads
error: Users/Sudipta/Downloads No such file or directory
2.>> cd Users/Sudipta/Downloads/Stanford
error: Users/Sudipta/Downloads/Stanford No such file or directory
And I got the same error as above.
The other code gave a different error:
3.> cd /Users/Sudipta/Downloads
warning: load_path: .: Operation not permitted
QKqueueFileSystemWatcherEngine::addPaths: open: Operation not permitted
Warning: QFileSystemWatcher: failed to add paths: /Users/Sudipta/Downloads

Problems with local installation of Magento 1.9.3.8. site

It's my first time that I find myself working with Magento, after installing the backup on local using Mamp, when I try to connect to the page I see the following message.
Warning: include_once(/Applications/MAMP/htdocs/amsb/includes/src/Mage_Core_functions.php): failed to open stream: No such file or directory in /Applications/MAMP/htdocs/amsb/app/Mage.php on line 36
Warning: include_once(): Failed opening '/Applications/MAMP/htdocs/amsb/includes/src/Mage_Core_functions.php' for inclusion (include_path='/Applications/MAMP/htdocs/amsb/includes/src:.:/Applications/MAMP/bin/php/php7.0.22/lib/php') in /Applications/MAMP/htdocs/amsb/app/Mage.php on line 36
Warning: include_once(/Applications/MAMP/htdocs/amsb/includes/src/Varien_Autoload.php): failed to open stream: No such file or directory in /Applications/MAMP/htdocs/amsb/app/Mage.php on line 37
Warning: include_once(): Failed opening '/Applications/MAMP/htdocs/amsb/includes/src/Varien_Autoload.php' for inclusion (include_path='/Applications/MAMP/htdocs/amsb/includes/src:.:/Applications/MAMP/bin/php/php7.0.22/lib/php') in /Applications/MAMP/htdocs/amsb/app/Mage.php on line 37
Fatal error: Uncaught Error: Class 'Varien_Autoload' not found in /Applications/MAMP/htdocs/amsb/app/Mage.php:54 Stack trace: #0 /Applications/MAMP/htdocs/amsb/index.php(65): require_once() #1 {main} thrown in /Applications/MAMP/htdocs/amsb/app/Mage.php on line 54
I have already cleared the cache and changed the links in the database web / secure / base_url and web / unsecure / base_url.
Can anyone help me?
As I can see from the error message you are using PHP 7 in your MAMP installation. Since PHP 7 is not officially supported by magento v1.9.x you should switch the PHP version in the MAMP settings to 5.x and everything should work.
Try to install Inchoo PHP7 compatibility extension:
https://github.com/Inchoo/Inchoo_PHP7

Attempting to "importDump.php" in mediawiki on bitnami instance on Google Cloud, getting error "failed to open stream..."

Followed the 2x options for commands at: https://www.mediawiki.org/wiki/Manual:Importing_XML_dumps#Using_importDump.php,_if_you_have_shell_access
In both instances, getting a 'failed to open stream' error.
I have chmod 777 for folder and file. (Thinking it may be permission error)
I have moved the file to import right into the maintenance folder (some postings suggesting PHP needs to be able to find the file, so think putting it there will help)...
on command:
"root#bitnami-mediawiki-___:/opt/bitnami/apps/mediawiki/htdocs/maintenance# php importDump.php --co
nf ../LocalSettings.php /FILENAME.xml"
I see error:
"PHP Warning: fopen(/FILENAME.xml): failed to open stream: No such file or directory in /opt/bitnam
i/apps/mediawiki/htdocs/maintenance/importDump.php on line 267
PHP Warning: feof() expects parameter 1 to be resource, boolean given in /opt/bitnami/apps/mediawiki/
htdocs/includes/import/ImportStreamSource.php on line 41
PHP Warning: fread() expects parameter 1 to be resource, boolean given in /opt/bitnami/apps/mediawiki
/htdocs/includes/import/ImportStreamSource.php on line 48
PHP Warning: feof() expects parameter 1 to be resource, boolean given in /opt/bitnami/apps/mediawiki/
htdocs/includes/import/ImportStreamSource.php on line 41
PHP Warning: XMLReader::read(): uploadsource://9115d0bbe5ae974e1fe2d411e035aeaa:1: parser error : Ext
ra content at the end of the document in /opt/bitnami/apps/mediawiki/htdocs/includes/import/WikiImport
er.php on line 551
PHP Warning: XMLReader::read(): in /opt/bitnami/apps/mediawiki/htdocs/includes/import/WikiImporter.p
hp on line 551
PHP Warning: XMLReader::read(): ^ in /opt/bitnami/apps/mediawiki/htdocs/includes/import/WikiImporter.
php on line 551
Set $wgShowExceptionDetails = true; in LocalSettings.php to show detailed debugging information."
I'm not clear what the error means and how to grant access to the file... Newb to BASH and servers. Any help would be greatly appreciated!
It looks to me that the path of the FILENAME.xml file is wrong. Note that you have a / at the beginning of FILENAME.xml, so it will look at the root of the filesystem. If the file is in the same folder, then use ./FILENAME.xml

How to Implement react-native-maps in Android

hi I've been using the React-Native-Maps library from https://github.com/lelandrichardson/react-native-maps/blob/master/docs/installation.md with a real android divice and i followed the installation but when i start to use CMD and write 'react-native run-andorid', i got error this msg.
:app:dexDebug
Unknown source file : UNEXPECTED TOP-LEVEL EXCEPTION:
Unknown source file : com.android.dex.DexException: Multiple dex files define Landroid/support/v7/appcompat/R$anim;
Unknown source file : at com.android.dx.merge.DexMerger.readSortableTypes(DexMerger.java:579)
Unknown source file : at com.android.dx.merge.DexMerger.getSortedTypes(DexMerger.java:535)
Unknown source file : at com.android.dx.merge.DexMerger.mergeClassDefs(DexMerger.java:517)
Unknown source file : at com.android.dx.merge.DexMerger.mergeDexes(DexMerger.java:164)
Unknown source file : at com.android.dx.merge.DexMerger.merge(DexMerger.java:188)
Unknown source file : at com.android.dx.command.dexer.Main.mergeLibraryDexBuffers(Main.java:504)
Unknown source file : at com.android.dx.command.dexer.Main.runMonoDex(Main.java:334)
Unknown source file : at com.android.dx.command.dexer.Main.run(Main.java:277)
Unknown source file : at com.android.dx.command.dexer.Main.main(Main.java:245)
Unknown source file : at com.android.dx.command.Main.main(Main.java:106)
:app:dexDebug FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:dexDebug'.
> com.android.ide.common.process.ProcessException:org.gradle.process.internal.ExecException:
Process 'command 'C:\Program Files\Java\jdk1.8.0_101\bin\java.exe'' finished with non-zero exit value 2
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
help me plz!
Most probably the problem is with gradle cache for Android. Try running the below command at the root of your project
cd android && ./gradlew clean

Warning: include_once(Varien/Autoload.php): failed to open stream

I still can't get to fix this error. I'm just trying to load a magento project in my local:
Warning: include_once(Varien/Autoload.php): failed to open stream: No such file or directory in /var/www/html/box/app/Mage.php on line 51
All file are in the right place.
Any ideas?? Thanks!