Fatal error during migration after fresh Phundament installation - yii

While installing Phundament first time i was asked to apply 12 migrations
Total 12 new migrations to be applied:
rights: m110402_195158_init
p3widgets: m110518_000000_init
p3media: m110719_000000_init
user: m110805_153437_installYiiUser
user: m110810_162301_userTimestampFix
rights: m111013_235001_p3items
p3widgets: m111028_000000_meta
p3widgets: m120309_021733_translation
p3pages: m120312_182502_init
p3pages: m121011_160518_fk_delete_cascade
p3media: m121011_170518_fk_delete_cascade
p3widgets: m121011_180518_fk_delete_cascade
I answered "yes" and earned this error:
Fatal error: Call to undefined function mb_strpos() in {myPathToP3}vendor/yiiext/migrate-command/EMigrateCommand.php on line 456
What does this mean for the state of my installation?

The migration did not run successfully. You should install/enable the PHP mbstring extension and then try to run the migration again.

Related

Missing config.json stencil CLI

I'm trying to do some work for a client, but cannot get their bigcommerce site running locally. I have installed stencil CLI (v3.1.1) and downloaded the theme from the bigcommerce dashboard (all files). from the root of the theme i ran "stencil init", then "npm i" and "stencil start".
when i run stencil start, it throws an error saying there's no config.json file.
this is the error i get
How do i generate the config.json file?
The only config file I see is config.stencil.json.
I have also tried running "stencil pull" in hopes that it would pull the config, but it throws another error: "not ok -- Error: Could not fetch active theme details for channel 1: Request failed with status code 404"
Stencil-cli version:
3.1.1
Node version:
12
NPM version:
6.14.15
OS:
mac big sur
Stencil 3.1.1 has been deprecated for some time now. I believe the current version is 3.8. As of 4 months ago, anything below 3.5 will not run (https://developer.bigcommerce.com/changelog#publications/required-stencil-cli-version-set-to-3-5-0).
If you don't have a config.json file in your project, you will need to get the one from the client's store. Try downloading their theme again. It should come through.
Edit: It is possibly the case that you need a new API token. Try making a new one for your store. Make sure the following scopes are set:
Themes: Modify
Settings & Information: Modify
Sites & Routes: Read-only (or Modify)
Documentation for creating a new API account: https://support.bigcommerce.com/s/article/Store-API-Accounts#creating

Syncing with Swift Package Manager in AppCode fails: attempt to write a readonly database

With AppCode 2020.3, "syncing" my XCode projects fails. I only got the following error message, which says "attempt to write a readonly database":
Package manifest execution failed with exit code 1:
/Users/username/Library/Caches/JetBrains/AppCode2020.3/DerivedData/APPNAME-dipqgziskjyufxhbqzlvojhifwse/SourcePackages/checkouts/Leanplum-iOS-SDK: error: error: accessing build database "/Users/username/Library/Caches/JetBrains/AppCode2020.3/DerivedData/APPNAME-dipqgziskjyufxhbqzlvojhifwse/SourcePackages/checkouts/Leanplum-iOS-SDK/.build/manifest.db": attempt to write a readonly database
I was able to fix this by changing enabling adding write permissions:
chmod 774 /Users/username/Library/Caches/JetBrains/AppCode2020.3/DerivedData/APPNAME-dipqgziskjyufxhbqzlvojhifwse/SourcePackages/checkouts/Leanplum-iOS-SDK/.build/manifest.db
More details: I needed to add permissions to the users in the files "group" (staff).
I have posted this as a bug report on youtrack, as this does not happen in XCode.

Gatsby-aws user auth starter will not run, unhandled rejection

I cloned the gatsby-starter-auth-aws-amplify (found at https://www.gatsbyjs.org/starters/seabeams/gatsby-starter-auth-aws-amplify/), initialized the repo and installed all dependencies and continually get this error:
UNHANDLED REJECTION Cannot create as TypeComposer the following value:
Date.
Error: Cannot create as TypeComposer the following value: Date.
- SchemaComposer.js:365 SchemaComposer.createTempTC
[gatsby-starter-auth-aws-amplify]/[graphql-compose]/lib/SchemaComposer.js:365: 11
- SchemaComposer.js:563 SchemaComposer.addAsComposer
[gatsby-starter-auth-aws-amplify]/[graphql-compose]/lib/SchemaComposer.js:563: 27
- schema-composer.js:35 createSchemaComposer
[gatsby-starter-auth-aws-amplify]/[gatsby]/dist/schema/schema-composer.js:35:1 8
- index.js:135 Object.build
[gatsby-starter-auth-aws-amplify]/[gatsby]/dist/schema/index.js:135:26
- index.js:418 async module.exports
[gatsby-starter-auth-aws-amplify]/[gatsby]/dist/bootstrap/index.js:418:3
- develop.js:429 async module.exports
[gatsby-starter-auth-aws-amplify]/[gatsby]/dist/commands/develop.js:429:7
Has anyone been through this? I found several instances of the error on github but the solutions that people found were too case-specific to apply to me.
I tried using YARN instead of NPM and it worked. Make sure you delete the node_modules and package.lock folder and file first.

selenium2 for composer install facing with phalcon/incubator error in PHP

I am using window command prompt,When I update composer facing with below error
C:\xampp\htdocs\myproject>composer update
Warning: This development build of composer is over 60 days old. It is recommend
ed to update it by running "C:\ProgramData\ComposerSetup\bin\composer.phar self-
update" to get the latest version.
Loading composer repositories with package information
Updating dependencies (including require-dev)
Failed to decode response: zlib_decode(): data error
Retrying with degraded mode, check https://getcomposer.org/doc/articles/troubles
hooting.md#degraded-mode for more info
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Installation request for phalcon/incubator dev-master -> satisfiable by ph
alcon/incubator[dev-master].
- phalcon/incubator dev-master requires ext-phalcon >=2.0.4 -> the requested
PHP extension phalcon is missing from your system.
The last line should give you a clue: You haven't yet installed PhalconPHP on your system, which is required by the Incubator package.
Also, run a composer self-update as recommended.

How to deploy fuelphp website to server

I'm new to fuelPHP, I developed a simple application and when I uploaded the files to my web server I got those errors :
Notice: Use of undefined constant __DIR__ - assumed '__DIR__' in /home1/tdfdf/public_html/site/site/public/index.php on line 22
Fatal error: require() [function.require]: Failed opening required '/bootstrap.php' (include_path='.:/usr/lib64/php:/usr/lib/php:/usr/share/pear') in /home1/tdfdf/public_html/site/site/public/index.php on line 44
I probably miss some configurations here. I also want to remove this "/public" from the url
Can any one help ?
I found the solution. The DIR is not defined for older versions of PHP . I changed my server settings to run on PHP 5.3 and it worked like magic.
Thanks.