If this is your first visit, check our documentation. To post, register or login.
Forums / General Questions / General Questions / zc plugins custom plugin install error

zc plugins custom plugin install error

Started by flappingfish on 24 Feb 2026, 6:20 PM · Views: 733

Results 1 to 2 of 2
24 Feb 2026, 6:20 PM
#1
flappingfish avatar

flappingfish

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:

24 Feb 2026, 6:39 PM
#2
flappingfish avatar

flappingfish

Zen Follower

Join Date:
Nov 2020
Posts:
319
Plugin Contributions:
4

Post #2 by flappingfish

Solved... turns out the first time i ran the installer i had a plugin id that was not 0, changed it to 0 in the database and found that resolved the issue :)

SELECT unique_key, version, zc_contrib_id, status FROM plugin_control WHERE unique_key = 'StageHire';

was the query to get the settings up if anyone else ever reads this thread after hitting the same issue