Home
Download
Add-ons
Help
Forum
Organisation
Project
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email?
May 26, 2012, 08:26:10 PM
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
Search:
Advanced search
Interested in joining the WebsiteBaker team?
For more Information read
here
or on our
new website
.
155552
Posts in
21715
Topics by
7737
Members
Latest Member:
gx-world
WebsiteBaker Community Forum
English
Help & Support
(Moderators:
Argos
,
badknight
)
wbprofiles error
Pages: [
1
]
Go Down
Author
Topic: wbprofiles error (Read 1249 times)
djdeeno
Offline
Posts: 51
wbprofiles error
«
on:
September 17, 2011, 12:14:09 PM »
hi
Install the WBProfiles, i think its looks nice and can intergrate it with my video/chat but have some problems/errors, maybe someone know what this mean?
I have install al the requirments add ons but i have a error after the installation.
Fatal error: Call to undefined method wbProfilesAdmin::sanitizePath() in C:\hostdata\website\wb\modules\wbProfiles\inc\class.wbProfilesBase.php on line 1482
the line is this:
$path = $this->sanitizePath( dirname( __FILE__ ).'/../templates/'.$skin );
Anyone know what this mean?
Thanks allot
Logged
Ruud
WebsiteBaker Org e.V.
Offline
Posts: 2297
Re: wbprofiles error
«
Reply #1 on:
September 17, 2011, 03:01:04 PM »
did you install the other modules needed by this one?
http://www.websitebakers.com/pages/modules/interaction/wbprofiles.php
see: requirements
Logged
Professional WebsiteBaker Solutions
jdjdjd
Offline
Posts: 21
Re: wbprofiles error
«
Reply #2 on:
December 10, 2011, 08:39:25 PM »
I get similar errors when installing, even though all conditions for install are met.
The files are uploaded, but the module does not appear.
Logged
BlackBird
AddOn Development
Offline
Posts: 2069
Re: wbprofiles error
«
Reply #3 on:
December 12, 2011, 11:35:13 AM »
Could you please offer some more info? Which version of wbProfiles / wblib did you install? Which version of WB do you use? How did you install the modules? What do you mean with "does not appear"?
Logged
Alle großen Veränderungen beginnen im Kleinen
jdjdjd
Offline
Posts: 21
Re: wbprofiles error
«
Reply #4 on:
December 12, 2011, 01:55:21 PM »
Apologies for being so vague, I'm running 2.8.2, also tried with 1.1.2 lepton with the same result. PDO & sql driver installed. wblib 0.70, latest LibraryAdmin etc.
The error is:
Code:
Notice: Use of undefined constant LA_LIB_PATH - assumed 'LA_LIB_PATH' in /home/sites/testsite/public_html/lepton/modules/wbProfiles/install.php on line 79
Warning: require_once(LA_LIB_PATH/libraryadmin/inc/pclzip/pclzip.lib.php) [function.require-once]: failed to open stream: No such file or directory in /home/sites/testsite/public_html/lepton/modules/wbProfiles/install.php on line 79
Fatal error: require_once() [function.require]: Failed opening required 'LA_LIB_PATH/libraryadmin/inc/pclzip/pclzip.lib.php' (include_path='.:/usr/share/pear5:/usr/share/php') in /home/sites/testsite/public_html/lepton/modules/wbProfiles/install.php on line 79
The files are stored on the server, but no module appears. Deleting the wbprofiles folder under modules allows me to try the install again. Any advice appreciated, thanks.
edit: Also checked pclzip.lib.php and things look okay there.
«
Last Edit: December 12, 2011, 02:00:24 PM by jdjdjd
»
Logged
BlackBird
AddOn Development
Offline
Posts: 2069
Re: wbprofiles error
«
Reply #5 on:
December 12, 2011, 02:27:51 PM »
Ah! I think I've got it. Please try this: Open install.php (of wbProfiles) and find the following lines:
Code:
if ( ! file_exists( WB_PATH.'/modules/lib_jquery/plugins/movingboxes' ) ) {
// Include the PclZip class file
require_once( LA_LIB_PATH.'/libraryadmin/inc/pclzip/pclzip.lib.php');
(Should be line 77 ff)
Change this to:
Code:
if ( ! file_exists( WB_PATH.'/modules/lib_jquery/plugins/movingboxes' ) ) {
// Include the PclZip class file
require_once( WB_PATH.'/modules/libraryadmin/inc/pclzip/pclzip.lib.php');
Logged
Alle großen Veränderungen beginnen im Kleinen
jdjdjd
Offline
Posts: 21
Re: wbprofiles error
«
Reply #6 on:
December 12, 2011, 02:46:38 PM »
Thanks for the quick response, I tried your solution and ended up with some errors but was redirected to the admin login page. Here's what I'm getting now:
Code:
Fatal error: Cannot redeclare pclziputilpathreduction() (previously declared in /home/sites/testsite/public_html/lepton/modules/pclzip/pclzip.lib.php:5433) in /home/sites/testsite/public_html/lepton/modules/libraryadmin/inc/pclzip/pclzip.lib.php on line 5459
I may try again with a fresh install.
Edit: Tried afresh with 2.8.2 getting the error quoted above. Strange!
«
Last Edit: December 12, 2011, 03:05:16 PM by jdjdjd
»
Logged
BlackBird
AddOn Development
Offline
Posts: 2069
Re: wbprofiles error
«
Reply #7 on:
December 12, 2011, 03:15:57 PM »
Not _so_ strange... As
WB
LibraryAdmin uses the PCLZip class, too, this happens because it is loaded twice. I will fix that in the next Beta release of wbProfiles. Thanks for posting!
«
Last Edit: December 12, 2011, 03:17:47 PM by BlackBird
»
Logged
Alle großen Veränderungen beginnen im Kleinen
BlackBird
AddOn Development
Offline
Posts: 2069
Re: wbprofiles error
«
Reply #8 on:
December 12, 2011, 03:18:43 PM »
You may like to try this code:
Code:
// ----- install movingboxes jQuery plugin -----
if ( ! file_exists( WB_PATH.'/modules/lib_jquery/plugins/movingboxes' ) ) {
if ( ! class_exists( 'PclZip' ) ) {
// Include the PclZip class file
require_once( WB_PATH.'/modules/libraryadmin/inc/pclzip/pclzip.lib.php');
}
$archive = new PclZip($temp_file);
Logged
Alle großen Veränderungen beginnen im Kleinen
jdjdjd
Offline
Posts: 21
Re: wbprofiles error
«
Reply #9 on:
December 12, 2011, 03:31:16 PM »
No worries, I look forward to trying the module. Sadly I have more errors:
Code:
Fatal error: Using $this when not in object context in /home/sites/testsite/public_html/wb/modules/wbProfiles/install.php on line 90
90: $this->set_error('The file is not a valid Plugin! (Missing file "'.$check_for.'")');
Hope this is useful.
edit: Lepton throws up this:
Code:
Warning: require(/home/sites/testsite/public_html/lepton/modules/wbProfiles/info.php) [function.require]: failed to open stream: No such file or directory in /home/sites/testsite/public_html/lepton/admins/modules/install.php on line 150
Fatal error: require() [function.require]: Failed opening required '/home/sites/testsite/public_html/lepton/modules/wbProfiles/info.php' (include_path='.:/usr/share/pear5:/usr/share/php') in /home/sites/testsite/public_html/lepton/admins/modules/install.php on line 150
«
Last Edit: December 12, 2011, 03:35:26 PM by jdjdjd
»
Logged
BlackBird
AddOn Development
Offline
Posts: 2069
Re: wbprofiles error
«
Reply #10 on:
December 12, 2011, 04:15:39 PM »
WAH.... Copy & paste is evil!
I've just uploaded new version 0.67 to AMASP:
http://www.websitebakers.com/pages/modules/interaction/wbprofiles.php
I've removed the errornous function from the installer for now. You may install the Movingboxes jQuery Plugin from the install folder into LibraryAdmin manually; it's only needed if you allow file upload and have more than one image for an entry. The module will work without it, you'll just miss a nice gallery effect.
New since last version (incomplete list):
'New entries' tab (if there _are_ new entries)
'Locked entries' tab (if there _are_ locked entries)
Different icons for "entry locked by admin" and "newly added entry still locked"
Max. file size setting for file uploads
...
See a screenshot at AMASP. I hope this will install now.
'New entries' are filtered like this:
* X days since added (number of days can be set between 1 and 60 days)
* If "Approve by Admin" is set to "yes", the item must be locked
* Item is not expired
'Locked entries' means all items that are locked, no matter if they were locked by the admin or not.
The differences between the locks:
* A newly registered item is locked until the user has approved it (clicked on the unlock link he receives by eMail). If the "Approve by Admin" option is set to "yes", it will stay locked until the Admin unlocks it.
* If an item is expired and the "'Expired entries will be..." option is set to "locked".
These locks are marked with a yellow (well, orange) lock in the backend.
Any _unlocked_ item that is locked by the Admin later, by clicking on the lock-icon in the backend, is treated as a special "admin lock" and marked with a red lock in the backend.
There are no other functional differences between the lock types. Both mean "do not show in Frontend".
«
Last Edit: December 12, 2011, 04:23:51 PM by BlackBird
»
Logged
Alle großen Veränderungen beginnen im Kleinen
jdjdjd
Offline
Posts: 21
Re: wbprofiles error
«
Reply #11 on:
December 12, 2011, 06:01:08 PM »
Really great work BlackBird, I'll give it some more time this evening but the module is fantastic. Thanks for all the help.
Logged
BlackBird
AddOn Development
Offline
Posts: 2069
Re: wbprofiles error
«
Reply #12 on:
December 12, 2011, 06:23:21 PM »
There are already two projects up and running using this, so let me know what you're doing with it, I will add you to my projects page if you like.
Logged
Alle großen Veränderungen beginnen im Kleinen
BlackBird
AddOn Development
Offline
Posts: 2069
Re: wbprofiles error
«
Reply #13 on:
December 14, 2011, 01:14:59 PM »
I've just uploaded v0.70. Bugfixes only. The installer should now install the Movingboxes Plugin, too.
Logged
Alle großen Veränderungen beginnen im Kleinen
jdjdjd
Offline
Posts: 21
Re: wbprofiles error
«
Reply #14 on:
December 21, 2011, 11:23:24 AM »
Hi Blackbird, I tried the module on another wb installation this morning, have to say the installation is much more painless now, and the back-end design is top notch.
I am having a problem with making categories visible though, I'm only able to see cats and items when previewing through the admin panel. Bear in mind this is a 2.8.1 installation:
Code:
An error occured while saving the category details: [42S22] [1054] [Unknown column 'cat_visible' in 'field list']
I don't get errors when creating cats from scratch, but they aren't visible. When modifying a cat and selecting 'category is visible: yes' I get this error.
Could be confined to WB 2.8.1?
Any advice appreciated.
Logged
BlackBird
AddOn Development
Offline
Posts: 2069
Re: wbprofiles error
«
Reply #15 on:
December 21, 2011, 11:52:42 AM »
Ah! There's a problem in structure.sql in the install folder. I added the cat_visible column later and forgot to add it to the install file, too. Try to add the column using this statement (in phpMyAdmin, for example):
ALTER TABLE <PREFIX>mod_profiles_catego
ries ADD COLUMN `cat_visible` ENUM('Y','N') NOT NULL DEFAULT 'Y'
You will have to replace <PREFIX> with the prefix you use for your tables. (Just look how the table is named in your installation.) DO NOT JUST COPY AND PASTE THIS! This won't work!
Logged
Alle großen Veränderungen beginnen im Kleinen
BlackBird
AddOn Development
Offline
Posts: 2069
Re: wbprofiles error
«
Reply #16 on:
December 21, 2011, 11:55:51 AM »
I found some more missing columns, so I will release a new Beta later.
Logged
Alle großen Veränderungen beginnen im Kleinen
jdjdjd
Offline
Posts: 21
Re: wbprofiles error
«
Reply #17 on:
December 21, 2011, 12:08:55 PM »
Ah, makes sense. I'm in the process of setting up a directory of organisations with roughly 30 cats & 200+ entries (will show you once I make some progress, you can add it to showcase).
Would you recommend I hold off for now and wait for the new beta?
Edit: The statement worked a treat btw, thanks.
«
Last Edit: December 21, 2011, 12:14:11 PM by jdjdjd
»
Logged
BlackBird
AddOn Development
Offline
Posts: 2069
Re: wbprofiles error
«
Reply #18 on:
December 21, 2011, 02:52:46 PM »
I've just released v0.71 Beta, which now requires wblib v0.71 and LA v1.10. (Because these are the versions I am testing with.) As this is still Beta, it is not intended for production use. (There's no really maintained upgrade.php.) But you may just compare the structure.sql with your current DB to see which columns are missing.
Logged
Alle großen Veränderungen beginnen im Kleinen
Pages: [
1
]
Go Up
Jump to:
Please select a destination:
-----------------------------
General
-----------------------------
=> General Announcements
=> Security Announcements
=> Documentation
=> WebsiteBaker Website Showcase
=> Guest Area & Off-Topic
-----------------------------
English
-----------------------------
=> WebsiteBaker 2.9
===> Announcements
===> Help/Support
=====> Modules / Extensions
===> Suggestions
===> Software bugs
=> Help & Support
=> Modules
=> Droplets (PHP code for use with Droplet module) & Snippets (raw PHP code)
=> jQuery
=> Templates, Menus & Design
=> WebsiteBaker Language Files
=> WebsiteBaker 2.x discussion
=> WebsiteBaker 3
=> Archive (posts up to 2007)
-----------------------------
Deutsch (German)
-----------------------------
=> Ankündigungen
=> WebsiteBaker 2.9
===> Ankündigungen
===> Hilfe/Support
=====> Module / Extensions
===> Vorschläge
===> Softwarefehler
===> Erfahrungs und Testberichte
=> Hilfe/Support
=> Module & Snippets
=> Templates & Design
=> Tutorials
=> jQuery
=> Diskussion über WB
=> Off-Topic
=> Archiv für Themen bis 2007
-----------------------------
Nederlands (Dutch)
-----------------------------
=> Aankondigingen
=> Hulp & Ondersteuning
=> Niet-Terzake (Off Topic)
-----------------------------
Francais (French)
-----------------------------
=> Help/Support
-----------------------------
Italiano (Italian)
-----------------------------
=> Help/Support
-----------------------------
Bakery (WB shop module)
-----------------------------
=> Bakery English
=> Bakery Deutsch
-----------------------------
KeepInTouch (Multi Contact Module)
-----------------------------
=> KeepInTouch English
=> KeepInTouch Deutsch
Loading...