415eeaac56
Authored-by: Moko Consulting Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
57 lines
2.3 KiB
PHP
57 lines
2.3 KiB
PHP
<?php
|
|
$_SERVER['HTTP_HOST'] = 'waas.dev.mokoconsulting.tech';
|
|
$_SERVER['REQUEST_URI'] = '/administrator/index.php';
|
|
$_SERVER['REQUEST_METHOD'] = 'GET';
|
|
$_SERVER['SCRIPT_NAME'] = '/administrator/index.php';
|
|
define('_JEXEC', 1);
|
|
define('JPATH_BASE', '/home/mokoconsulting_dev/waas.dev.mokoconsulting.tech/public_html/administrator');
|
|
require_once JPATH_BASE . '/includes/defines.php';
|
|
require_once JPATH_BASE . '/includes/framework.php';
|
|
$db = Joomla\CMS\Factory::getContainer()->get(Joomla\Database\DatabaseInterface::class);
|
|
|
|
// List tours
|
|
$db->setQuery("SELECT id, title, description, published, ordering, uid FROM #__guidedtours ORDER BY ordering");
|
|
$tours = $db->loadObjectList();
|
|
echo "=== TOURS (" . count($tours) . ") ===\n";
|
|
foreach ($tours as $t) {
|
|
echo " id={$t->id} pub={$t->published} uid={$t->uid} title={$t->title}\n";
|
|
}
|
|
|
|
// List steps for first tour to understand structure
|
|
if (!empty($tours)) {
|
|
$firstId = $tours[0]->id;
|
|
$db->setQuery("SELECT id, tour_id, title, description, target, type, ordering FROM #__guidedtour_steps WHERE tour_id = $firstId ORDER BY ordering LIMIT 5");
|
|
$steps = $db->loadObjectList();
|
|
echo "\n=== SAMPLE STEPS (tour $firstId) ===\n";
|
|
foreach ($steps as $s) {
|
|
echo " step={$s->id} type={$s->type} target={$s->target}\n";
|
|
echo " title={$s->title}\n";
|
|
echo " desc=" . substr($s->description, 0, 100) . "\n";
|
|
}
|
|
}
|
|
|
|
// Check table columns
|
|
$db->setQuery("SHOW COLUMNS FROM #__guidedtours");
|
|
$cols = $db->loadObjectList();
|
|
echo "\n=== TOUR COLUMNS ===\n";
|
|
foreach ($cols as $c) echo " {$c->Field} ({$c->Type})\n";
|
|
|
|
$db->setQuery("SHOW COLUMNS FROM #__guidedtour_steps");
|
|
$cols = $db->loadObjectList();
|
|
echo "\n=== STEP COLUMNS ===\n";
|
|
foreach ($cols as $c) echo " {$c->Field} ({$c->Type})\n";
|
|
|
|
// Check module status
|
|
$db->setQuery("SELECT id, title, module, published, position FROM #__modules WHERE module = 'mod_guidedtours'");
|
|
$mod = $db->loadObject();
|
|
echo "\n=== MODULE ===\n";
|
|
echo $mod ? "id={$mod->id} pub={$mod->published} pos={$mod->position}" : "NOT FOUND";
|
|
echo "\n";
|
|
|
|
// Check plugin status
|
|
$db->setQuery("SELECT extension_id, element, enabled FROM #__extensions WHERE element = 'guidedtours' AND type = 'plugin'");
|
|
$plg = $db->loadObject();
|
|
echo "\n=== PLUGIN ===\n";
|
|
echo $plg ? "id={$plg->extension_id} enabled={$plg->enabled}" : "NOT FOUND";
|
|
echo "\n";
|