Issues with updating iron-router to work with blaze - iron-router

I have just updated meteor to blaze and followed the instructions to update iron-router to 0.7.0.
I'm getting this error:
Uncaught TypeError: Cannot call method 'path' of undefined router.js:160
Any ideas on what may have gone wrong?

I think this was related to the event-hooks package I was using. Removed that and all seems fine.

Related

Laravel 7 Fatal error: Uncaught RuntimeException: A facade root has not been set

I have looked at several answers suggested to a similar issue but nothing worked in my case.
FYI, this is my first project in Laravel 7, working fine on my Mac.
I have deployed the project on my server following this article.
When running the project on the web, I get the following error :
Fatal error: Uncaught RuntimeException: A facade root has not been set. in /usr/www/users/utopiqwvpw/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php:258
Stack trace: #0 /usr/www/users/utopiqwvpw/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php(425): Illuminate\Support\Facades\Facade::__callStatic('replaceNamespac...', Array) #1 /usr/www/users/utopiqwvpw/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php(402): Illuminate\Foundation\Exceptions\Handler->registerErrorViewPaths() #2 /usr/www/users/utopiqwvpw/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php(313): Illuminate\Foundation\Exceptions\Handler->renderHttpException(Object(Symfony\Component\HttpKernel\Exception\HttpException)) #3 /usr/www/users/utopiqwvpw/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php(210): Illuminate\Foundation\Exceptions\Handler->prepareResponse(Object(Illuminate\Http\Request), Object(Symfony\Component\HttpKernel\Exception\HttpExcepti in /usr/www/users/utopiqwvpw/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php on line 258
How can I fix it?
I finally found a solution that worked in my case.
delete the folder vendor
run composer update
run php artisan config:cache
run php artisan config:clear
Home page now displays but the routes do not work...
If the solution from #Paul Godard doesn't work, it could be a psr/log issue as mine.
My composer update added psr/log v2.0.0, which requires php8. However, my application is on php7.4
That gave me the exact error output like in the description
Fatal error: Uncaught RuntimeException: A facade root has not been set. in /usr/www/users/utopiqwvpw/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php:258
My solution was to specify in composer.json that I'm using "psr/log": "^1.1.0"
Then run composer update
I got that error when my config folder was deleted by mistake. So after recovering the config folder. My project worked fine. You have to check if any folder is removed on which project is depending. Recover or copy it. It will work fine then.

ag-grid 'IToolPanel' is declared but its value is never read

after updating to version 19 and ag-grid-community package. I'm getting following error while running ng serve:
ERROR in node_modules/ag-grid-angular/src/interfaces.ts(20,5): error TS6133: 'IToolPanel' is declared but its value is never
read.
I couldn't find any other stackoverflow question / github issue created about it.
This issue happens when you have noUnusedLocals in your tsconfig enabled.
I've reported this to ag-grid team again and they recognized that as a bug. Fix should be released in v20 version by the end of 2018.

ZF3 - Class 'Zend\Json\Json' not found

In zf3 while trying to use JsonModel I get error
Fatal error: Uncaught Error: Class 'Zend\Json\Json' not found in
\vendor\zendframework\zend-view\src\Model\JsonModel.php:
You probably didn't include zendframework/zend-json. You can do this by running this in your terminal:
$ composer require zendframework/zend-json
zend-json, as many other components, is a suggested package when zend-view is installed. But since there are many more suggested packages you might have missed that message.

How can I update the version to fix this error?: 'Realm version is higher than the current version provided to `setSchemaVersion:withMigrationBlock:`'

I am getting the following error:
Terminating app due to uncaught exception 'RLMException', reason: 'Realm version is higher than the current version provided to `setSchemaVersion:withMigrationBlock:`'
How do I update the version provided to setSchemaVersion:withMigrationBlock?
You need to call:
[RLMRealm setSchemaVersion:newVersion withMigrationBlock:^{
// add migration code here
}];
before accessing any Realms.
If you have only made changes to your schema locally (ie you haven't yet shipped your app) you can instead simply delete your Realm files or the entire app from the simulator/device to reset everything.
The error message when hitting this error has been changed here:
https://github.com/realm/realm-cocoa/pull/1167

Struggling with Facebook.php

I have downloaded the latest version of facebook.php from here:
https://github.com/facebook/php-sdk/
...and have uploaded facebook.php and base_facebook.php and I have my correct api and api secret.
I have followed the exact code from phpfour here:
http://phpfour.com/blog/2010/05/quick-start-on-new-facebook-php-sdk-iframe-based/
And yet I am still gettng this error:
Fatal error: Call to undefined method Facebook::getSession()
What am I doing wrong?
Any ideas?
TheBounder.
As stated in this post (look answer number 6) getSession no longer exists in the API and that is the reason why you are getting the error.