I have enable PHP Extension intl still showing error? - codeigniter-4

PHP Extension intl
I am running wamp and php version is 7.3.21 and i have also enabled extension intl but still error.
Error Details:
[CodeIgniter\Exceptions\FrameworkException]
The framework needs the following extension(s) installed and loaded: intl.
at SYSTEMPATH\CodeIgniter.php:219

Related

How to bundle a python server with pyinstaller for AppStore as 64bit only?

Context:
I am trying to put an electron app on the App Store. The app features a web frontend and a python backend. Nothing fancy so far.
The backend however features a separate server written in python. This server is a standalone application.
The electron app bundles the main app together with the python standalone server.
The problem:
When building the server as an executable I use pyinstaller on a python 3.5 development environment. Upon uploading to the AppStore I receive the following error:
1 package(s) were not uploaded because they had problems:
/var/folders/39/3v0phzy173s3qxkbxzvcpd5c0000gn/T/82AB662A-44C8-41E9-A213-8BF672F3DF10/1443777291.itmsp - Error Messages:
ERROR ITMS-90240: "Unsupported Architectures. Your executable contained the following disallowed architectures: '[i386 (in com.ShapeRobotics.FableMac.pkg/Payload/Fable.app/Contents/Resources/app/app/app/server/AppKit._AppKit.so, com.ShapeRobotics.FableMac.pkg/Payload/Fable.app/Contents/Resources/app/app/app/server/AppKit._inlines.so, com.ShapeRobotics.FableMac.pkg/Payload/Fable.app/Contents/Resources/app/app/app/server/CoreFoundation._CoreFoundation.so, com.ShapeRobotics.FableMac.pkg/Payload/Fable.app/Contents/Resources/app/app/app/server/CoreFoundation._inlines.so, com.ShapeRobotics.FableMac.pkg/Payload/Fable.app/Contents/Resources/app/app/app/server/Foundation._Foundation.so, com.ShapeRobotics.FableMac.pkg/Payload/Fable.app/Contents/Resources/app/app/app/server/Foundation._inlines.so, com.ShapeRobotics.FableMac.pkg/Payload/Fable.app/Contents/Resources/app/app/app/server/PIL._imaging.so, com.ShapeRobotics.FableMac.pkg/Payload/Fable.app/Contents/Resources/app/app/app/server/PIL._imagingtk.so, com.ShapeRobotics.FableMac.pkg/Payload/Fable.app/Contents/Resources/app/app/app/server/PIL._webp.so, com.ShapeRobotics.FableMac.pkg/Payload/Fable.app/Contents/Resources/app/app/app/server/libjpeg.9.dylib, com.ShapeRobotics.FableMac.pkg/Payload/Fable.app/Contents/Resources/app/app/app/server/libopenjp2.2.1.0.dylib, com.ShapeRobotics.FableMac.pkg/Payload/Fable.app/Contents/Resources/app/app/app/server/libtiff.5.dylib, com.ShapeRobotics.FableMac.pkg/Payload/Fable.app/Contents/Resources/app/app/app/server/libwebp.7.dylib, com.ShapeRobotics.FableMac.pkg/Payload/Fable.app/Contents/Resources/app/app/app/server/libwebpdemux.2.dylib, com.ShapeRobotics.FableMac.pkg/Payload/Fable.app/Contents/Resources/app/app/app/server/libwebpmux.3.dylib, com.ShapeRobotics.FableMac.pkg/Payload/Fable.app/Contents/Resources/app/app/app/server/libz.1.2.11.dylib, com.ShapeRobotics.FableMac.pkg/Payload/Fable.app/Contents/Resources/app/app/app/server/objc._objc.so)]'. New apps submitted to the Mac App Store must support 64-bit starting January 2018, and Mac app updates and existing apps must support 64-bit starting June 2018."
We tried building the server using this:
pyinstaller server.spec --distpath ../app/app --noconfirm
It didn't work.
Another incantation I use to bundle the python server trying to force 64bit is:
arch -64 python ~/anaconda3/envs/shape/bin/pyinstaller server.spec -s --osx-bundle-identifier com.ShapeRobotics.FableMac --distpath ../app/app --noconfirm"
Why I'm sure it's the server:
I was successful in signing the app and getting it uploaded to the AppStore w/o the server packed in.
After packing in the server the 'i386' architecture error popped up.
Consequently my efforts so far have been focused to eliminate any shred of 32bit code in the server.
I assume that in order to do this I must properly configure the .spec file used by pyInstaller.
Does this make sense?
Is there a way to configure the spec file to force exclusive 64bit on anything bundled inside?
Is there some clear cut way to make the AppStore upload not vomit the 'i386' error?
Thank you!

Can I tell if my chrome extension has been installed via inline install or the chrome store?

When my extension is installed, is there a way to know if it was installed via inline install or installed from the chrome extension store?
I've looked through the Chrome Platform Apis and don't see anything obvious.
Use chrome.management API:
For example:
chrome.management.getSelf(myInfo =>{console.log(myInfo.installType)})
According to the documentation, it will output:
admin: The extension was installed because of an administrative policy,
development: The extension was loaded unpacked in developer mode,
normal: The extension was installed normally via a .crx file,
sideload: The extension was installed by other software on the machine,
other: The extension was installed by other means.
Besides, you can check manifest's update_url entry.

SqlSrv driver isn't loading with IIS 10 & PHP 5.6

I've installed a fresh IIS 10 server on a fresh Windows 10 machine with PHP 5.6.31 VC11 x64 Non Thread Safe (can't use PHP7 just yet). PHP is now working well and phpinfo() is displaying everything correctly.
I just installed the PHP SQL driver but it isn't being loaded. It's not showing up in phpinfo() and when I try to use it in code I get the following PHP error:
PHP Fatal error: Uncaught exception 'PDOException' with message 'could not find driver' in test.php:3
Stack trace:
#0 test.php(3): PDO->__construct('sqlsrv:server=...', '', '')
To install the PHP SQL driver, I did the following:
Downloaded and installed the Microsoft ODBC Driver 11 for SQL Server (x64)
Downloaded and installed the Microsoft Driver for PHP for SQL Server (SQLSRV32.EXE)
Enabled the extensions in PHP manager (php_sqlsrv_56_nts.dll and php_sqlsrv_56_nts.dll)
Restarted the IIS server
[PHP_XDEBUG-2.5.5-5.6-VC11-NTS-X86_64]
extension=php_xdebug-2.5.5-5.6-vc11-nts-x86_64.dll
[PHP_PDO_ODBC]
extension=php_pdo_odbc.dll
[PHP_PDO_SQLSRV_56_NTS]
extension=php_sqlsrv_56_nts.dll
[PHP_SQLSRV_56_NTS]
extension=php_sqlsrv_56_nts.dll
It all looks correct to me and I've done this successfully on other machines before. I feel like I'm missing something simple.
A few other notes:
The PHP error log is empty.
I've tried loading all other dll files that I downloaded (such as the ones aimed at 5.5, 5.4 etc) but it doesn't change anything.
It's worth noting that I installed Xdebug just fine and it is showing up in phpinfo().
I have resolved this problem by using PHP for x86 and not x64. I'm guessing that the SQL drivers are not designed for x64 (although I couldn't see this anywhere).
As soon as I changed to PHP 5.6 VC11 x86 Non Thread Safe everything worked much better.
Note that you need Visual C++ Redistributable for Visual Studio 2012 x86 for this to work. If you already installed the x64 redistributable you will need to install the version that is designed for x86.
or use this library : php_pdo_sqlsrv_73_nts.dll

Bluemix essentials Eclipse Neon Enide.p2f NodeEclipse 1.0.1 / 1.0.2 Unhandled event loop HTTP Server Unknown code 499 404 compositeContent.xml

