yawik / jobsbymail Goto Github PK
View Code? Open in Web Editor NEWsubscribe to latest jobs by email
License: MIT License
subscribe to latest jobs by email
License: MIT License
It's probably because the ZF3 upgrade. The command gives an exception
@fedys can you take a look?
root@yawik:/var/www/yawik.org# bin/console jobsbymail cleanup
======================================================================
The application has thrown an exception!
======================================================================
Zend\ServiceManager\Exception\ServiceNotFoundException
Unable to resolve service "ErrorLogger" to a factory; are you certain you provided it during configuration?
----------------------------------------------------------------------
/var/www/yawik.org/vendor/zendframework/zend-servicemanager/src/ServiceManager.php:681
#0 /var/www/yawik.org/vendor/zendframework/zend-servicemanager/src/ServiceManager.php(757): Zend\ServiceManager\ServiceManager->getFactory('ErrorLogger')
#1 /var/www/yawik.org/vendor/zendframework/zend-servicemanager/src/ServiceManager.php(200): Zend\ServiceManager\ServiceManager->doCreate('ErrorLogger')
#2 /var/www/yawik.org/module/JobsByMail/src/JobsByMail/Factory/Service/MailerFactory.php(32): Zend\ServiceManager\ServiceManager->get('ErrorLogger')
#3 /var/www/yawik.org/vendor/zendframework/zend-servicemanager/src/ServiceManager.php(758): JobsByMail\Factory\Service\MailerFactory->__invoke(Object(Zend\ServiceManager\ServiceManager), 'JobsByMail\\Serv...', NULL)
#4 /var/www/yawik.org/vendor/zendframework/zend-servicemanager/src/ServiceManager.php(200): Zend\ServiceManager\ServiceManager->doCreate('JobsByMail\\Serv...')
#5 /var/www/yawik.org/module/JobsByMail/src/JobsByMail/Factory/Controller/ConsoleControllerFactory.php(30): Zend\ServiceManager\ServiceManager->get('JobsByMail\\Serv...')
#6 /var/www/yawik.org/vendor/zendframework/zend-servicemanager/src/ServiceManager.php(758): JobsByMail\Factory\Controller\ConsoleControllerFactory->__invoke(Object(Zend\ServiceManager\ServiceManager), 'JobsByMail/Cons...', NULL)
#7 /var/www/yawik.org/vendor/zendframework/zend-servicemanager/src/ServiceManager.php(200): Zend\ServiceManager\ServiceManager->doCreate('JobsByMail/Cons...')
#8 /var/www/yawik.org/vendor/zendframework/zend-servicemanager/src/AbstractPluginManager.php(141): Zend\ServiceManager\ServiceManager->get('JobsByMail/Cons...')
#9 /var/www/yawik.org/vendor/zendframework/zend-mvc/src/DispatchListener.php(95): Zend\ServiceManager\AbstractPluginManager->get('JobsByMail/Cons...')
#10 /var/www/yawik.org/vendor/zendframework/zend-eventmanager/src/EventManager.php(322): Zend\Mvc\DispatchListener->onDispatch(Object(Zend\Mvc\MvcEvent))
#11 /var/www/yawik.org/vendor/zendframework/zend-eventmanager/src/EventManager.php(179): Zend\EventManager\EventManager->triggerListeners(Object(Zend\Mvc\MvcEvent), Object(Closure))
#12 /var/www/yawik.org/vendor/zendframework/zend-mvc/src/Application.php(332): Zend\EventManager\EventManager->triggerEventUntil(Object(Closure), Object(Zend\Mvc\MvcEvent))
#13 /var/www/yawik.org/public/index.php(50): Zend\Mvc\Application->run()
#14 /var/www/yawik.org/bin/console(2): include('/var/www/yawik....')
#15 {main}
======================================================================
Previous Exception(s):
Subscribing to jobs by mail does not work with php7.
3. .../src/JobsByMail/Factory/Service/MailerFactory.php:32 source Zend\ServiceManager\ServiceManager->get(arguments)
22: * @param string $requestedName
23: * @param array $options
24: * @return Mailer
25: */
26: public function __invoke(ContainerInterface $container, $requestedName, array $options = null)
27: {
28: $mailService = $container->get('Core/MailService');
29: $hash = $container->get(Hash::class);
30: $moduleOptions = $container->get('Core/Options');
31: $organizationImageCache = $container->get('Organizations\ImageFileCache\Manager');
32: $log = $container->get('ErrorLogger');
33:
34: return new Mailer($mailService, $hash, $moduleOptions, $organizationImageCache, $log);
35: }
36:
$name "ErrorLogger" (11)
in #3 we noticed a minor issue related to uploading code coverage in the Travis build
$ php ocular.phar code-coverage:upload --format=php-clover test/build/logs/clover.serialized
#!/usr/bin/env php
Uploading code coverage for repository "g/yawik/JobsByMail" and revision "9096c0307d6074b1994dcdfe3b23fe5d9e7e21b7"... Failed
{"error":{"code":404,"message":"Not Found"}}
The field is neither prefilled with an existing selection, nor can one select anything.
By clicking the confirmation link in the email, an error occurs
This has propably something to do with the ZF3 Upgrade. @fedys can you take a look?
An error occurred
An error occurred during execution; please try again later.
Additional information:
Zend\ServiceManager\Exception\ServiceNotFoundException
File:
/var/www/yawik.org/vendor/zendframework/zend-servicemanager/src/ServiceManager.php:681
Message:
Unable to resolve service "Translator" to a factory; are you certain you provided it during configuration?
Stack trace:
#0 /var/www/yawik.org/vendor/zendframework/zend-servicemanager/src/ServiceManager.php(757): Zend\ServiceManager\ServiceManager->getFactory('Translator')
#1 /var/www/yawik.org/vendor/zendframework/zend-servicemanager/src/ServiceManager.php(200): Zend\ServiceManager\ServiceManager->doCreate('Translator')
#2 /var/www/yawik.org/module/JobsByMail/src/JobsByMail/Factory/Controller/ConfirmControllerFactory.php(32): Zend\ServiceManager\ServiceManager->get('Translator')
#3 /var/www/yawik.org/vendor/zendframework/zend-servicemanager/src/ServiceManager.php(758): JobsByMail\Factory\Controller\ConfirmControllerFactory->__invoke(Object(Zend\ServiceManager\ServiceManager), 'JobsByMail/Conf...', NULL)
#4 /var/www/yawik.org/vendor/zendframework/zend-servicemanager/src/ServiceManager.php(200): Zend\ServiceManager\ServiceManager->doCreate('JobsByMail/Conf...')
#5 /var/www/yawik.org/vendor/zendframework/zend-servicemanager/src/AbstractPluginManager.php(141): Zend\ServiceManager\ServiceManager->get('JobsByMail/Conf...')
#6 /var/www/yawik.org/vendor/zendframework/zend-mvc/src/DispatchListener.php(95): Zend\ServiceManager\AbstractPluginManager->get('JobsByMail/Conf...')
#7 /var/www/yawik.org/vendor/zendframework/zend-eventmanager/src/EventManager.php(322): Zend\Mvc\DispatchListener->onDispatch(Object(Zend\Mvc\MvcEvent))
#8 /var/www/yawik.org/vendor/zendframework/zend-eventmanager/src/EventManager.php(179): Zend\EventManager\EventManager->triggerListeners(Object(Zend\Mvc\MvcEvent), Object(Closure))
#9 /var/www/yawik.org/vendor/zendframework/zend-mvc/src/Application.php(332): Zend\EventManager\EventManager->triggerEventUntil(Object(Closure), Object(Zend\Mvc\MvcEvent))
#10 /var/www/yawik.org/public/index.php(50): Zend\Mvc\Application->run()
#11 {main}
In our demo I've set the server-url inluding our basepath as: --server-url=https://yawik.org/demo/
The links the jobposting and the images are broken because the basepath is missing.
The Mail from the demo contains the following HTML
<h2><a href="https://yawik.org/de/jobs/view?subscriberUri=https://yawik.org/subscriber/1&id=58f77cdf4e197fc54be3fed7">Test Anzeigen Ersteller (m/w)</a></h2>
<div><img src="https://yawik.org/static/Organizations/Image/8/d/58f8be664e197f2e1ee3fed8.jpg" height="80"></div>
Common <p>Frankfurt am Main</p>
@fedis: Can you take a look at this?
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.