change layout in different module on zf3 - layout

while i change layout in different mudule on zf3, there is a error caused.
Fatal error: Uncaught Zend\Router\Exception\RuntimeException: Route with name "" not found in /mnt/shared/zf3.local/vendor/zendframework/zend-router/src/Http/TreeRouteStack.php:354 Stack trace: #0 /mnt/shared/zf3.local/vendor/zendframework/zend-view/src/Helper/Url.php(106): Zend\Router\Http\TreeRouteStack->assemble(Array, Array) #1 [internal function]: Zend\View\Helper\Url->__invoke('/passport') #2 /mnt/shared/zf3.local/vendor/zendframework/zend-view/src/Renderer/PhpRenderer.php(397): call_user_func_array(Object(Zend\View\Helper\Url), Array) #3 /mnt/shared/zf3.local/module/Passport/view/layout/layout.phtml(42): Zend\View\Renderer\PhpRenderer->__call('url', Array) #4 /mnt/shared/zf3.local/vendor/zendframework/zend-view/src/Renderer/PhpRenderer.php(505): include('/mnt/shared/zf3...') #5 /mnt/shared/zf3.local/vendor/zendframework/zend-view/src/View.php(207): Zend\View\Renderer\PhpRenderer->render() #6 /mnt/shared/zf3.local/vendor/zendframework/zend-mvc/src/View/Http/DefaultRenderingStrategy.php(105): Zend\View\View->render(O in /mnt/shared/zf3.local/vendor/zendframework/zend-router/src/Http/TreeRouteStack.php on line 354
i have no idea to solve this problem.
i used the tutorial :
How to set different layouts for different modules in Zend Framework 3

You can check implementation or just use this module
Change layout per module

Related

snap install of Viber on Ubuntu 20.04 Focal Fossa Linux produces permission denied error

I have tried two different Viber packages available through snap, viber-unofficial.viber and viber-mtd.viber. Both packages produce the exact same error about WebEngine resources not found
sh: 1: xdg-mime: not found
Qt WebEngine ICU data not found at /snap/viber-unofficial/37/opt/viber/resources. Trying parent directory...
Qt WebEngine resources not found at /snap/viber-unofficial/37/opt/viber/resources. Trying parent directory...
[557326:557326:1013/081811.896484:FATAL:credentials.cc(155)] Check failed: NamespaceUtils::DenySetgroups(). : Permission denied
#0 0x7f5a59d4d11e base::debug::StackTrace::StackTrace()
#1 0x7f5a59d5dbde logging::LogMessage::~LogMessage()
#2 0x7f5a59d5de99 logging::ErrnoLogMessage::~ErrnoLogMessage()
#3 0x7f5a5aa4ff7c sandbox::(anonymous namespace)::SetGidAndUidMaps()
#4 0x7f5a5aa505d5 sandbox::Credentials::CanCreateProcessInNewUserNS()
#5 0x7f5a599c0de5 content::ZygoteHostImpl::Init()
#6 0x7f5a59673314 content::BrowserMainLoop::EarlyInitialization()
#7 0x7f5a59677190 content::BrowserMainRunnerImpl::Initialize()
#8 0x7f5a5947cd19 QtWebEngineCore::WebEngineContext::WebEngineContext()
#9 0x7f5a5947e135 QtWebEngineCore::WebEngineContext::current()
#10 0x7f5a5941b931 QtWebEngineCore::BrowserContextAdapter::defaultContext()
#11 0x7f5a6258c618 QQuickWebEngineProfile::defaultProfile()
#12 0x0000006ac8bf ApplicationPrivate::preRunningInitialization()
#13 0x0000006a6504 ViberApplication::start()
#14 0x00000067e25b ViberMain()
#15 0x7f5a56403840 __libc_start_main
#16 0x0000004d7047 <unknown>
Qt WebEngine ICU data not found at /snap/viber-unofficial/37/opt/viber/resources. Trying parent directory...
Qt WebEngine resources not found at /snap/viber-unofficial/37/opt/viber/resources. Trying parent directory...
I have looked at the permissions of the various directories and I don't see anything obvious other than everything in the snap package is all owned by root/root and the regular user trying to actually run the viber app does not have any write permission into these directories.

exception 'Drush\User\UserListException' with message Unable to find a matching user for admin