I'm trying to do IBM Bluemix essential course.
As per the course instructions, I installed Eclipse (I initially got latest Eclipse version Neon instead of Mars but tried both Mars and Neon as of now for installing NodeEclipse .17, 1.0.1 or 1.0.2 or Enide.p2f file using both File import and Eclipse marketplace for installing Enide.p2f Node eclipse plugin in Eclipse).
One of the instruction (after installing IBM Bluemix plugin for eclipse) says, I need to install "Enide.p2f Eclipse NodeJS plugin" https://marketplace.eclipse.org/content/enidep2f-eclipse-nodejs-ide
I tried Eclipse Marketplace to install this. Searched "node eclipse" and selected the top listing entry for "Nodeeclipse 1.0.2 Nodeeclipse Core & Node.js (nodeeclipse-1)" or even "Enide.p2f for Nodeeclipse 1.0.1" version and clicked installed.
A couple of times, if failed during the resolution process to list the plugin components and Eclipse error log showed that the update site / repository server was not available.
Another method was to install the .p2f file directly File > Import > Install > Install from a file and selected the downloaded .p2f file which I got from here: https://raw.github.com/Nodeclipse/eclipse-node-ide/master/ENodeIDE.p2f
or
http://marketplace.eclipse.org/content/enide-eclipse-nodejs-ide/click
Using the import > install via file method, I'm getting "Unhandled event loop exception" error message as per Eclipse Error logs and it didn't install anything.
Using the market place method, I'm getting the following error mesg (per the screen shot):
For Nodeeclipse 1.0.1
https://i.imgsafe.org/1b1bf4f0fb.jpg
https://i.imgsafe.org/1b1be1c00a.jpg
https://i.imgsafe.org/1b1bc75cfc.jpg
For Nodeeclipse 1.0.2.
https://i.imgsafe.org/1afbf9bf56.jpg
https://i.imgsafe.org/1afa90e4f1.jpg
https://i.imgsafe.org/1af372340c.jpg
Error message:
HTTP Server Unknown HTTP Response Code (499):http://nodeeclipse.org/updates/compositeContext.xml
HttpComponents connection error response code 499.
OR
it shows the Enide.p2f .17, 1.0.1 or 1.0.2 (Whichever you select from the list) to install the plugin:
The following solutions are not available: Nodeclipse 1.0.2
(id=markdown.editor.feature.feature.group,
org.nodeclipse.pluginslist.feature.feature.group,
gitaddon.feature.feature.group,
de.bastiankrol.startexplorer.feature.feature.group,
com.eclipsesource.jshint.feature.feature.group,
org.nodeclipse.feature.group,
org.nodeclipse.enide.editors.jade.feature.feature.group,
org.chromium.sdk.feature.group, net.mihai-nita.ansicon.feature.group,
org.chromium.debug.feature.group,
pm.eclipse.editbox.feature.feature.group,
site=http://www.nodeclipse.org/updates/)
With Eclipse Mars, I'm getting the same behavior. More info on this can be found here as well: https://www.ibm.com/developerworks/community/forums/html/topic?id=76a96fa4-1086-41a7-94a6-4326f79dfacb&ps=#repliesPg=0
Did anybody else face this similar issue and what should i do to resolve it.
"https://marketplace.eclipse.org/content/enidep2f-eclipse-nodejs-ide"looks like an update site so I tried the Help->Install New Software... I then entered the address as a new update site but it failed as well...

IonCube Loader caused named service to fail

I have a VPS (with OVH.com) running Vesta cp. I recently installed IonCube Loader (to run boxbilling) with success.
I believe it was because of this that my named services now fail to restart, however I cannot be sure. But ever since I installed IonCube Loader they have been functioning incorrectly.
The error I get is: zone [domain].com/IN: loading from master file /home/admin/conf/dns/[domain].db failed: file not found.
I get this with all of my domains I have currently registered with Vesta. Just in case you need it, I run the nameservers through cloudflare before they are forwarded to my VPS.
BoxBilling version 4+ does not require IonCube loader plugin.
You can download latest BoxBilling release from github
Update from 3.6 to 4 can be tricky.

Resources