Zen Follower
- Join Date:
- Nov 2020
- Posts:
- 319
- Plugin Contributions:
- 4
Post #1 by flappingfish
Anybody ever come across this before? Tried my best to figure out why it is happening, tried ai too which keeps claiming the issue is in the core file :yuck: obviously it is quite wrong.
--> PHP Warning: Undefined array key 0 in /includes/functions/plugin_support.php on line 58.
i don't really want to be editing core code when it only seems to exist as an issue with this new module i am making, ai recommended editing core file to check for an empty plugin id instead of 0 because i am declaring 0 as plugin id yet it is still trying to check for updates and throwing a wobbler :/
// change this:
if ($plugin_file_id === 0) return false;
// to this:
if (empty($plugin_file_id)) return false;
is the suggested quick fix patch idea i'm not keen on doing, feels like defeat editing core to get something so simple working. Error occurs when I click on the modules name in plugin manager and i get sent to a 500 page instead of seeing the install option. I cannot see anything obviously amiss with the manifest file either, i cloned a manifest from a working module and edited it to suit this module, can anyone see anything obviously wrong here??
<?php
return [
'pluginVersion' => 'v1.0.0',
'pluginName' => 'StageHire',
'pluginDescription' => 'Stage Hire availability calendar, enquiries, and admin management.',
'pluginAuthor' => 'CrazyGamer / FlappingFish',
'pluginId' => 0,
'zcVersions' => ['v210'],
'changelog' => '',
'github_repo' => '',
'pluginGroups' => [],
'installer' => [
'type' => 'scripted',
'class' => 'ScriptedInstaller',
'file' => 'Installer/ScriptedInstaller.php',
],
];
My only other thought is a firewall rule or similar is perhaps intercepting the page load and changing the output needed to reload the page... but that would effect all custom plugins i made, right?? :frusty: