MODX Community

500 Server Error after Updating

Summary

I get the following error after updating from 2.6.1 to 2.7.1

PHP Fatal error:  Uncaught Error: Class 'xPDODriver_' not found in /home/portabl3/public_html/core/xpdo/xpdo.class.php:1884
Stack trace:
#0 /home/portabl3/public_html/core/xpdo/xpdo.class.php(342): xPDO->getDriver()
#1 /home/portabl3/public_html/core/model/modx/modx.class.php(450): xPDO->__construct(NULL, NULL, NULL, Array, NULL)
#2 /home/portabl3/public_html/index.php(36): modX->__construct()
#3 {main}
  thrown in /home/portabl3/public_html/core/xpdo/xpdo.class.php on line 1884

Any ideas?

1 Like

Your core/config/config.inc.php got corrupted - restore that from a pre-upgrade backup.

Thanks but now I’m getting:

PHP Fatal error:  Uncaught Error: Call to a member function getOption() on null in /home/portabl3/public_html/core/cache/includes/elements/modplugin/23.include.cache.php:20
Stack trace:
#0 /home/portabl3/public_html/core/model/modx/modscript.class.php(76): include()
#1 /home/portabl3/public_html/core/model/modx/modx.class.php(1668): modScript->process(NULL)
#2 /home/portabl3/public_html/core/model/modx/modrequest.class.php(133): modX->invokeEvent('OnLoadWebDocume...')
#3 /home/portabl3/public_html/core/model/modx/modrequest.class.php(122): modRequest->prepareResponse()
#4 /home/portabl3/public_html/core/model/modx/modx.class.php(1455): modRequest->handleRequest()
#5 /home/portabl3/public_html/index.php(54): modX->handleRequest()
#6 {main}
  thrown in /home/portabl3/public_html/core/cache/includes/elements/modplugin/23.include.cache.php on line 20

That’s an error coming from the plugin with ID 23 - what plugin is that and what are the first 20 or so lines of that?

<?php
/**
 * Glossary Term Highlighter Plugin
 *
 * @package glossary
 * @subpackage plugin
 *
 * @var modX $modx
 * @var array $scriptProperties
 */

$className = 'Glossary' . $modx->event->name;

$corePath = $modx->getOption('glossary.core_path', null, $modx->getOption('core_path') . 'components/glossary/');
/** @var GlossaryBase $glossary */
$glossary = $modx->getService('glossary', 'GlossaryBase', $corePath . 'model/glossary/', array(
    'core_path' => $corePath
));

$modx->loadClass('GlossaryPlugin', $glossary->getOption('modelPath') . 'glossary/events/', true, true);
$modx->loadClass($className, $glossary->getOption('modelPath') . 'glossary/events/', true, true);
if (class_exists($className)) {
    /** @var GlossaryPlugin $handler */
    $handler = new $className($modx, $scriptProperties);
    $handler->run();
}

return;
return;

It’s the Glossary Plugin apparently…

Yeah, looks like that is having issues loading the GlossaryBase class. Perhaps due to file permissions or missing files. The MODX error log (core/cache/logs/error.log) may have a bit more information.

Not quite sure how a regular upgrade would cause such an issue though…

How did you perform the upgrade?

I’m sorry you guys… I’ve long since fixed the issue. Thank you guys…

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.