CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviMail (Moderator: Piotr Szotkowski) »
  • Fatal error when switching to php5 on a Joomla 1.0.11
Pages: [1]

Author Topic: Fatal error when switching to php5 on a Joomla 1.0.11  (Read 8899 times)

mini_mei

  • Guest
Fatal error when switching to php5 on a Joomla 1.0.11
June 01, 2007, 06:00:36 am
I read that civimail only functions with php5 so i switched to php5 on my local xampp but then when trying to access the civicrm component I got the following error:

Quote
Fatal error: Call to a member function translate() on a non-object in C:\Programme\xampp\htdocs\marienbruecke\administrator\components\com_civicrm\civicrm\CRM\Core\I18n.php on line 178

I have the joomfish V1.7 (2006-05-01) installed and had to out comment a similar line with the translate() function
in another component for it to work again.
I did exactly that and it seams to work but since the function has to be there for a reason I thought I post the error

here are some of my settings:
Joomla V1.0.11
joomfish V1.7 (2006-05-01)
XAMPP for Windows Version 1.5.1
PHP Version 5.1.1
Database (on another Server):
phpMyAdmin 2.7.0-pl1
MySQL 5.0.22-Debian_0ubuntu6.06.3-log

ps: I also read that there are no mailingtemplates in civicrm in version 1.7, are there older versions that do?

Piotr Szotkowski

  • Moderator
  • I live on this forum
  • *****
  • Posts: 1497
  • Karma: 57
Re: Fatal error when switching to php5 on a Joomla 1.0.11
June 01, 2007, 06:15:19 am
Did you switch your CiviCRM version from the PHP 4 one to the PHP 5 one? We do have different tarballs for the two PHP versions.
If you found the above helpful, please consider helping us in return – you can even steer CiviCRM’s future and help us extend CiviCRM in ways useful to you.

Piotr Szotkowski

  • Moderator
  • I live on this forum
  • *****
  • Posts: 1497
  • Karma: 57
Re: Fatal error when switching to php5 on a Joomla 1.0.11
June 01, 2007, 06:17:49 am
Quote from: mini_mei on June 01, 2007, 06:00:36 am
ps: I also read that there are no mailingtemplates in civicrm in version 1.7, are there older versions that do?

You mean message templates for CiviMail? This is issue CRM-1668, currently pushed to CiviCRM 2.
If you found the above helpful, please consider helping us in return – you can even steer CiviCRM’s future and help us extend CiviCRM in ways useful to you.

mini_mei

  • Guest
Re: Fatal error when switching to php5 on a Joomla 1.0.11
June 01, 2007, 07:01:25 am
Quote
Did you switch your CiviCRM version from the PHP 4 one to the PHP 5 one? We do have different tarballs for the two PHP versions.

No I only switched the php version on my local server (xampp)
and now that you mention it I did install the php4 version...
Do I have to change it and if so, what's the best way of doing it?

Piotr Szotkowski

  • Moderator
  • I live on this forum
  • *****
  • Posts: 1497
  • Karma: 57
Re: Fatal error when switching to php5 on a Joomla 1.0.11
June 01, 2007, 07:08:37 am
Quote from: mini_mei on June 01, 2007, 07:01:25 am
Quote
Did you switch your CiviCRM version from the PHP 4 one to the PHP 5 one? We do have different tarballs for the two PHP versions.

now that you mention it I did install the php4 version...
Do I have to change it and if so, what's the best way of doing it?

Yes, you have to change your CiviCRM version. The best way to do it is to download the proper file (civicrm-*-joomla-php5.zip) from our SourceForge page and unpack it in place of your PHP 4 version of CiviCRM.
If you found the above helpful, please consider helping us in return – you can even steer CiviCRM’s future and help us extend CiviCRM in ways useful to you.

mini_mei

  • Guest
Re: Fatal error when switching to php5 on a Joomla 1.0.11
June 01, 2007, 07:33:46 am
It seems I'm having the same problem I already had when trying to download from your SourceForge once see here
I don't know why I have no problems downloading any other packages from SourceForge (maybe because it's so big?)
You were so nice to send me the tarball via email, could you send me the php5 version too that'd be great!

And thank you very much for your fast help! (you're a lifesaver - I need to finish the page today at least to a stage where it can be presented for a first look)

Edit:
Almost forgot: do I need to update the Database too or is overwriting the folders with the php5 version all that has to be done?


« Last Edit: June 01, 2007, 07:40:45 am by mini_mei »

Piotr Szotkowski

  • Moderator
  • I live on this forum
  • *****
  • Posts: 1497
  • Karma: 57
Re: Fatal error when switching to php5 on a Joomla 1.0.11
June 01, 2007, 07:55:27 am
Quote from: mini_mei on June 01, 2007, 07:33:46 am
It seems I'm having the same problem I already had when trying to download from your SourceForge

You can try different mirrors, maybe that would fix it.

Quote from: mini_mei on June 01, 2007, 07:33:46 am
You were so nice to send me the tarball via email, could you send me the php5 version too that'd be great!

Sure, sent. :)

Quote from: mini_mei on June 01, 2007, 07:33:46 am
Almost forgot: do I need to update the Database too or is overwriting the folders with the php5 version all that has to be done?

No, the database is independent from the PHP version, and we support only one database version (MySQL 4.1+) in CiviCRM 1.7 anyway.
If you found the above helpful, please consider helping us in return – you can even steer CiviCRM’s future and help us extend CiviCRM in ways useful to you.

mini_mei

  • Guest
Re: Fatal error when switching to php5 on a Joomla 1.0.11
June 01, 2007, 08:42:34 am
Thank you very much!

Now I'm having another problem (sorry to bother you so much!)
When trying to resend a mailing I checked the text via the preview and the following error message was displayed in the HTML part (the original mailing was just a text, I didn't upload any html)

Quote
Warning: file_get_contents(++++++++++++++++++ Community Partners ++++++++++++++++++ Helping people in Massachusetts get the health care coverage they need. August 23, 2006 - 12:35pm ------------------------- Massachusetts’ Medical Security Program (MSP) provides health care coverage to eligible people while they are receiving unemployment benefits.... Support our efforts to get health care coverage to all people of Massachusetts! Paste this link into your web browser: https://www.example.org/civicrm/contribute/transact?reset=1&id=1 To unsubscribe from this newsletter, send email to the this address: {action.unsubscribe} To never receive email from Community Partners, send email to this address: {action.optOut} This email is sent from: {domain.address} ) [function.file-get-contents]: failed to open stream: No error in C:\Programme\xampp\htdocs\marienbruecke\administrator\components\com_civicrm\civicrm\CRM\Mailing\Page\Preview.php on line 82

and this was added to the text from the textmail in the preview (the original text was in the preview too)

Quote
) [<a href='function.file-get-contents'>function.file-get-contents</a>]: failed to open stream: No error in <b>C:\Programme\xampp\htdocs\marienbruecke\administrator\components\com_civicrm\civicrm\CRM\Mailing\Page\Preview.php</b> on line <b>82</b><br />

after hitting next I got an empty mail on my admins address (the original testmail was sed without any problems though)

Piotr Szotkowski

  • Moderator
  • I live on this forum
  • *****
  • Posts: 1497
  • Karma: 57
Re: Fatal error when switching to php5 on a Joomla 1.0.11
June 01, 2007, 09:16:49 am
Can you please describe, step by step, on how I can replicate this? I just tried sending and re-sending a text-only mailing in my devel CiviCRM 1.7 sandbox and everything works as it’s supposed to.

It seems your install tries to put the file’s contents in the file_get_contents() call instead of the file’s name, but I just grepped through the source and there’s no place where this could happen. :|
If you found the above helpful, please consider helping us in return – you can even steer CiviCRM’s future and help us extend CiviCRM in ways useful to you.

mini_mei

  • Guest
Re: Fatal error when switching to php5 on a Joomla 1.0.11
June 01, 2007, 10:30:32 am
I left the name and the group as I had set them in the mailing from when I created it (step 1), I did not include any previous mailings (just had the one I wanted to resend  anyway - step 2) I didn't load up any new files so I also just clicked on next on step 3 and and then when on step 4 the error was displayed in the preview as I described.
I did create that mailing when still having the php4 version on, the same error was shown then too but I thought that this was because of the wrong version so I retried it now with the php5 but the same happened.

I also created a new mailing (after updating my files to the php5 version) this time also with an html file (no problems with the upload)
and this time I got the first testmail - the html version - two times and when trying to resend again the same error messages in both previews (above them the original text - text and html ) and in my admin mail I got one empty mail (with the correct about thought)

Piotr Szotkowski

  • Moderator
  • I live on this forum
  • *****
  • Posts: 1497
  • Karma: 57
Re: Fatal error when switching to php5 on a Joomla 1.0.11
June 02, 2007, 03:42:59 am
Hm, this is very strange. We put the contents of the mailings in the civicrm_mailing table, in the body_text and body_html columns, so we shouldn’t do any file checks on re-sends (provided you don’t specify a file in the ‘Upload Message’ step).

Is this on a sandbox I could access, or your personal computer, not accessible from outside?
If you found the above helpful, please consider helping us in return – you can even steer CiviCRM’s future and help us extend CiviCRM in ways useful to you.

mini_mei

  • Guest
Re: Fatal error when switching to php5 on a Joomla 1.0.11
June 04, 2007, 02:44:39 am
Sorry for the late answer,
no sorry the page is still only on my local PC
I checked the tables and as you say the text of the mailings html and text version are both where they should be.
I only have civimail enabled in Global Settings - Enable Components all others (contribute, member and event) are disabled could this be a problem?
I also didn't edit any mail headers/footers (all default for now) I also didn't include them in the mailings (but they seem to be optional)
 
By the way the reason why I first tried to resend a mailing was because it was not send on the scheduled time. it wasn't send either when I ticked on the send immediately option in the 5th step (schedule/send) all mailings status is on waiting and there are no start and end dates...
the only time a group receives a mailing is when i add the group directly in step 4 when the test mail is send.

I read on this forum someone else had a similar problem with the send immediately option ticked on (you can find it here )
but he had the durpal version so I don't know if his solution would also work for me.Although i too have the PHP running on a different machine than the database but both are running in the same timezone, but when I look into my Joomla Global Configuration Server Offset is set to -1 so even when having the correct timezone set in Joomlas Global Configuration Joomla itself it shows the time one hour too late (when its actually 11:30 Joomla shows 10:30) it even gets reset by the server when i change it to '0' in Joomlas configuration.php (but you said in the other thread I mentioned that civicrm doesn't hook on to the cms's time information so I don't think this is the problem)

