https://www.icyphoenix.com/viewtopic.php?f=35&t=8607
-----------------------------------
Gianni PB
Thu 02 Aug, 2012 08:03

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


-----------------------------------
Mighty Gorgon
Thu 02 Aug, 2012 22:33

Re: Calendar Problem
-----------------------------------
Very strange...

Try again with this file slightly edited: [url=https://github.com/MightyGorgon/icy_phoenix/commit/ec9e558f407fe4fcfb8f410fb6110cdb2ba948b3]GIT Functions Calendar


-----------------------------------
Gianni PB
Thu 02 Aug, 2012 23:24

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


-----------------------------------
Mighty Gorgon
Tue 07 Aug, 2012 16:30

Re: Calendar Problem
-----------------------------------
Very strange, it works fine for me on my testing environment. I canno replicate this.


-----------------------------------
Informpro
Tue 07 Aug, 2012 18:32

Re: Calendar Problem
-----------------------------------
line 339, could you change
[code]@include_once(IP_ROOT_PATH . 'includes/bbcode.' . PHP_EXT);[/code]
with
[code]include_once(IP_ROOT_PATH . 'includes/bbcode.' . PHP_EXT);[/code]
? Because it looks like the bbcode variable isn't instantiated.


-----------------------------------
Gianni PB
Tue 07 Aug, 2012 18:37

Re: Calendar Problem
-----------------------------------
done, but same error



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


-----------------------------------
Informpro
Tue 07 Aug, 2012 18:55

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]$bbcode->allow_html = ($user->data['user_allowhtml'] && $config['allow_html']) ? 1 : 0;[/code](ligne 342 on git version)
Add[code]$bbcode = new bbcode();[/code]


-----------------------------------
Gianni PB
Tue 07 Aug, 2012 19:05

Re: Calendar Problem
-----------------------------------
ok! now it works 8) 

thank you very much


-----------------------------------
Mighty Gorgon
Sun 12 Aug, 2012 09:40

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.


-----------------------------------
Informpro
Sun 12 Aug, 2012 15:39

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


