Jump to content
View in the app

A better way to browse. Learn more.

The Uniform Server Community

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.

PEAR directory bug 8.5.4-8.6.7

Featured Replies

In Coral 8.5.4 (checked the current 8.6.7 and it appears to still be there), the us_pear/index.php tries to naively guess its location using

$path_array      = explode("\\home",dirname(__FILE__)); // Split at folder us_lear

This of course fails if the directory that Uniserver is installed in happens to have 'home' in it. (In my case, I had it installed in c:\home\Uniserver, so us_pear was in C:\home\UniServer\home\us_pear.

 

Not only did it guess its paths wrong, even when I updated the pear.conf file with the correct paths, it just kept overwriting it with the wrong paths.

 

My solution: replaced that line with

  $path_array = array(realpath(__DIR__ .'/../..'));

Now it correctly finds the Uniserver root two directories up and can find itself (instead of thinking that it's at C:\home\us_pear).

 

Hope that helps somebody else.

Thanks for your feedback; correction will be implemented in next release 8.6.8

 

The above bug was perpetuated in 9.0.0-Steel corrected in next release B5

 

All the best

Ric :)

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

Account

Navigation

Search

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.