I also took a look into civicrm_mailing_job.scheduled_date and the time was off by about ten minutes so that shouldn't make a big difference.

you said before that
Quote
No, the database is independent from the PHP version, and we support only one database version (MySQL 4.1+) in CiviCRM 1.7 anyway.
My database is MySQL 5.0.22-Debian_0ubuntu6.06.3-log so there should be no problem there either right?


Piotr Szotkowski

  • Moderator
  • I live on this forum
  • *****
  • Posts: 1497
  • Karma: 57
Re: Fatal error when switching to php5 on a Joomla 1.0.11
June 04, 2007, 03:02:42 am
Quote from: mini_mei on June 04, 2007, 02:44:39 am
no sorry the page is still only on my local PC

That makes it a bit hard to debug. :) I never ran CiviCRM on a Windows box, so I’m a bit stumped whether this could be a file system issue (but it shouldn’t be). The error indicates file_get_contents() is being called with some garbage in place of the filename, but I can’t guess anything beyond this point. :|

Quote from: mini_mei on June 04, 2007, 02:44:39 am
I only have civimail enabled in Global Settings - Enable Components all others (contribute, member and event) are disabled could this be a problem?

No, definitely not.

Quote from: mini_mei on June 04, 2007, 02:44:39 am
By the way the reason why I first tried to resend a mailing was because it was not send on the scheduled time.

Most probably you don’t have your cronjob running. Please refer to the cronjob step of the installation guide; as a temporary solution, try putting /queue in place of the ?reset=1 in the URL and see whether the queued mailings get send (on my local sandbox, the URL is the following: http://civicrm-17/civicrm/mailing/queue).

Quote from: mini_mei on June 04, 2007, 02:44:39 am
you said before that
Quote
No, the database is independent from the PHP version, and we support only one database version (MySQL 4.1+) in CiviCRM 1.7 anyway.
My database is MySQL 5.0.22-Debian_0ubuntu6.06.3-log so there should be no problem there either right?

No, definitely no problem.
If you found the above helpful, please consider helping us in return – you can even steer CiviCRM’s future and help us extend CiviCRM in ways useful to you.

mini_mei

  • Guest
Re: Fatal error when switching to php5 on a Joomla 1.0.11
June 04, 2007, 06:58:06 am
Quote from: Piotr Szotkowski on June 04, 2007, 03:02:42 am
That makes it a bit hard to debug. :)

Sorry I'm making this so hard  :-[ but thank you for being so patient with me  :-*

Quote from: Piotr Szotkowski on June 04, 2007, 03:02:42 am
Most probably you don’t have your cronjob running. Please refer to the cronjob step of the installation guide; as a temporary solution, try putting /queue in place of the ?reset=1 in the URL and see whether the queued mailings get send (on my local sandbox, the URL is the following: http://civicrm-17/civicrm/mailing/queue).

my colleague said something similar about the cronjob (and he'll try it out later, I'll have a look into the installation guide myself though - it's always a  good idea to learn how those thing are done!)
I'll let you know how it turned out
and thanks again! the "/queue" worked perfectly  ;D

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviMail (Moderator: Piotr Szotkowski) »
  • Fatal error when switching to php5 on a Joomla 1.0.11

This forum was archived on 2017-11-26.