Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

FMWebFrame: FYI PHP Notices/Warnings

Featured Replies

Hi Tim
 
Just testing out FM WebFrame for my first time, starting with Container Uploading.
 
I'm using your Demo (on my server) and when I first loaded the site in my browser, I got
Notice: Use of undefined constant nickname - assumed 'nickname' in /Library/WebServer/Documents/FMWebFrameDemo/FMWebFrame/settings.php on line 91

& similar for lines through 95.

 
Wrapping each of those keys in quotes seems to fix the Notice.
 
 
(I also got:
Warning: date() [<a href='function.date'>function.date</a>]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/Los_Angeles' for 'PDT/-7.0/DST' instead in /Library/WebServer/Documents/FMWebFrameDemo/application/ui-template.php on line 127

so I added 

date_default_timezone_set('America/Los_Angeles');

to settings.php, although I realize you may just expect developers to do that on their own sites anyway.)

 

PHP 5.3.28 on OS X

 

Just thought you might like to know.

 

Thanks for building this!

 

Best,

-Joel

 

 

Joel --

 

Thanks for the heads up. I think you're seeing these notices and warnings because of how PHP is configured. In any case, I've adjusted the code, and you'll see these addressed in the next version (which is, hopefully, coming soon).

 

Please let me know if you see any other notices or warnings, or if you have any suggestions for future versions.

 

-- Tim

  • 2 weeks later...
  • Author

Hi TIm

 

You asked for any other warnings. I just got these when testing on Windows Server 2008.

 

The file did upload (although with the .html issue mentioned in my other thread)

 

Perhaps a forward/backward slash issue?

 

-Joel

 

post-99901-0-57186800-1414196533_thumb.p

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.