Mage registry key already exist error “_singleton/plumbase/feed”



There has been an error processing your request Mage registry key “_singleton/plumbase/feed” already exists


#0 /home/activ/public_html/app/Mage.php(225): Mage::throwException('Mage registry k...') #1 /home/activ/public_html/app/Mage.php(479): Mage::register('_singleton/plum...', false) #2 /home/activ/public_html/includes/src/__default.php(22325): Mage::getSingleton('plumbase/feed') #3 /home/activ/public_html/app/Mage.php(450): Mage_Core_Model_App->dispatchEvent('controller_acti...', Array) #4 /home/activ/public_html/includes/src/__default.php(14225): Mage::dispatchEvent('controller_acti...', Array) #5 /home/activ/public_html/includes/src/Mage_Adminhtml_Controller_Action.php(167): Mage_Core_Controller_Varien_Action->preDispatch() #6 /home/activ/public_html/includes/src/__default.php(14116): Mage_Adminhtml_Controller_Action->preDispatch() #7 /home/activ/public_html/includes/src/__default.php(18849): Mage_Core_Controller_Varien_Action->dispatch('login') #8 /home/activ/public_html/includes/src/__default.php(18379): Mage_Core_Controller_Varien_Router_Standard->match(Object(Mage_Core_Controller_Request_Http)) #9 /home/activ/public_html/includes/src/__default.php(21354): Mage_Core_Controller_Varien_Front->dispatch() #10 /home/activ/public_html/app/Mage.php(686): Mage_Core_Model_App->run(Array) #11 /home/activ/public_html/index.php(82): Mage::run('', 'store') #12 {main} 

terminal – count how many types of (file) extensions exist with their associated files in current directory

I’ve about 0.1 million images in a directory with all kinds of extensions (gif, jpeg, png, tiff, etc).

Now I want to find out how many types (of extensions) are there in the current directory, possibly with total number of images associated with them using a terminal command, something like this:

some-command  png  - 11010 jpeg - 1134 jpg  - 145 tiff - 555 

P.S: I do not want to count files with specific extension but rather want to count types of extensions with their associated files.

Filezilla asks for key (which doesn’t exist), only in my laptop

When I try to connect to a FTP server with Filezilla, it asks for a password fo unlock a private key, which I never configured. The site is not configured to use keys.

If I enter my key password it works, but I’m worried, is this secure? Why is it asking my private key if I never configured it?

Other sites don’t ask for this key.

Thank you.

Property does not exist on the Eloquent builder instance

estoy practicando con laravel pero tengo algunas dudas, quiero aplicar un middleware que le prohiba el acceso a una ruta si un usuario logueado tiene “0” en la columna “wizard” de mi tabla “empresas” y lo redireccione a completar su proceso pero si este tiene “1” en el campo lo deje pasar a la ruta /dashboard

declare mi modelo de la siguiente forma:

    <?php      namespace App;      use Illuminate\Database\Eloquent\Model;      class Empresa extends Model     {         /**          * The database table used by the model.          *          * @var string          */         protected $  table = 'empresas';          /**         * The database primary key value.         *         * @var string         */         protected $  primaryKey = 'id';          /**          * Attributes that should be mass-assignable.          *          * @var array          */         protected $  fillable = ['nombreempresa',         'nombrecomercial',         'idfiscal',         'logo',         'adminid',         'tel',         'pais',         'status',         'email',         'acceso',         'verified',         'categoria',         'sector',         'tipo',         'serial',         'wizard',         'created_at',         'updated_at'];         public function user()           {             return $  this->belongsTo('App\User');           }     } 

El codigo del middleware es:

namespace App\Http\Middleware; use Illuminate\Support\Facades\Auth; use Closure; use App\Empresa;  class WizardVerification {     /**      * Handle an incoming request.      *      * @param  \Illuminate\Http\Request  $  request      * @param  \Closure  $  next      * @return mixed      */     public function handle($  request, Closure $  next)        {          if(Empresa::where('adminid', Auth::user()->id)->wizard && !Auth::check()){             return redirect('/dashboard');           }          return $  next($  request);        } } 

