Joomla! Discussion Forums



It is currently Tue Nov 24, 2009 7:47 pm (All times are UTC )

 


Forum rules

Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.



Post new topic Reply to topic  [ 56 posts ]  Go to page 1, 2  Next
Author Message
Posted: Sat Sep 17, 2005 9:00 pm 
User avatar
Joomla! Intern
Joomla! Intern
Offline

Joined: Thu Aug 25, 2005 10:36 pm
Posts: 52
Location: Victoria, Canada
After converting to Joomla 1.0.0, clicking on my main menu link to the events calendar component generates the following error:

Fatal error: Cannot redeclare clone() (previously declared in /data/in/s/salthost/www/includes/compat.php50x.php(9) : eval()'d code:1) in /data/in/s/salthost/www/components/com_events/events.php(545) : eval()'d code on line 2

The events module is still working fine - its just the calendar that won't open.

_________________
Pastor Tim

Cybersalt Communications
http://www.cybersalt.org


Last edited by rjs on Mon Oct 31, 2005 11:15 am, edited 1 time in total.

Top
  E-mail  
 
Posted: Sat Sep 17, 2005 11:44 pm 
User avatar
Joomla! Intern
Joomla! Intern
Offline

Joined: Thu Aug 25, 2005 10:36 pm
Posts: 52
Location: Victoria, Canada
I e-mailed Dave McDonell about this (his address is listed on the component) and he replied:

"You can just delete that specific line I believe in the code.  It was put there as a compatibility kludge to php5.  But a month or two later the mambo developers put the same thing into their code which is causing the conflict now."

So I went into components/com_events/events.php and removed the following (lines # 1073-1091):


/* MLr: ugly hack to cope with PHP4/PHP5 differences

* concerning use of references (thanks to http://www.acko.net/node/54)

*/

if (version_compare(phpversion(), '5.0') < 0) {

    eval('

    function clone($object) {

      return $object;

    }

    ');

}



The Events Component is now working for me in Joomla.

_________________
Pastor Tim

Cybersalt Communications
http://www.cybersalt.org


Last edited by cybersalt on Sun Sep 18, 2005 5:30 am, edited 1 time in total.

Top
  E-mail  
 
Posted: Sun Sep 18, 2005 12:51 am 
User avatar
Joomla! Explorer
Joomla! Explorer
Offline

Joined: Wed Aug 24, 2005 2:02 pm
Posts: 276
Location: Rhode Island, USA
Ah...this was my only hangup so far in the migration.  Thank you!


Top
   
 
Posted: Mon Sep 19, 2005 9:37 pm 
User avatar
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Thu Aug 18, 2005 10:19 pm
Posts: 49
Location: Netherlands
cybersalt wrote:
So I went into components/com_events/events.php and removed the following (lines # 1073-1091):


For me it was commenting out line # 540-546


Top
  E-mail  
 
Posted: Fri Sep 23, 2005 12:51 pm 
User avatar
Joomla! Intern
Joomla! Intern
Offline

Joined: Sat Aug 20, 2005 6:16 pm
Posts: 50
Location: Purmerend (near Amsterdam), The Netherlands
Last BoyScout wrote:
cybersalt wrote:
So I went into components/com_events/events.php and removed the following (lines # 1073-1091):


For me it was commenting out line # 540-546


For me too. But it works great. Thanx!!! :D

_________________
There is no place like 127.0.0.0


Top
  E-mail  
 
Posted: Sun Sep 25, 2005 11:51 pm 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Fri Sep 16, 2005 9:12 pm
Posts: 33
In have the same problem but I cant edit the events.php file to remove the offending lines of code - the permissions on the file are set to 644 and I cant change them , or the permissions on the com-events folder?


Top
   
 
Posted: Sun Sep 25, 2005 11:53 pm 
User avatar
Joomla! Exemplar
Joomla! Exemplar
Offline

Joined: Thu Aug 18, 2005 9:07 am
Posts: 9305
Location: Assen, Netherlands
If you can't change the permissions by FTP you can always try MamboXplorer.

_________________
Arjan Menger
http://www.welldotcom.nl - Professionele Joomla! Design, Ontwikkeling en Hosting
http://www.joomlaideal.nl - iDEAL betaalmethode voor Joomla! en Virtuemart


Top
  E-mail  
 
Posted: Mon Sep 26, 2005 12:09 am 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Fri Sep 16, 2005 9:12 pm
Posts: 33
wow -you guys are just the best! MamboXplorer did the trick OK, and error is now fixed.


Top
   
 
Posted: Mon Sep 26, 2005 12:14 am 
User avatar
Joomla! Exemplar
Joomla! Exemplar
Offline

Joined: Thu Aug 18, 2005 9:07 am
Posts: 9305
Location: Assen, Netherlands
You're very welcome ;D That's what a community is for!

_________________
Arjan Menger
http://www.welldotcom.nl - Professionele Joomla! Design, Ontwikkeling en Hosting
http://www.joomlaideal.nl - iDEAL betaalmethode voor Joomla! en Virtuemart


Top
  E-mail  
 
Posted: Tue Sep 27, 2005 8:11 pm 
Joomla! Intern
Joomla! Intern
Offline

Joined: Tue Sep 27, 2005 8:06 pm
Posts: 69
;D
Just have to say thanks, thanks and thanks!

This solved the problem for me too!!!


Top
  E-mail  
 
Posted: Fri Sep 30, 2005 10:23 am 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Fri Sep 30, 2005 8:43 am
Posts: 29
I'm not having as much success.

I've tried commenting out lines 540-546 by putting a // in front of each line.  Is that the correct way to do that?

I also tried deleting lines 1073-1091 with no success. 

I used MamboXplorer to do the editing.


Top
  E-mail  
 
Posted: Fri Sep 30, 2005 7:37 pm 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Fri Sep 30, 2005 8:43 am
Posts: 29
OK - I've got it working. 


Top
  E-mail  
 
Posted: Fri Sep 30, 2005 9:29 pm 
Joomla! Intern
Joomla! Intern
Offline

Joined: Tue Sep 27, 2005 8:06 pm
Posts: 69
Nice!

What was wrong?


Top
  E-mail  
 
Posted: Fri Sep 30, 2005 10:38 pm 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Fri Sep 30, 2005 8:43 am
Posts: 29
I saw everyone else was removing lines 540-546 or 1073-1091 and I tried removing or commenting those out.  Didn't work.

Well, in my case it was completely different lines.  I don't remember exactly, but it was very near the beginning of the events.php.

I completely ignored WHAT the text was and deleting that and just removed the LINES everyone else was removing.

Once I removed the CORRECT text, it worked. 


Top
  E-mail  
 
Posted: Sun Oct 02, 2005 9:48 am 
User avatar
Joomla! Enthusiast
Joomla! Enthusiast
Offline

Joined: Fri Aug 19, 2005 4:11 pm
Posts: 208
Location: Weert, Netherlands
cybersalt wrote:
I e-mailed Dave McDonell about this (his address is listed on the component) and he replied:

"You can just delete that specific line I believe in the code.  It was put there as a compatibility kludge to php5.  But a month or two later the mambo developers put the same thing into their code which is causing the conflict now."

So I went into components/com_events/events.php and removed the following (lines # 1073-1091):


/* MLr: ugly hack to cope with PHP4/PHP5 differences

* concerning use of references (thanks to http://www.acko.net/node/54)

*/

if (version_compare(phpversion(), '5.0') < 0) {

    eval('

    function clone($object) {

      return $object;

    }

    ');

}



The Events Component is now working for me in Joomla.



Thankx for your help  ;D
My calender is now working again  :laugh:


Top
   
 
Posted: Thu Oct 06, 2005 3:01 am 
User avatar
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Sun Aug 21, 2005 9:57 pm
Posts: 23
Location: Montréal
Thanks for your help. It work Well

Your support is so quick and efficient.

Thanks a lot to all of you

Divall


Top
  E-mail  
 
Posted: Thu Oct 06, 2005 8:48 am 
User avatar
Joomla! Intern
Joomla! Intern
Offline

Joined: Mon Aug 22, 2005 5:14 am
Posts: 76
Location: Cebu Advertising Community
Thank You so much Guys!!!  :laugh:
It really solved my problem too. I even had the permission problem also and followed @sc00zy's suggestion to use MamboXplorer and it worked great!
Thanks a lot!  :laugh: :laugh: :laugh:

_________________
My first Joomla site & I'm proud I made it http://www.cebuanoads.com


Top
   
 
Posted: Sun Oct 09, 2005 10:18 am 
User avatar
Joomla! Enthusiast
Joomla! Enthusiast
Offline

Joined: Sun Sep 04, 2005 10:24 am
Posts: 165
Location: hamburg / germany
did same like babs,
all went fine now.

this community rocks !"

thx to all


.....peace out

_________________
-----------------------------------------------
www.acidbunker.de
bgm-weber-minigolf-open.de


Top
  E-mail  
 
Posted: Mon Oct 10, 2005 5:56 pm 
Joomla! Fledgling
Joomla! Fledgling
Offline

Joined: Mon Oct 10, 2005 5:55 pm
Posts: 1
I registered just so I could say thank you for posting this fix. :)


Top
  E-mail  
 
Posted: Mon Oct 10, 2005 7:40 pm 
User avatar
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Thu Aug 18, 2005 8:41 am
Posts: 24
Location: Netherlands
Drove me crazy >:( on a new installation, but did did the trick! :laugh:

Funny, but found this tread tru google -> MamboForge -> link here, that's a way to get people to the right spot!

Duco
(never stop learning)


Top
   
 
Posted: Tue Oct 11, 2005 6:11 am 
User avatar
Joomla! Intern
Joomla! Intern
Offline

Joined: Mon Aug 22, 2005 5:14 am
Posts: 76
Location: Cebu Advertising Community
I have one problem though... Why is it every time a frontend member/user can't write an event. It has a Java error when they try to write one. The cursor doesn't show up.  :(

_________________
My first Joomla site & I'm proud I made it http://www.cebuanoads.com


Top
   
 
Posted: Thu Oct 13, 2005 5:03 pm 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Tue Oct 11, 2005 4:04 pm
Posts: 43
Last BoyScout wrote:


For me it was commenting out line # 540-546


Me too, thanks all

Carl


Top
  E-mail  
 
Posted: Thu Oct 13, 2005 6:44 pm 
User avatar
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Wed Oct 12, 2005 9:30 pm
Posts: 42
Location: Princeton, NJ
Thank you,

works just fine now.

Alex

_________________
http://www.molbio.princeton.edu


Top
   
 
Posted: Fri Oct 14, 2005 8:34 pm 
Joomla! Intern
Joomla! Intern
Offline

Joined: Wed Oct 12, 2005 10:16 pm
Posts: 90
I have to say though, the Events Component was working for me even with that bit of code but I took it out anyway since everyone else did,

My main problem with events is that when I try to add/edit an event via the admin, the save button which is javascript does not work

If i only type in the title and description and click save it will save it but then when i go to the publishing tab and do a repeat area the save buttion does nothing.

Has anyone else had this trouble in Safari Browser ?

I tested it in Firefox and it works but not in Safari

I also noticed then when i go into the publishing tab and back to the events tab, my description ends up missing


Last edited by warmac on Fri Oct 14, 2005 8:42 pm, edited 1 time in total.

Top
  E-mail  
 
Posted: Mon Oct 17, 2005 11:18 pm 
User avatar
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Fri Sep 16, 2005 3:42 am
Posts: 9
Location: Milwaukee, WI, USA
Thank you very much for offering this fix.  It really had me "stymied."  I upgraded one site to Joomla! with no problem.  For another site, when I did a fresh install and manually migrated the SQL data, I got the error.  Most curious.

To the point -- I found the text cybersalt describes, but in lines 537-546; not 1073-1091.


Top
  E-mail  
 
Posted: Mon Oct 24, 2005 1:11 pm 
Joomla! Fledgling
Joomla! Fledgling
Offline

Joined: Mon Oct 24, 2005 12:38 pm
Posts: 2
Sorry but I don't speak english very well ... :-\

Hi,

I installed the Events component on Joomla 1.0 and obtained a erreur.

--------------------------------
Fatal error: Cannot redeclare clone() (previously declared in /home/handisport/domains/handisport26.com/public_html/includes/compat.php50x.php(9) : eval()'d code:1) in /home/handisport/domains/handisport26.com/public_html/components/com_events/events.php(545) : eval()'d code on line 2
--------------------------------

I followed the recommendations (I've find a solution here) and carried out the modifications in events.php.  On my website, when I accede in the calendar, it is indicated that there is no event (but i've got an event) and a message appears: 

----------------------------------
Warning: Division by zero in /home/handisport/domains/handisport26.com/public_html/includes/pageNavigation.php on line 96

Warning: Division by zero in /home/handisport/domains/handisport26.com/public_html/includes/pageNavigation.php on line 97
----------------------------------

What is it???  How to solve this problem?? 
Thank you in advance.


Top
   
 
Posted: Wed Oct 26, 2005 2:26 pm 
Joomla! Enthusiast
Joomla! Enthusiast
Offline

Joined: Mon Aug 29, 2005 7:59 pm
Posts: 104
I never got the Events Calendar to work in my newly installed Joomla 1.0.3.

This is an error I get:

Cannot write to /var/www/vhosts/handsoffvenezuela.org/httpdocs/includes/patTemplate/patTemplate/Function!
Either PatTemplate isn't installed into Mambo or /var/www/vhosts/handsoffvenezuela.org/httpdocs/includes/patTemplate/patTemplate/Function doesn't have the required permissions
Errors occurred during installation!

Everything seems fine and the admin component works, I see the latest events on the homepage etc, but if you click on the latest events it just displays a blank page. I tried both with an existing database and a new one.

It's driving me nuts since there is no other viable latest events component for Joomla available as far as I can see and I can't get this one to work :(

_________________
* "The philosophers have only interpreted the world; the point is to change it." (Karl Marx) http://www.marxist.com
* "I am convinced that the way to build a new and better world is not capitalism. Capitalism leads us straight to hell."
(Hugo Chavez) http://www.handsoffvenezuela.org


Top
  E-mail  
 
Posted: Wed Oct 26, 2005 5:14 pm 
Joomla! Intern
Joomla! Intern
Offline

Joined: Wed Oct 12, 2005 10:16 pm
Posts: 90
Yea the same thing happen to me, typical when I install a component if it doesn't work the first time the way its suppose to I classify it as junk and move on to the next component.  You're better off not wasting your time with it if it doesn't work.  You shouldn't have to hack something to death to get it to work.  There will be another event component that will come along soon by someone else that will be better than this one check around for other similiar components.


Top
  E-mail  
 
Posted: Wed Oct 26, 2005 6:35 pm 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Tue Oct 25, 2005 5:52 pm
Posts: 12
I just installed extCalendar Component  ( http://mamboforge.net/projects/extcalendar ) onto a fresh install of Joomla  1.0.3 and no problems so far....


Top
  E-mail  
 
Posted: Wed Oct 26, 2005 6:48 pm 
Joomla! Enthusiast
Joomla! Enthusiast
Offline

Joined: Mon Aug 29, 2005 7:59 pm
Posts: 104
Yes, after spending about a day in total to get Latest Events to work, I think I will settle down for extCalendar, which indeed just seems to work. I'm just concerned about security: it's beta and anyone can add events.
In a way it is a consolation Latest Events doesn't work for other people either  ;D Pity because I was quite happy with it and it did its job just fine.

_________________
* "The philosophers have only interpreted the world; the point is to change it." (Karl Marx) http://www.marxist.com
* "I am convinced that the way to build a new and better world is not capitalism. Capitalism leads us straight to hell."
(Hugo Chavez) http://www.handsoffvenezuela.org


Top
  E-mail  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 56 posts ]  Go to page 1, 2  Next

Quick reply

 



Who is online

Users browsing this forum: No registered users and 8 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group