I am using the drupal7 I have been executed this command in git bash -./prepare_db_for_dev.example.sh
In below, it give error.
Reset admin password to "admin".
Drush\User\UserListException: Unable to find a matching user for admin.
In C:\Users\patil.vaish\AppData\Roaming\Composer\vendor\drush\drush\lib\Drush\User\UserList.php:114 [error]
Stack trace:
#0 C:\Users\patil.vaish\AppData\Roaming\Composer\vendor\drush\drush\lib\Drush\User\UserList.php(15): Drush\User\UserList::getFromParameters(Array)
#1 C:\Users\patil.vaish\AppData\Roaming\Composer\vendor\drush\drush\commands\user\user.drush.inc(355): Drush\User\UserList->__construct('admin')
#2 C:\Users\patil.vaish\AppData\Roaming\Composer\vendor\drush\drush\includes\command.inc(422): drush_user_password('admin')
#3 C:\Users\patil.vaish\AppData\Roaming\Composer\vendor\drush\drush\includes\command.inc(231): _drush_invoke_hooks(Array, Array)
#4 C:\Users\patil.vaish\AppData\Roaming\Composer\vendor\drush\drush\includes\command.inc(199): drush_command('admin')
#5 C:\Users\patil.vaish\AppData\Roaming\Composer\vendor\drush\drush\lib\Drush\Boot\BaseBoot.php(67): drush_dispatch(Array)
#6 C:\Users\patil.vaish\AppData\Roaming\Composer\vendor\drush\drush\includes\preflight.inc(66): Drush\Boot\BaseBoot->bootstrap_and_dispatch()
#7 C:\Users\patil.vaish\AppData\Roaming\Composer\vendor\drush\drush\drush.php(12): drush_main()
#8 {main}
How to solve the error?
This issue suggests:
If admin username in database is different than configuration ADMIN_USER [you get this error]
Solution for drupal 7:
self.run('sql-query --db-prefix "update {users} set name=\'%s\' where uid=1"' % self.config.DRUPAL['default']['ADMIN_USER'])
Solution for drupal 8:
self.run('sql-query --db-prefix "update {users_field_data} set name=\'%s\' where uid=1"' % self.config.DRUPAL['default']['ADMIN_USER'])

Android Studio Flutter debugging FileSystemException

I am developing a Flutter application in Android Studio. When I place a breakpoint somewhere in the code it gets hit and execution stops, but after half a second the application exits with the following error:
Unhandled exception:
FileSystemException: Cannot open file, path = 'build\app.dill.track.dill.incremental.dill' (OS Error: The requested operation cannot be performed on a file with a user-mapped section open.
, errno = 1224)
#0 _File.open.<anonymous closure> (dart:io/file_impl.dart:364:9)
#1 _RootZone.runUnary (dart:async/zone.dart:1379:54)
#2 _FutureListener.handleValue (dart:async/future_impl.dart:126:18)
#3 Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:639:45)
#4 Future._propagateToListeners (dart:async/future_impl.dart:668:32)
#5 Future._completeWithValue (dart:async/future_impl.dart:483:5)
#6 Future._asyncComplete.<anonymous closure> (dart:async/future_impl.dart:513:7)
#7 _microtaskLoop (dart:async/schedule_microtask.dart:41:21)
#8 _startMicrotaskLoop (dart:async/schedule_microtask.dart:50:5)
#9 _runPendingImmediateCallback (dart:isolate-patch/isolate_patch.dart:115:13)
#10 _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:172:5)
Unhandled exception:
SocketException: Write failed (OS Error: The pipe is being closed.
, errno = 232), port = 0
#0 _rootHandleUncaughtError.<anonymous closure> (dart:async/zone.dart:1112:29)
#1 _microtaskLoop (dart:async/schedule_microtask.dart:41:21)
#2 _startMicrotaskLoop (dart:async/schedule_microtask.dart:50:5)
#3 _runPendingImmediateCallback (dart:isolate-patch/isolate_patch.dart:115:13)
#4 _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:172:5)
If I run application without debugging it works normally. Has anyone had similar error and solved it successfully?
The breakpoint seems to work as expected. What happens here looks like a function in the app expects a value that wasn't provided after the breakpoint. Debug the app by checking if there's any function expecting a value that's blocked by the breakpoint.

Fatal error: Uncaught Cassandra\Exception\RuntimeException: Keyspace 'opspot' does not exist in

