Author:
Alistair
Version:
1.5
Released:
16 September 2012
Category:
Other

New#1: Connection error after 2.0.7 update

I updated Symphony to 2.0.7 and now the Breadcrumb custom DS (which uses ASDC) is throwing an error originating from the ASDC class:

Argument 2 passed to ASDCMySQL::connect() must be an instance of resource, resource given, called in /Users/nick/Sites/bekonscot-2.0.7/extensions/asdc/lib/class.asdc.php on line 73 and defined

An error occurred in /Users/nick/Sites/bekonscot-2.0.7/extensions/asdc/lib/class.asdc.php around line 242

This line:

public function connect($string, resource &$resource=NULL){

If I remove the strong-typing resource then I suppress the error from ASDC but the DS doesn’t output any XML as intended:

public function connect($string, &$resource=NULL){

Symphony • Open Source XSLT CMS

Server Requirements

  • PHP 5.3-5.6 or 7.0-7.3
  • PHP's LibXML module, with the XSLT extension enabled (--with-xsl)
  • MySQL 5.5 or above
  • An Apache or Litespeed webserver
  • Apache's mod_rewrite module or equivalent

Compatible Hosts

Sign in

Login details