SOLVED Calendar Problem


Subject: Calendar Problem
If I activate calendar from ACP

Fatal error: Call to undefined method stdClass::parse() in /web/htdocs/www.salsapuglia.com/home/includes/functions_calendar.php on line 400

Subject: Re: Calendar Problem
Very strange...

Try again with this file slightly edited: GIT Functions Calendar

Subject: Re: Calendar Problem
file uploaded, cache cleared, but it doesn't work yet

Last edited by Gianni PB on Tue 07 Aug, 2012 16:36; edited 1 time in total
Subject: Re: Calendar Problem
Very strange, it works fine for me on my testing environment. I canno replicate this.

Subject: Re: Calendar Problem
line 339, could you change
Code: [Download] [Hide]
  1. @include_once(IP_ROOT_PATH . 'includes/bbcode.' . PHP_EXT); 

with
Code: [Download] [Hide]
  1. include_once(IP_ROOT_PATH . 'includes/bbcode.' . PHP_EXT); 

? Because it looks like the bbcode variable isn't instantiated.

Profile PM  
Subject: Re: Calendar Problem
done, but same error



p.s.
I have this code in line #363

Subject: Re: Calendar Problem
Then you probably don't run the latest Git version.
You can check that includes/bbcode.php isn't corrupted.
Anyway, before
Code: [Download] [Hide]
  1. $bbcode->allow_html = ($user->data['user_allowhtml'] && $config['allow_html']) ? 1 : 0; 
(ligne 342 on git version)
Add
Code: [Download] [Hide]
  1. $bbcode = new bbcode(); 

Profile PM  
Subject: Re: Calendar Problem
ok! now it works 8)

thank you very much

Subject: Re: [SOLVED] Calendar Problem
It's really strange... I can't understand the reason of this issue, I think you have improperly edited some other files.

Anyway I'm glad you solved.

Subject: Re: [SOLVED] Calendar Problem
For some reason it looks like the $bbcode variable isn't "leaked" in the scope during the include.

Profile PM  

Page 1 of 1


  
You cannot post new topics
You cannot reply to topics
You cannot edit your posts
You cannot delete your posts
You cannot vote in polls
You cannot attach files
You can download files
You cannot post calendar events

   

This is a "Lo-Fi" version of our main content. To view the full version with more information, formatting and images, please click here.

Powered by Icy Phoenix based on phpBB
Generation Time: 0.085s (PHP: 22% SQL: 78%)
SQL queries: 11 - Debug Off - GZIP Enabled