Module 'phalcon' already loaded in Unknown on line 0 - configuration

I've installed Phalcon and Phalcon devtool in php7.0, when I type 'Phalcon help' I got a warning message:
PHP Warning: Module 'phalcon' already loaded in Unknown on line 0
I've tried to add 'extension = phalcon.so' in the php.ini file, but I get an error message:
PHP Warning: Module 'phalcon' already loaded in Unknown on line 0
PHP Warning: Module 'phalcon' already loaded in Unknown on line 0
PHP Fatal error: Class 'jsonserializable' not found in Unknown on line 0
Segmentation fault (core dumped)
I would be appreciate it, if you help me

Remove not needed extension = phalcon.so. Load phalcon AFTER json.so

If you use Ubuntu 18.04, check in /etc/php/7.0/apache2/conf.d/

Related

DevToolsActivePort file doesn't exist

I am trying to use Python in automating my work which requires to open a web page and fill login details, but I am getting the following error:
WebDriverException: unknown error: DevToolsActivePort file doesn't exist
Code:
Error:
Then chrome crashes with the error:
What to do now?
Please, try adding the next in your code:
os.environ['DISPLAY'] = ':0'
os.environ['XAUTHORITY']='/run/user/1000/gdm/Xauthority'
Remember that you must download the version of WebDriver in this page of Google according to the installed in your pc.

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

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

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

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.

Warnings after recompiling php (Unable to load dynamic library & Unable to initialize module)

After recompiling php I get the following errors when I use php cli:
PHP Warning: PHP Startup: imap: Unable to initialize module
Module compiled with module API=20050922
PHP compiled with module API=20090626
These options need to match
in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/modules/ldap.so' - /usr/lib/php/modules/ldap.so: undefined symbol: third_arg_force_ref in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/modules/mbstring.so' - /usr/lib/php/modules/mbstring.so: undefined symbol: second_arg_force_ref in Unknown on line 0
PHP Warning: PHP Startup: mysql: Unable to initialize module
Module compiled with module API=20050922
PHP compiled with module API=20090626
These options need to match
in Unknown on line 0
PHP Warning: PHP Startup: mysqli: Unable to initialize module
Module compiled with module API=20050922
PHP compiled with module API=20090626
These options need to match
in Unknown on line 0
PHP Warning: PHP Startup: PDO: Unable to initialize module
Module compiled with module API=20050922
PHP compiled with module API=20090626
These options need to match
in Unknown on line 0
PHP Warning: PHP Startup: pdo_mysql: Unable to initialize module
Module compiled with module API=20050922
PHP compiled with module API=20090626
These options need to match
in Unknown on line 0
PHP Warning: PHP Startup: pdo_sqlite: Unable to initialize module
Module compiled with module API=20050922
PHP compiled with module API=20090626
These options need to match
in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/modules/mapi.so' - /usr/lib/php/modules/mapi.so: undefined symbol: fourth_arg_force_ref in Unknown on line 0
After some googling I found that the modules have to be updated, I tried:
pecl install <modulename>
and
pecl upgrade <modulename>
and
pear install -f pecl/<modulename>
but I got errors like:
configure: error: mysql_query missing!?
ERROR: `/tmp/pear/temp/PDO_MYSQL/configure' failed
Or errors like:
make: *** [sqlite_driver.lo]
Error 1 ERROR: `make' failed
Any idea how to update the modules?
If there was anything that I should have done before compiling please explain to me because I'm going to recompile php on other servers and I want to know the solution before I face the same problem again.
Thanks in advance.
PS: My OS is Linux (Redhat)
It looks like the problem you're having is that your php and module APIs are different, e.g.:
Module compiled with module API=20050922 <----- this
PHP compiled with module API=20090626 <----- and this should match.
I usually install extensions by compiling them from source, which seems to work a lot more reliably.
You'll need to use phpize
As an example, here's how I'd install APC:
wget http://pecl.php.net/get/APC-3.1.9.tgz
tar -xvzf APC-3.1.9.tgz
cd APC-3.1.9
phpize
./configure
make
sudo make install
This should work for all PECL extensions. Now, you also have other errors.. I would suggest going through your php.ini and disabling all extensions at first - then enable and fix one by one.
There's also an error about mysqli. If you're using php >= 5.0.0, then you'll need to re-compile php (with ./configure [....] --with-mysqli), otherwise the procedure above should work for it as well.
HTH