Skip to Content Skip to Menu

Warning: SimpleXMLElement::saveXML (Plugin uploader error)

  • weberli
  • weberli
  • OFFLINE
  • Posts: 1
  • Thanks: 0
  • Karma: 0
8 years 5 months ago - 8 years 5 months ago #280871 by weberli
Hey guys, i'm a noob, but I couldn't find anyone to hire to fix my issue, so now i'm just going to try and fix it myself. I have an issue where I upgraded Community builder and the PluginHandler doesn't load, so I cannot upload the new plugins necessary to work with my site.

Warning: SimpleXMLElement::saveXML(<span>/</span>home<span>/</span>reberli/montereyoffices.com/cache/cbpluginsversions.xml): failed to <span>open</span> stream: No such file or directory in <span>/</span>home<span>/</span>reberli/montereyoffices.com/libraries/CBLib/CB/Legacy/cbPluginHandler.php on line 1440


I went into FileZilla and looked up the line of code referenced to see if I could edit something to get results (based off a forum post I found online, no dice, but maybe you can see something?)



{
global $_CB_framework, $ueConfig;

cbimport( 'cb.snoopy' );

static $plgVersions = null;

if ( $plgVersions === null ) {
$cacheFile = $_CB_framework->getCfg( 'absolute_path' ) . '/cache/cbpluginsversions.xml';
$plgVersionsXML = null;

if ( file_exists( $cacheFile ) ) {
if ( ( ! $duration ) || ( intval( ( $_CB_framework->now() - filemtime( $cacheFile ) ) / 3600 ) > $duration ) ) {
$request = true;
} else {
$plgVersionsXML = new SimpleXMLElement( trim( file_get_contents( $cacheFile ) ) );

$request = false;
}
} else {
$request = true;
}

if ( $request ) {
$s = new CBSnoopy();
$s->read_timeout = 30;
$s->referer = $_CB_framework->getCfg( 'live_site' );

@$s->fetch( ' update.joomlapolis.net/cbpluginsversions20.xml ' );

if ( (int) $s->status == 200 ) {
try {
$plgVersionsXML = new SimpleXMLElement( $s->results );

$plgVersionsXML->saveXML( $cacheFile );
} catch ( Exception $e ) {}
}
}

if ( $plgVersionsXML ) {
$plgVersions = $plgVersionsXML->getElementByPath( 'cb_plugins/' . ( checkJversion() >= 2 ? 'j30' : 'j15' ) );
} else {
$plgVersions = false;
}
}










The code above is as found, I didn't alter it. Can you help me out? =D
Last edit: 8 years 5 months ago by weberli.

Please Log in or Create an account to join the conversation.

  • nant
  • nant
  • OFFLINE
  • Posts: 12339
  • Thanks: 1467
  • Karma: 877
8 years 5 months ago #280889 by nant
[mod note: moved out of potential bug area as it does not give info to reproduce]

No idea what your issue is.
No idea what Joomla version you are on.
No idea what CB version you are on.

I cannot replicate this on a clean install.
So most likely something you installed of modified is causing this for you.

Please Log in or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum