Menu
Welcome, Guest
Username: Password: Secret Key Remember me
Welcome to the Developer forum!
Get all your questions answered here. Learn to integrate calendar in your application.
  • Page:
  • 1

TOPIC: Problems with php-examples

Problems with php-examples 14 years 9 months ago #230

  • amstelex
  • amstelex's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 1
  • Thank you received: 0
Hello,

I'm trying to run the php example from your basic package but I run into some issues.

Actually I have implemented all steps from the README file (run the SQL queries, configure dbConfig.php) but when try to open calendar.php - I get only a blank page.

If I try to open it via IE8, following errors appear:

Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; InfoPath.2)
Timestamp: Thu, 28 Jan 2010 23:37:05 UTC


Message: 'Web2Cal' is undefined
Line: 98
Char: 1
Code: 0
URI: test.doit.bg/js/web2cal.support.js


Message: 'Web2Cal' is undefined
Line: 2
Char: 3
Code: 0
URI: test.doit.bg/js/web2cal.default.template.js


Message: 'Web2Cal' is undefined
Line: 13
Char: 1
Code: 0
URI: test.doit.bg/js/icalparser.js


Message: 'Web2Cal' is undefined
Line: 105
Char: 9
Code: 0
URI: test.doit.bg/php-examples/calendar.php

Thanks in advance for your help.
Regards,
Daniel

Please Log in to join the conversation.

Re: Problems with php-examples 14 years 9 months ago #231

  • ragskarnam
  • ragskarnam's Avatar
  • Visitor
  • Visitor
I faced similar issues. Probably, the PHP is referring to the wrong version of web2cal. Change it to web2cal 1.2.9 (Please check based on your version).

Let me know how it goes

Please Log in to join the conversation.

Re: Problems with php-examples 14 years 9 months ago #233

  • andry
  • andry's Avatar
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 2
  • Thank you received: 0
when changing from Web2Cal-1.2.8-min.js to Web2Cal-1.2.9-min.js. it loads the calendar perfectly, but when i'm adding an event it seems the "Group" dropdown is not loading from 'calendar' table. so I can't add an Event, Thanks in advance for your help :)

Please Log in to join the conversation.

Re: Problems with php-examples 14 years 9 months ago #234

  • ragskarnam
  • ragskarnam's Avatar
  • Visitor
  • Visitor
If you can't see any values in the drop down, a good chance is that, your DB configuration isn't right.

Can you see 2 calendars in the groups list on the left side(under "hide/show")?

If you can't see, then definitely your DB config isn't right.

Let me know how it goes

Please Log in to join the conversation.

Re: Problems with php-examples 14 years 9 months ago #236

  • andry
  • andry's Avatar
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 2
  • Thank you received: 0
Thanks

After I remark include('dbConfig.php') on createevent.php,getevents.php,updateevent.php,deleteevent.php and change the $db = new db( parameter with my environment, then the php examples is working perfectly :)

Please Log in to join the conversation.

Re: Problems with php-examples 14 years 8 months ago #239

  • superleon
  • superleon's Avatar
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 11
  • Thank you received: 0
I have exactly the same problem, <script src="../js/Web2Cal-1.2.9-min.js"> </script> was modified in calendar.php

BUT

why dbConfig.php is not called?

how rewrite exactly the $db = new db(EZSQL_DB_USER, EZSQL_DB_PASSWORD, EZSQL_DB_NAME, EZSQL_DB_HOST); ?? with my localhost test configuration
define("EZSQL_DB_USER", "root");			// <-- mysql db user
	define("EZSQL_DB_PASSWORD", "");		// <-- mysql db password
	define("EZSQL_DB_NAME", "w2cbasicdemo");		// <-- mysql db pname
	define("EZSQL_DB_HOST", "localhost");	// <-- mysql server host

Please Log in to join the conversation.

Re: Problems with php-examples 14 years 8 months ago #240

  • superleon
  • superleon's Avatar
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 11
  • Thank you received: 0
OK it's solved:

I have put the source of dbConfig.php instead of include('dbConfig.php');

<?php
error_reporting(E_ERROR);
define("EZSQL_DB_USER", "root"); // <-- mysql db user
define("EZSQL_DB_PASSWORD", ""); // <-- mysql db password
define("EZSQL_DB_NAME", "w2cbasicdemo"); // <-- mysql db pname
define("EZSQL_DB_HOST", "localhost"); // <-- mysql server host
include('dbutil.php');
?>

Please Log in to join the conversation.

Re: Problems with php-examples 14 years 3 months ago #336

  • shirish
  • shirish's Avatar
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 12
  • Thank you received: 0
I am facing the same problem neither group combobox gets populated with db values nor
2 calendars in the groups list on the left side(under \"hide/show\")? are seen,Also I wanted to ask whether createevent.php,getevents.php,updateevent.php,deleteevent.php are missing in basic version download....does we have to buy the premium version for it???

Please Log in to join the conversation.

Re: Problems with php-examples 14 years 3 months ago #337

  • shirish
  • shirish's Avatar
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 12
  • Thank you received: 0
I am facing the same problem neither group combobox gets populated with db values nor
2 calendars in the groups list on the left side(under \"hide/show\")? are seen,Also I wanted to ask whether createevent.php,getevents.php,updateevent.php,deleteevent.php are missing in basic version download....does we have to buy the premium version for it???

Please Log in to join the conversation.

  • Page:
  • 1
Time to create page: 0.070 seconds
Powered by Kunena Forum

LATEST IN FORUM

  • No posts to display.

ABOUT US