Home arrow Forum

Remository Forum

 


<< Start < Previous 1 2 Next > End >>
admin

Karma: 101  
Re:Problem with version PHP 5.3.2 - 2010/05/05 10:26 You can fix that one by changing cmsapi.interface.php so that the first two methods in class cmsapiInterface (look around line 305) become:

Code:

      function __construct () {         $this->absolute_path dirname(dirname(dirname(__FILE__)));         $this->getMainFrame();         if ('Joomla' == _CMSAPI_CMS_BASE$this->live_site substr(JURI::root(), 0, -1);         // Is magic quotes on?         if (get_magic_quotes_gpc()) {              // Yes? Strip  the added slashes             $this->remove_magic_quotes($_REQUEST);             $this-> remove_magic_quotes($_GET);             $this->remove_magic_quotes($_POST);              $this->remove_magic_quotes($_FILES, 'name');         }         $this->magic_quotes_value  = ini_get('magic_quotes_runtime');         ini_set('magic_quotes_runtime', 0);     }     function __destruct () {         ini_set('magic_quotes_runtime', $this-> magic_quotes_value);     }



Or you can reduce the error reporting - you could set error reporting to a value that would show errors, you only need to suppress warnings of deprecated items.
Martin Brampton aka Counterpoint
http://aliro.org
http://black-sheep-research.com
  | | Sorry, you do not currently have permission to write here.
jicejice57

Karma: 0  
Re:Problem with version PHP 5.3.2 - 2010/05/07 16:20 Thanks a lot! I will try that!

Thanks again for the great component!
  | | Sorry, you do not currently have permission to write here.
jfmarrero

Karma: 0  
Re:Problem with version PHP 5.3.2 - 2010/11/18 14:16 admin wrote:
You can fix that one by changing cmsapi.interface.php so that the first two methods in class cmsapiInterface (look around line 305) become:

Code:

 function __construct () {         $this->absolute_path dirname(dirname(dirname(__FILE__)));         $this->getMainFrame();         if ('Joomla' == _CMSAPI_CMS_BASE$this->live_site substr(JURI::root(), 0, -1); [...]



Or you can reduce the error reporting - you could set error reporting to a value that would show errors, you only need to suppress warnings of deprecated items.


Hello Martin, I've the same problem: "Assigning the return value of new by reference is deprecated" It appears in several function calls (object constructors) in differents files of your component, f.e:

"remository.interface.php", "remositoryAdmin.php", "remositoryFile.php"...

I'm working with Jooma! 1.5.22, runnig over PHP 5.3.3 / MySQL 5.1.52

It's possible to change a superclass constructor code to fix this bug? (as solution you reported before, but i can't find "cmsapi.interface.php" in Joomla! 1.5.22 code )

Thanks for helping us!

PD: I think i had to reduce the error reporting as esay solution

Post edited by: jfmarrero, at: 2010/11/18 14:18

Post edited by: jfmarrero, at: 2010/11/19 09:45
  | | Sorry, you do not currently have permission to write here.
admin

Karma: 101  
Re:Problem with version PHP 5.3.2 - 2010/12/07 17:03 I'm removing ampersands whenever I find them

Mostly they are harmless, and it is a reasonable solution to suppress the errors - usually they have been included to force PHP4 to pass data structures by reference instead of by name. PHP5 passes objects by reference anyway, so removing the ampersand doesn't actually make any difference.

You'll find cmsapi.interface.php in ../plugins/cmsapi/cmsapi
Martin Brampton aka Counterpoint
http://aliro.org
http://black-sheep-research.com
  | | Sorry, you do not currently have permission to write here.
ringobd

Karma: 0  
Re:Problem with version PHP 5.3.2 - 2011/01/13 14:01 I'm getting this error when I try to configure Glossary:

Deprecated: Assigning the return value of new by reference is deprecated in D:serverapache2.2htdocsprobioeaguiacomponentscom_glossaryview-admin-classeslistConfigHTML.php on line 37

I can't revert to an earlier version. What else could I do?
  | | Sorry, you do not currently have permission to write here.
<< Start < Previous 1 2 Next > End >>

Login

Subscribe to Premium Support

Get priority support for Remository and Glossary, sign up now for a Premium Support monthly subscription:

Your Remository user name

Or purchase a year's support:

Your Remository user name

Recommended SEF

SEF Advance

Who is Online

Remository welcomes guests and visitors

We have 7 guest online