Easy PHP Calendar - We really take care of your dates!


Go Back   Easy PHP Calendar > General Discussion > Installation / Upgrade Questions

Installation / Upgrade Questions Questions or issues concerning the installation of the Easy PHP Calendar script.

Closed Thread
 
Thread Tools Search this Thread Display Modes

Very weird problem
Old 07-18-2012, 06:50 AM   #1
alleymize
Calendar User
 
alleymize is offline
Join Date: Jul 2010
Posts: 16
Default Very weird problem

I have one domain with the calendar working correctly. I have a second domain on a different server that I have installed the calendar and have everything setup. I am using the first domains calendar database to control the second domains. (I have the second license installed no problems.)

I can do all the customizing and such in the admin but when I embed the calendar in a page on the second domain, the place the calendar should be is a large blank area and it even removes some of my other content.

I am using version 6.4.2

I can go to the event manager area in the admin to enter date items on the second domain and can see all the content from the remote database inserted for dates and even see the three calendars.

When I try to view the calendar/demo.php I get a 502 server error page.

Please help.
 

Old 07-18-2012, 06:55 AM   #2
ve9gra
Support Team
 
ve9gra's Avatar
 
ve9gra is offline
Join Date: Jun 2003
Location: New Brunswick, Canada
Posts: 4,969
Default

That would be because the require() is failing, hence your page stops loading. Confirm the path that you're using in your integrated page.

If you want to try it out without causing your page to stop loading, use "include()" instead of "require()". Note: This should only be done for testing.

If the path is all correct, then something else is failing. You did confirm the server was compatible by running the Tester, right?
__________________
-- Gervais
EPC Tutorials... We're here to help!
Offering custom integration services. Contact me here.
* Not affiliated with EasyPHPCalendar or NashTech Inc.
 

Old 07-18-2012, 07:07 AM   #3
alleymize
Calendar User
 
alleymize is offline
Join Date: Jul 2010
Posts: 16
Default

Yes I did run the tester with no problems.

I have changed the require to include and the page loads properly but still missing the calendar, just the space where it should be and I now get this error at the top of the page:


Warning: include(/calendar/calendar.php) [function.include]: failed to open stream: No such file or directory in C:\inetpub\vhosts\lma-eap.com\httpdocs\crisis_management.php on line 31

Warning: include() [function.include]: Failed opening '/calendar/calendar.php' for inclusion (include_path='.;./includes;./pear') in C:\inetpub\vhosts\lma-eap.com\httpdocs\crisis_management.php on line 31

And the calendar.php is off the root in the calendar folder.
 

Old 07-18-2012, 07:11 AM   #4
alleymize
Calendar User
 
alleymize is offline
Join Date: Jul 2010
Posts: 16
Default

I just tried to remove the first slash from the include so it is now calendar/calendar.php and the page now loads properly and their is no errors at the top but still there is no calendar.
 

Old 07-18-2012, 09:04 AM   #5
alleymize
Calendar User
 
alleymize is offline
Join Date: Jul 2010
Posts: 16
Default

Any help anyone???? I still have no calendar on the second domain just an empty space.
 

Old 07-18-2012, 09:57 AM   #6
Brian
EPC Developer
 
Brian's Avatar
 
Brian is offline
Join Date: Jun 2001
Location: Florida, USA
Posts: 10,907
Default

Has the 500 error gone away? If not, you'll need to determine why you're getting this error.
__________________
-- Brian

Questions?

Instructions | FAQs | Errors FAQ | Forums | Support
| Web Site Hosting
 

Old 07-18-2012, 10:40 AM   #7
alleymize
Calendar User
 
alleymize is offline
Join Date: Jul 2010
Posts: 16
Default

No it has not on the demo.php page but I can see the calendars working no problem in the event manager in the admin.
 

Old 07-18-2012, 10:42 AM   #8
Brian
EPC Developer
 
Brian's Avatar
 
Brian is offline
Join Date: Jun 2001
Location: Florida, USA
Posts: 10,907
Default

You may have some kind of permissions issue on the server. A 500 error should be logged by the server. Check the server error log to see what the error is.
__________________
-- Brian

Questions?

Instructions | FAQs | Errors FAQ | Forums | Support
| Web Site Hosting
 

Old 07-19-2012, 05:54 AM   #9
alleymize
Calendar User
 
alleymize is offline
Join Date: Jul 2010
Posts: 16
Default

I have talked with the server people and they can not figure it out. Any help would be greatly appreciated...
 

Old 07-19-2012, 06:24 AM   #10
alleymize
Calendar User
 
alleymize is offline
Join Date: Jul 2010
Posts: 16
Default

JUst checking but I have version 6.4.2 Does it work with PHP version 5.2.17?
 

Old 07-19-2012, 07:22 AM   #11
ve9gra
Support Team
 
ve9gra's Avatar
 
ve9gra is offline
Join Date: Jun 2003
Location: New Brunswick, Canada
Posts: 4,969
Default

Open up calendar/calendar.php and give me the values that are entered for $URLPath and $ServerPath.

The reason you're getting (the 502) is likely caused by having misconfigured the calendar. It seems like your server tries to load data from an upstream server... In a regular setup of the calendar, this should never happen.