Though I am using the docker facing this issue. The same things are working fine on other systems
Fatal error: Uncaught Cassandra\Exception\RuntimeException: Keyspace 'opspot' does not exist in /var/www/Opspot/engine/Core/Data/Cassandra/Client.php:32 Stack trace: #0 /var/www/Opspot/engine/Core/Data/Cassandra/Client.php(32): Cassandra\DefaultCluster->connect('opspot') #1 /var/www/Opspot/engine/Core/Data/DataProvider.php(38): Opspot\Core\Data\Cassandra\Client->__construct() #2 [internal function]: Opspot\Core\Data\DataProvider->Opspot\Core\Data{closure}(Object(Opspot\Core\Di\Di)) #3 /var/www/Opspot/engine/Core/Di/Di.php(25): call_user_func(Object(Closure), Object(Opspot\Core\Di\Di)) #4 /var/www/Opspot/engine/Core/Blogs/Legacy/Repository.php(43): Opspot\Core\Di\Di->get('Database\Cassan...') #5 /var/www/Opspot/engine/Core/Blogs/Repository.php(29): Opspot\Core\Blogs\Legacy\Repository->__construct() #6 /var/www/Opspot/engine/Core/Blogs/Manager.php(46): Opspot\Core\Blogs\Repository->__construct() #7 /var/www/Opspot/engine/Core/Blogs/Events.php(23): Opspot\Core\Blogs\Manager->__construct() #8 /var/www/Opspot/engine/Core/Eve in /var/www/Opspot/engine/Core/Data/Cassandra/Client.php on line 32
Warning: Cannot modify header information - headers already sent in /var/www/Opspot/engine/lib/elgglib.php on line 985
An error occurred.
Sorry, the page you are looking for is currently unavailable.
Please try again later.

Rikulo-Stream crashes daily with -"SocketException: OS Error: Broken pipe, errno = 32"

I have a simple web app (http://www.webdungeon2.org) (6 pages) running on the latest (April 2014) version of Rikulo Stream (Ubuntu 13.04), Dart 1.2 and I get the following error when browsing (i think):
Uncaught Error: SocketException: OS Error: Broken pipe, errno = 32, address = 0.0.0.0, port = 80
Unhandled exception:
SocketException: OS Error: Broken pipe, errno = 32, address = 0.0.0.0, port = 80
#0 _rootHandleUncaughtError.<anonymous closure>.<anonymous closure> (dart:async/zone.dart:700)
#1 _asyncRunCallbackLoop (dart:async/schedule_microtask.dart:23)
#2 _asyncRunCallback (dart:async/schedule_microtask.dart:32)
#3 _asyncRunCallback (dart:async/schedule_microtask.dart:36)
#4 _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:119)
The server crashes and then I restart it. This has happened 3 times in 3 days.
I also get these (which do NOT crash the site):
2014-04-09 15:07:33.394:stream:5
SHOUT: [/MY_WEB_PAGE] HttpException: Trying to set 'Transfer-Encoding: Chunked' on HTTP 1.0 headers
#0 _HttpHeaders.chunkedTransferEncoding= (http_headers.dart:142)
#1 Rsp.init (package:stream/src/rsp_util.dart:25:15)
#2 demo (file:///mytool/webdungeon/web/webapp/demo.rsp.dart:10:16)
#3 _StreamServer._handle (package:stream/src/server_impl.dart:92:39)
#4 _StreamServer._startChannel.<anonymous closure>.<anonymous closure> (package:stream/src/server_impl.dart:310:16)
#5 _rootRunUnary (dart:async/zone.dart:717)
#6 _ZoneDelegate.runUnary (dart:async/zone.dart:449)
#7 _CustomizedZone.runUnary (dart:async/zone.dart:654)
#8 _BaseZone.runUnaryGuarded (dart:async/zone.dart:569)
......
......
Any suggestions?
UPDATE - 12 April
Problem still occurs on Dart 1.3, but error code is different
Uncaught Error: SocketException: OS Error: Connection reset by peer, errno = 104, address = 0.0.0.0, port = 80
Unhandled exception:
SocketException: OS Error: Connection reset by peer, errno = 104, address = 0.0.0.0, port = 80
#0 _rootHandleUncaughtError.<anonymous closure>.<anonymous closure> (dart:async/zone.dart:713)
#1 _asyncRunCallbackLoop (dart:async/schedule_microtask.dart:23)
#2 _asyncRunCallback (dart:async/schedule_microtask.dart:32)
#3 _asyncRunCallback (dart:async/schedule_microtask.dart:36)
#4 _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:119)
Serge
UPDATE - 28 April
The problem seems to have been resolved in Dart SDK version 1.3.3. My server has been running for 2 days without a hitch.
Serge
Did you upgrade to Dart 1.3? The problem shall be caused by Issue 17468, and it was fixed in Dart 1.3.
For the issue of HttpException...Chunked, I don't have the experience of it. You have to check Dart API, or make a simple case to reproduce the issue.
The fix for issue 17468 contained a bug. Streams belongs to the zone where they are listened to, not created. I've fixed this mistake with r35071.
While this will not fix the 1.3 binary, it should be possible to check out the 1.3 source and apply this patch.

Resources