Validator error when posting a thread in Laravel Chatter - php

I've recently updated my app from Laravel 5.1 to 5.3.
Soon after this, I tried installing chatter.
I followed the instructions, found here: https://github.com/thedevdojo/chatter
After following all the steps, I ran into a few problems, due to having my own user model/user auth system. But I changed things up chatter's config file, and now the forum loads fine (albeit with a few styling errors due to my main css file overriding somethings, but that's a minor issue).
The problem is that, when I try to post a new thread/discussion, I receive the following error:
which is referencing this line in ChatterDiscussionController.php:
and this line in ChatterBeforeNewDiscussion.php:
Could someone a bit more knowledgeable tell me what's going on here?

Please open up vendor/devdojo/src/Events/ChatterBeforeNewDiscussion.php and change
use Illuminate\Validation\Validator;
to
use Illuminate\Support\Facades\Validator;
I will make sure to fix this in the source for the Laravel Chatter Application.

Related

"The PUT method is not supported for this route. Supported methods: POST." error after hosting

so I have my laravel blade project working exactly as it should locally. the problem is that once I uploaded it on my host (using hosting as the web host), the website sort of crashed. now, it says that the put method is not supported any more for this route, which is weird as the website was working fine locally here is a snippet of the error I keep getting now. I hope someone has encountered this issue and knows the work-around for it. thank you
There might be below issues -
It might be some cache issue. Clear cache on Local & live both, then check the error.
You might have defined multiple routes with the same name & different request methods. Make sure they are not conflicting.
Other than that, it can be something related to hosting, composer version.
Give us some more references, so that we could reach to a perfect solution.

Annoying intelisense warning in VS Code for Laravel's built in commands

The image above is self explanatory, I always get Undefined method [every built in laravel method] every time I create a Laravel project. I'm using PHP Intelephense extension to help me with autocompletion and stuffs.
This kind of annoying since they sometimes got mixed with another errors I've made in the project and make it difficult to find where was the real error is.
Also sometimes, I have to deep dive into the vendor, facades, illuminate, etc folders to let the IDE scans each files and knows that the class and methods is exist in the project to make the autocompletion works.
I'm using the latest version of VS Code and PHP Intelephense extension. Installing laravel-ide-helper does nothing. Is there anything I can do to fix this issue?

Symfony2 console doesn't interact

When I was creating projects in Symfony2 on Windows there were no problems, but now (linux) I got something like this:
when I want to generate bundle without any parameters I get
[RuntimeException]
The "namespace" option must be provided.
When I type in the namespace I get:
[RuntimeException]
The "dir" option must be provided.
I can create bundle only if I give all the necessary arguments at the beginning and I'm kinda lazy person and it's quite annoying for me that console doesn't ask about namespace or anything. Is there any chance to repair this?:P
EDIT: actually this happens whenever I try to run function which requires arguments.
I've tried too to create a bundle with Netbeans or Eclipse but i have encountered the same problem.
The unique solution is to create your bundle with the Terminal.
All the process will run normally, and you'll only to answer the questions for finish your creation.
I'll come back to you if i've other solutions.
Cordially.
your problem doesn't come from netbeans, I use phpstorm and I had the same problem.
later I found out that the problem comes from symfony to solve it go to your project folder for me it was like:
/opt/lampp/htdocs/MyProject/vendor/symfony/symfony/src/Symfony/Component/console and open file Application.php in a text editor
search for
$input->setInteractive(false);
then comment it like this :
//$input->setInteractive(false);
it should perfectly work now !

document.mutate.save is undefined

I'm using the ModX CMS.
And this error, document.mutate.save is undefined keeps coming up if I were to save a chunk.
Assuming it was a faulty install, I deleted the application, and reinstalled it four times. Those included:
Twice from the original working application on my testing remote server.
From the latest version of Evolution on ModX's website
From another working site I maintain that was also created in ModX.
Assuming it was a javascript conflict, I went into my QM, and removed jQuery from the backend, and then eventually removed jQuery all together unsure if it was still being placed in there. I can not view the source of the backend because it is entirely composed out of iFrames.
The document.mutate.save files come from a folder located in: /manager/actions/
This folder is set to 777 as well as all the surrounding golders and the parent manager folder as well.
Anyone have any idea as to why this error is being called, and how to fix it?
I'm a rails guy, but this seems like a simple method not being defined in the controller problem. Unfortunately, I'm not too conscious of PHP's MVC architecture otherwise, I would fix this manually.
Thanks!
Old thread, I know... but I have a possible solution which worked for me.
After a lot of fiddling around, I finally found that I had activated the editor in the configurations, but had uninstalled the TinyMCE Plugin. After deactivating the editor, the error disappeared.

Zend Framework 1.8 Autoloading Zend_Gdata_YouTube VideoQuery.php

I'm having issues with Zend_Gdata_YouTube.
It seems unable to locate the file VideoQuery.php despite the fact it is one of the directories mentioned in the warning messages.
Also I created a standalone version of the example just including 'Zend/Gdata/YouTube.php'. This works fine.
I've dropped the error messages then the class followed by the working example into a paste bin.
Paste Bin
I got the same error after I upgraded from ZF 1.8.0 to 1.8.4, after searching for a solution with no luck I posted my error on the ZF Gdata mail list and Trevor Johns was nice enough to get back to me with this response:
"This looks like this issue:
http://framework.zend.com/issues/browse/ZF-7013
This will be fixed in the next release of Zend Framework. If you don't
want to wait that long, you can either:
Download a development snapshot from here:
hxxp://framework.zend.com/code/browse/~tarball=zip/Zend_Framework/standard/trunk/trunk.zip
Use version 1.8.3:
hxxp://framework.zend.com/releases/ZendFramework-1.8.3/ZendFramework-1.8.3.tar.gz
Don't use Zend_Loader's autoloader functionality. (This bug only
seems to show up if you're trying to autoload the classes.)"
I'll be rolling back my ZF version until the next release.
p.s. had to substitute http with hxxp because "new users can only post a maximum of one hyperlink" apparently.
The files Zend\Gdata\Media\Extension\VideoQuery.php and Zend\Gdata\YouTube\Extension\VideoQuery.php do not exist in the framework. I think the file you want is Zend\Gdata\YouTube\VideoQuery.php
Does this help? What code is using these classes, your code or the framework code?

Categories