The reason why I'm pointing the finger at calendar.php is because your Event Manager and Setup Manager both work... but nothing on the 'public' side works... And everything that is 'public' loads calendar.php first. It's just the common denominator in your problem equation
__________________
-- Gervais
EPC Tutorials... We're here to help!
Offering custom integration services. Contact me here.
* Not affiliated with EasyPHPCalendar or NashTech Inc.
 

Old 07-19-2012, 07:46 AM   #12
alleymize
Calendar User
 
alleymize is offline
Join Date: Jul 2010
Posts: 16
Default

These values were created by the setup program. As stated above, I do have everything setup on this domain but using the database from another domain, is that the problem you are talking about.

$serverPath="C:/inetpub/vhosts/lma-eap.com/httpdocs/calendar/";

$urlPath="/calendar/";

And all the calendar files are in a folder called calendar on the root of my domain
 

Old 07-19-2012, 08:17 AM   #13
ve9gra
Support Team
 
ve9gra's Avatar
 
ve9gra is offline
Join Date: Jun 2003
Location: New Brunswick, Canada
Posts: 4,969
Default

No, if there was a problem with using a different database, then the Event Manager would not work.

One thing to note: you may end up running into problems if your website uses a database for content. Depending on the configuration of your website, it's possible that integrating the calendar will break your connection to your content database, redirecting the queries for content to the calendar database.

Those paths look correct.

Looks like I may have just blown my original theory out of the water... calendar.php does run correctly. Or at least it does for the $CSS and $OL lines.

Doing a bit of Google searching brought up several threads about IIS producing 502 errors while having PHP configured as a CGI application. If you have the option to do so, can you configure PHP as an ISAPI extension instead?

That is but one of many possible solutions... but none are related to the calendar and all with how PHP is configured to run in IIS.
__________________
-- Gervais
EPC Tutorials... We're here to help!
Offering custom integration services. Contact me here.
* Not affiliated with EasyPHPCalendar or NashTech Inc.
 

Old 07-19-2012, 08:18 AM   #14
ve9gra
Support Team
 
ve9gra's Avatar
 
ve9gra is offline
Join Date: Jun 2003
Location: New Brunswick, Canada
Posts: 4,969
Default

As an alternative solution, you may want to simply display your other domain's calendar in an iframe on this domain.
__________________
-- Gervais
EPC Tutorials... We're here to help!
Offering custom integration services. Contact me here.
* Not affiliated with EasyPHPCalendar or NashTech Inc.
 

Old 07-19-2012, 08:51 AM   #15
alleymize
Calendar User
 
alleymize is offline
Join Date: Jul 2010
Posts: 16
Default

I actually have the calendar positioned via css, how would I go about doing the iframe if that would work.

I know how to create an iframe but how to include the calendar is the code I am unsure of.
 

Old 07-19-2012, 09:02 AM   #16
ve9gra
Support Team
 
ve9gra's Avatar
 
ve9gra is offline
Join Date: Jun 2003
Location: New Brunswick, Canada
Posts: 4,969
Default

On your other domain, you're going to create an "empty" HTML page with only the calendar. In fact, you can use demo page as a test. Then point to that page with your iframe.

And you should still be able to have the iframe inside of your div for positioning. [ref]
__________________
-- Gervais
EPC Tutorials... We're here to help!
Offering custom integration services. Contact me here.
* Not affiliated with EasyPHPCalendar or NashTech Inc.
 

Old 07-19-2012, 09:21 AM   #17
alleymize
Calendar User
 
alleymize is offline
Join Date: Jul 2010
Posts: 16
Default

Ok I tried the ASAPI and it broke everything so I put it back.

I have the iframe idea working perfectly except when you hover over the event the popup is staying inside the frame and not being fully seen. If it weren't for that it would work perfect. Any ideas on it?
 

Old 07-19-2012, 09:51 AM   #18
Brian
EPC Developer
 
Brian's Avatar
 
Brian is offline
Join Date: Jun 2001
Location: Florida, USA
Posts: 10,907
Default

That's a limitation of using an iFrame. You should use the on-click pop-ups instead.
__________________
-- Brian

Questions?

Instructions | FAQs | Errors FAQ | Forums | Support
| Web Site Hosting
 

Old 07-19-2012, 09:57 AM   #19
alleymize
Calendar User
 
alleymize is offline
Join Date: Jul 2010
Posts: 16
Default

I actually use both but maybe on this site to get around this problem we just have the on click. I was trying to make it work by making a huge iframe transparent back and zindex but then other items are not clickable.
 

Old 07-19-2012, 10:14 AM   #20
alleymize
Calendar User
 
alleymize is offline
Join Date: Jul 2010
Posts: 16
Default

Thanks for all your help and I have successfully installed and have it working without the hover coming up but just the clicking version and the client likes it. Thanks again for all your help and expertise.
 
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem conecting to database atcaro General 9 08-31-2009 09:34 PM
Problem with the navegation botton comsiconsa Customizations (Themes / Templates) 9 03-17-2009 11:04 AM
problem with accents and other characters GregClow General Support 9 09-29-2008 11:29 AM
Install Problem SinJin Installation / Upgrade Questions 3 11-19-2006 09:41 PM
weird problem silicon General Support 2 12-01-2003 09:26 AM



All times are GMT -4. The time now is 04:16 PM.


vBulletin skins developed by: eXtremepixels
Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Copyright 2009 NashTech, Inc.

| Home | Register | Today's Posts | Search | New Posts |