Skip to content

Instantly share code, notes, and snippets.

@code-ph0y
code-ph0y / gist:af45762575c09bf3ff17
Created January 20, 2016 22:49
UserModule Trace
InvalidArgumentException in ControllerNameParser.php line 64: Unable to find controller "UserModule:Account" - class "UserModule\Controller\Account" does not exist.
in ControllerNameParser.php line 64
at ControllerNameParser->parse('UserModule:Account:create') in ControllerResolver.php line 61
at ControllerResolver->createController('UserModule:Account:create') in ControllerResolver.php line 76
at ControllerResolver->getController(object(Request)) in App.php line 290
at App->dispatch(object(Request), object(Response)) in App.php line 262
at App->run() in index.php line 31
@code-ph0y
code-ph0y / gist:ce4de84f6815b16c1b0b
Created January 17, 2016 17:43
Controller Action Route...
use Application\Controller\Shared as SharedController;
use Psr\Http\Message\RequestInterface;
class Index extends SharedController
{
public function exampleAction(RequestInterface $request)
{
$message = $request->get('message');
RuntimeException in ControllerResolver.php line 122: Controller "Application\Controller\Index::talkAction()" requires that you provide a value for the "$request" argument (because there is no default value or because there is a non optional argument after this one).
in ControllerResolver.php line 122
at ControllerResolver->doGetArguments(object(Request), array(object(Index), 'talkAction'), array(object(ReflectionParameter))) in ControllerResolver.php line 99
at ControllerResolver->getArguments(object(Request), array(object(Index), 'talkAction')) in App.php line 294
at App->dispatch(object(Request), object(Response)) in App.php line 262
at App->run() in index.php line 31
@code-ph0y
code-ph0y / gist:4da9082f0e0352bea383
Created January 17, 2016 00:52
Framework Issue?
ContextErrorException in App.php line 271:
Catchable Fatal Error: Argument 1 passed to PPI\Framework\App::dispatch()
must be an instance of PPI\Framework\Http\Request, null given,
called in /var/www/html/ppi_app/skeletonapp/vendor/ppi/framework/src/App.php on line 255 and defined
@code-ph0y
code-ph0y / gist:d6877605c0f7b87427f9
Created August 12, 2014 22:01
Problem with installing CURL on Ubuntu
code-ph0y@codeph0y-1215N:/var/www/ppi/marketplace$ sudo apt-get install curl libcurl3 libcurl3-dev php5-curl
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'libcurl4-openssl-dev' instead of 'libcurl3-dev'
The following packages were automatically installed and are no longer required:
calligra-l10n-engb cdparanoia dkms k3b k3b-data k3b-i18n kde-l10n-engb
kde-l10n-zhcn kdevelop-l10n kdevelop-php-docs-l10n kdevelop-php-l10n
language-pack-kde-en libflac++6 libk3b6 libkcddb4 libmpcdec6
linux-headers-3.5.0-17 linux-headers-3.5.0-17-generic