en mis rutas lo llame asi:

Route::group(['middleware' => ['wizard']], function () {  /*Todas las rutas que esten en este grupo estaran restringidas si el usuario no completo su informacion y se restringira su paso si la no se encuentra logueado.*/ Auth::routes(); Route::get('/dashboard', 'DashboardController@index', function () {     return redirect('/home'); }); Route::get('/home', 'HomeController@index')->name('home'); }); 

pero al hacer la prueba me aparece el error “propety [wizard] does not exist” que estoy haciendo mal? porque segui cuidadosamente este tutorial pero no lo logre hacer funcionar, espero alguien pueda explicarme porque esta mal mi codigo, saludos!!!

PnP js call returns “Item does not exist”

I’m running a small code to upload file in a SharePoint 2016 document library and to change a metadata.

Sometimes (but really often) my code returns error “Error making HttpClient request in queryable [404] Not Found” with the message “Item does not exist. It may have been deleted by another user.”

This is my code:

pnp.sp.web.getFolderByServerRelativeUrl("/sites/mysite/ConfigDL").files.add(, fileOgg, true).then(function (data) {     var RelativeUrls="/sites/mysite/ConfigDL/";     //Retrive Document which is uploaded. Start     pnp.sp.web.getFolderByServerRelativeUrl(RelativeUrls).getItem().then(item => {         //update start Below Call to Doc List will update the Row baseed on Item.ID         pnp.sp.web.lists.getByTitle("ConfigDL").items.getById(item.ID).update({             Number: ""+number+""         }).then(r => {             alert( + " upload successfully!");         });//update end     }); //Retrive Doc Info End }); //Upload Document End 

I can’t get why this error happens randomly and what’s wrong with my code. Any suggestion?

Is an official V5 version of Tzimisces and Vicissitude exist?

As a fan of Vampire the Masquerade, my favorite clan is the Tzimisce clan, mostly because I love the Vicissitude Discipline.

I want to put some Tzimisces in my campaign, but I couldn’t find anything else than homebrewed things.

Is an official V5 version of Tzimisces and Vicissitude exist?

If not, any info about when a Tzimisces book will be done?

Removing grants for datbases that no longer exist

We have quite a few MariaDB servers with whom the permissions have gotten a bit messy over the years. I’d like to tidy them up.

I’ve already written some tools for presenting grants/table information nicely, and this has highlighted that that some users have a LOT of specific grants for databases or tables that no longer exist. On one server there are over 150 databases referenced by users in SHOW GRANTS, but only 12 databases still exist.

How might the users of Stackoverflow deal with housekeeping of this order?

Are there any tools that do basic auditing on Grants, accesses and Databases that will help me sort through this mess?

Ideally, something that spits out a list of mysql REVOKE statements that remove grants for databases that no longer exist, that can then be reviewed by a human before pasting as a query.

I can see a way to anagrammatically sorting through them, but it is likely to take a few hours to write that up. It may still come to that but I’d like to know if this wheel has already been invented.

Wait for an element to exist in DOM before clicking it

Here is the problem: some script is injecting some HTML5 elements (actually a button with the #thebutton ID) to the current DOM.

But this is a third party script and I have no control of when this will be injected to the page. I need to click automatically on this button when the button is injected to the DOM. Here is my solution so far.

It’s actually working but I’m not sure on how fine this code is. My first guess is that I may use the clearTimeout() method. Is there anything else I must do?

<script type="text/javascript">     function waitForElementToDisplay(selector, time) {         if (document.querySelector(selector) !== null) {             document.getElementById("thebutton").click();             return;         } else {             setTimeout(function () {                 waitForElementToDisplay(selector, time);             }, time);         }     }     // onload     (function () {         waitForElementToDisplay("#thebutton", 500);     })(); </script> 

Here is a simulated jsFiddle of the whole process: