Search groups and forum

Teach me how to hack BW!

posted 2012/08/01 04:36    Visibility: World


Everyone has great ideas about how our site can be improved.  Not everyone, however, has the ability to take these ideas and turn them into reality.

How can we address this?

I, for one, would be more than willing to donate some of my time to improving the BW site by attempting to implement new features or improvements... but I am a complete beginner when it comes to hacking.  I have no understanding of how the site works, and am only just competent with basic HTML.  BUT, that doesn't mean that I (or anyone else with half a brain) am not perfectly capable of learning, given the right access to resources and a bit of guidance.

How do we empower more of our members to become doers, rather than just thinkers? 

How about assembling a small taskforce to prepare explanatory material that introduces us non-geek crowd to the basics of how BW works (perhaps starting with Drupal, if that is where we are headed soon...?).  A downloadable pdf guide, perhaps?  Maybe a series of youtube videos?  How about some kind of sandbox environment where any BW member can learn and experiment with changes to the site without fear of messing something up, or compromising sensitive data?

What do you think?

How could we make this happen?

x Jon

 

posted 2012/08/01 07:27    Visibility: World


Jon,
Kudos to you for wanting to learn to be able to help BW. I absolutely agree
with me that BW is in desperate need of more developers.

Now, comes the hard part. I have years of PHP experience under my belt but I
still don't find it easy to wrap my head around ROX. ROX is grown software not
something that was planned once and then implemented. That means it mixes up
paradigms and a number of aspects cannot be described with any other word than
the word MESS.

Well, if you do want to help out, the first thing you will need to do, is
learn PHP and in particular object-oriented PHP. Once you have passed that
stage, you should learn about the Model-View-Controler paradigm and possibly
the philosophy of domain driven design. I thought about including some links
here but I could not really guarantee the quality of any of the tutorials I
might find, anyway. So, maybe just search for the terms mentioned enough with
your favourite search engine.

Once you have passed this step, you can have a crack at understanding ROX (or
whatever it is by then). Hopefully, whatever replaces ROX (soon I hope) will
have a clean architecture and allow you to really use your knowledge of the
concepts and not give you constant headaches because of how it works around
them for half of the time.

I do agree that ROX isn't well enough documented (neither in the code nor
beyond that). Hopefully, whatever replaces ROX will be documented much better
from the start and therefore jumping on board will be easier than it is now.

posted 2012/08/01 13:10    Visibility: World


I noticed that I didn't comment on the suggestion of having a sand box...

It wouldn't really make much sense to have a public sandbox because you couldn't really change code there. Or if you could, it would be too hard to ensure that it isn't already broken when you start working on it (as you might not be the only one).

If you want a sand box install of ROX, you should set up a local install on your computer and play there. That way nobody but you can break it and you have the freedom to start over with clean sources whenever you want to.

posted 2012/08/01 14:01    Visibility: World


Hi Jon,

of course the learning curve is high but it's not impossible. I'm also more design & usability guy than php geek.

Nobody will teach you but we will help you for sure if you end up in the deep rox mystery ;-)

As jsfan described you need a local installation and some understanding of git.

Starting point would be

http://trac.bewelcome.org/wiki/Download

 

I had fun reading this before a while:

http://www.tuxradar.com/practicalphp

 

posted 2012/08/01 14:43    Visibility: World


Righto, thanks for the encouragement you lot :)

Before I saw crumbking's post I found myself this: http://devzone.zend.com/4/php-101-part-1-down-the-rabbit-hole/ ,which so far has been pretty easy to follow.  I do actually have a tiny bit of programming behind me (C+ or something similar) so the PHP concepts aren't too hard to grasp.... yet.  Now I can do echoes and variable assignments and simple math. Huzzah.

BUT

That link crumbking gave about downloading Rox...? WTF? That went way over my head.  I'm not an Anonymous Git... am I?

Can anyone give me (and the newbies following this thread?) a plain human-language guide on how to get a virtual BeWelcome site running on their bog-standard windows machine?  And perhaps if you have time, a run-down on what the hell this Git thing is?  Obviously some kind of system for tracking revisions to the site, or something, right?

Other than that, though, this is fun.

More!

posted 2012/08/01 14:57    Visibility: World


Ah, stop press.  I didn't realise Git was actually a software package.

Downloading, installing, googling for help...

 

But still, if anyone cares to take up my challenge of making a step-by-step newbie's guide to running a virtual BW site under windows, don't let me be the one to stop you... :)

posted 2012/08/01 15:34    Visibility: World


I totally agree, if it didn't take weeks of nasty useless work to get a local version BW running, I would be happy to fix a bug here and then. Unfortunatly creating your own developement env. seems too much of headache.. drupal is doing a great job on that aspect: they have a linux live CD you can run in wmware.

posted 2012/08/01 16:20    Visibility: World


"still don't find it easy to wrap my head around ROX. ROX is grown software not something that was planned once and then implemented. That means it mixes up  paradigms and a number of aspects cannot be described with any other word than the word MESS."

This is also the kind of description a seasoned PHP coder provided to me, and the main reason he has no interest in being involved.  "Spaghetti code" still doesn't do it justice.  This, is also why CS and BW are effectively stalled.  For some (mysterious) reason, I still keep seeing ample talk about BWrox, and almost none about Drupal.

I think the founders are unwilling to let go of the child they conceived.  I've given up trying to predict any kind of progress or road-map, which would seem to be exactly what the core coders/founders want  - everyone to just leave them alone, while they continue to "play" with BWrox effectively forever.

posted 2012/08/01 16:47    Visibility: World by TimLoal
last edited on 2012/08/01 16:52 by TimLoal


Hi Pedalr

I think you have just captured the situation nicely and concicely.

The problem on the software side of bW.

The reluctance of anyone who can see the situation to go anywhere near it.

The reluctance of the developers to let their baby or let anyone with any vision that differes from theirs or wants to plan anything or that will make them look lazy, to get anywhere near it, while they play with it.  This is utter stupidity, ignorance and poisons the whole project, the community and its members.

This really is no diffrent to CS or HC.

The community needs and deserves better.

I would be supprised if there wern't 50 developers in the community who would give at least an hour a week(thats the equilivent to one or more fulltime developers), if there was some order and structure in the project, otherwise involvement in the mess of code and is discorganisation, as mental polution.  This is like taking a sharp knife and stiring a pot of stones with it.  It will make it less sharp.  Which is why sharp developers, stay away and somethning we need to address as a matter of urgency.  To do this we need to take some ligitimate decisions.

LnP

posted 2012/08/02 03:00    Visibility: World


@jonjon:

welcome to the junior dev team! ;) amazing to see you willing to pick up a set of new technologies to support bewelcome! :) let us know if you have any further questions and also consider joining the developer mailing list if you haven't already done so. we can also assign you a small ticket to play with.

@statler and waldorf: ;)

i wrote the following about why i am coding rox on some other hospitality website a few months ago:

---

"unless i don't see at least 3 people committing to work something like 3 months full-time on bw-drupal - something highly unlikely given the current mountain of work opportunities for php developers around the world - i will keep my focus on maintaining bw-rox.

bw-rox has ~300k lines of code, nothing you migrate elsewhere or re-write from scratch over a weekend. ;) sure, basic hospitality exchange features can be quickly stirred up, but don't underestimate the zillions of micro-features, exceptions and admin interfaces lurking everywhere on a fully-featured community website. both, cs and bw have been built over years. for everyone out there thinking about project x that is to be started from the beginning, please consider that.

luckily there is the permaculture approach, which focusses on improving and extending an existing system rather than bulldozing and rebuilding. it might be a lot of work to bring bw up to speed, but in my humble opinion it's a lot less work than to create something completely new."

---

everyone in the current developer team is aware of the code quality of rox and trying to improve it while maintaining. no one considers it their baby, i don't know where you take this from. ;) but we can't abandon ship without having a new one, can we? we are all dreaming of that new white horse, but need to be pragmatic and realistic right now. however, on the developer list the team of people supporting a rewrite is growing. so, let's see. :)

bw effectively stalling? hm, have you ever checked our gitorious stream? and i think that publicly visible development at cs appears slow, because apparently they are preparing the next big bang website behind the scenes. that's exactly what i'd like to see avoided at bw. the current website needs to be maintained and updated regularly, even while a rewrite is happening, so the community doesn't get the impression it has been abandoned.

cheers

posted 2012/08/02 05:15    Visibility: World


Jon,
If you need help with setting up a WAMP environment, try something like e.g. wampserver.com. That should make most of the process automatic. Once you have reached this point, the INSTALL file (I mistakenly called it README) before. If you have problems, try the developer list as Meinhard (planetcruiser) suggested.

Unfortunately, you will need to learn a little bit about web technologies like web servers and their modules if you want code locally. But this is really not too big a step to take because there is plenty of tutorials and installers around for these things. :)

posted 2012/08/02 07:48    Visibility: World


Righto.

For now, can I suggest we keep this thread on-topic and use it to document how novice non-geeks can try getting their teeth stuck into hacking BW in its current form.  I'm happy to contribute to the Rox vs Drupal debate elsewhere, since it seems like a pivotal decision for the community to make.

So far, anyone else in my boat who wants to get up to speed with me, this is what I've been up to:

1. Start to learn about Version Control Systems - in particular, the Git software package.

       - This (official?) guide book seems to be a good source.  I've read just over one chapter so far. I now know what Version Control is.  Kinda neat.

2. Install Git on your computer.

       - Git is an open-source Version Control software package.  Go to the download page here.  I installed the latest Windows stable release (1.7.11.4) at time of writing.

3. Clone the BW-Rox repository.

       - After installing Git, click on yer Windows Start Menu, type "Git" in the search box and from the results, select the "Git Bash" program.

       - You'll get a black unwelcoming terminal screen thing with a flashing cursor.  Type in the magic spell: git clone git://gitorious.org/bewelcome/rox.git [then press enter].  I don't think you can use copy/paste...?

       - Then about 80MB of data will be magically zapped to your computer.  After it's finished, you'll find it in a folder called Rox located in C:Users[Username]

       - I dont understand why the repository gets downloaded from this Gitorious.org site rather than from BeWelcome.org - Is it because Gitorious hosts the "Staging" code (ie, updated bits of code that haven't yet been committed to the actual website) or is it an up-to-date mirror/backup of the bewelcome.org site, or what?

Anyway, in parallel with all that, I'm also onto this side of things:

4. Learn about PHP

      - Too much to explain here, but I'm finding this guide very helpful.  I've only read the first section so far.  I haven't yet got myself a PHP environment or playground or sanbox or whatever you call it, to experiment writing php code in, but I think there were instructions for doing this written in the guide somewhere.

 

After the weekend, I'll try learning about that WAMP thing jsfan wrote about.  And get stuck into more PHP.

@planetcruiser - cheers :) and yep, I got on the mailing list.  maybe in a week or so you could hook me up with a simple sounding ticket to look at and I can realise what the hell I'm getting myself into...

posted 2012/08/02 08:09    Visibility: World


I dont understand why the repository gets downloaded from this Gitorious.org site rather than from BeWelcome.org - Is it because Gitorious hosts the "Staging" code (ie, updated bits of code that haven't yet been committed to the actual website) or is it an up-to-date mirror/backup of the bewelcome.org site, or what?

As you said, you are cloning not downloading as such. As soon as there is a new ROX release, a

git pull

will update your sources to the latest version without just overriding your local changes (it will warn you about collisions).

Furthermore, you can switch to the develop branch which is the precursor of the next release and usually runs on alpha.bewelcome.org (well, maybe not exactly the last commit).

And you can start your own branch. If you make major changes which you only want to commit once you have thoroughly tested them, you can actually create your own branch and merge it into develop when you're done.

Possibilities are endless... ;)

P.S.: Should I bring the laptop tonight for the Melbourne meeting? ;)

posted 2012/08/02 08:34    Visibility: World


Yeesh.  Think I've got a long way to go understanding how Git works.  But thanks.

BTW the meetup's next week! :)  And yeah, depending on who else can make it, it might end up being a techie night...  let's see what happens eh?

J

posted 2012/08/02 09:48    Visibility: World


Oops. My mental diary has been malfuntioning a lot recently. I must be getting old... Anyway, I wanted to check the date again before I head out (I work around the corner) but hadn't done that, yet. ;)

posted 2012/08/02 09:49    Visibility: World


Oh, and if you do manage to convince Francesco, he can then try getting you off the PHP idea and win you over to the Ruby or Python camp at the meeting... ;)

posted 2012/08/05 05:44    Visibility: World by JonJon
last edited on 2012/08/05 05:48 by JonJon


Ok, ground control: need a little help here.

I installed WAMP, I even think I understand what it does (it's like having your very own web server to fiddle with, except it runs straight out of a folder on your hard disk, not from someone else's computer over the net, right?)

(WAMP version: 32 Bits & PHP 5.4, 2.2E -- Apache 2.2.22 – Mysql 5.5.24 – PHP 5.4.3  XDebug  2.1.2  XDC 1.5  PhpMyadmin 3.4.10.1  SQLBuddy 1.3.3  webGrind 1.0 -- Good choice??)

Then I grabbed the Rox folder I downloaded earlier, and I stuck it in the "www" folder in C:/Wamp/, thinking that this is probably how I go about emulating the BW site.

But when I open up localhost in Firefox and navigate to the "Rox" project, I get an error:

(!) Strict standards: Non-static method DOMDocument::load() should not be called statically, assuming $this from incompatible context in C:wampwwwroxroxlauncherenvironmentexplorer.php on line 67

I hunted down the environmentexplorer.php file and line 67 of it reads:

if (!$B = DOMDocument::load(SCRIPT_BASE.'base.xml')) {
            die('base.xml error!');

This has got something to do with a missing database perhaps??  Help!

While on databases, did that BW download include a bunch of user profiles to play with, or will I need to go an make some fake profiles for testing?  My aim at the moment is to get some semblance of a fully-functioning BW site running on my PC so I can just go and blindly start fiddling and learn a few things by observation.

I'm also watching this incredibly boring youtube video, which explains the process of creating a web page for logging a user into a website.  So freaking mind-numbing, yet I get the feeling I'm learning some pretty useful stuff watching it - it's all about tying in HTML, PHP and MySql databases, which are totally new territory for me...

Onward!

posted 2012/08/05 09:58    Visibility: World


Have you downloaded the test database from here: http://downloads.bewelcome.org/for_developers/rox_test_db/ as described in the INSTALL file?

posted 2012/08/05 11:26    Visibility: World


Thanks Matthias.

Hmmm, confusing: I'd skipped that file because I have WAMP installed and it, well, told me that the entire process could be skipped if I have WAMP.

So I've downloaded bewelcome.sql.gz and put it in my WAMP/www/Rox/ folder for now. (Is that the right location?)

Heading back to part 1 of the INSTALL file, I'm stumped.  Those lines of code (eg, mysql -u root -p -e 'CREATE DATABASE bewelcome') look like Linux command-line instructions to me - is that correct?  I tried opening windows cmd.exe and running one, but no luck.  Can I run those commands somewhere else or do I need to follow a different set of instructions for windows users.

Thanks for humoring me, all :)  Think I'll have to compile a Beginners Guide to Emulating BW once I get through all this...

posted 2012/08/05 16:05    Visibility: World


JonJon

I must wish you congratulations, for trying to educate yourself and i'm glad you are getting support.  An element of being a good programmer is searching for the best way to do something or just to make it work.  From your aproach to getting setup, I would say you have this aproach naturally, which will be very helpful, it can be like a magnet leading you to what you instinctually know is the best way.

Like anything you will have time when you feel you haven't learnt or understood anything, but you will have.  At time you will feel like you are entering a strange world, which doesn't feel natural and programming ins't natural.  You will get used to it and come to know and love logic as one of the most fundimental parts of nature and be glad you know the diffrence between: 1 and 0.

So I wish you good luck and happy learning, I'm sure you will enjoy and will be glad you made the effort.

If you can make some notes on the install document, to make it better, for others that follow.  I will probably be one.  I tried with the old install, but it was still a mess then and all i got was confused and burnt out.  From what I hear this is one are that has had a lot of attention to it over the last year and is in much better shape now.

LnP

posted 2012/08/06 04:39    Visibility: World


I have to congratulate you Jon. I think you have just found your first ticket to open and assign to yourself. :-P I actually tried hard to make ROX fit for PHP 5.3 before we moved to the current server and you are now trying on PHP 5.4. So, you can make the code fit for PHP 5.4. ;-)

With PHP 5.4 you will probably have to go through your PHP configuration and make it to be as lax on things as possible. Otherwsie, you'll probably end up with a lot of errors. :(

As far as the DB goes, putting the dump in the document root as you did will not do anything. You will have to import it into MySQL. The dump you downloaded is compressed,so you will have to uncompress it first (depending on your Windows version you might have to download some software that can handle GZip/gz) and then you can follw the instructions on http://stackoverflow.com/questions/105776/how-do-i-restore-a-mysql-dump-file

posted 2012/08/06 11:49    Visibility: World by crumbking
last edited on 2012/08/06 11:51 by crumbking


Mmm you can't really follow the install script without a working command line, so lets try this one:

You installed phpmyadmin already:

go to:

  • localhost/phpmyadmin in your browser
  • login and navigate to import
  • choose the database file you downloaded and import

Than create the rox_local.ini.

Simply copy/paste this file:

http://gitorious.org/bewelcome/rox/blobs/master/rox_local.example.ini

Edit the file name and remove the example.

Change dbname, user, password in the file.

dbname you will find in the leftsidebar in phpmyadmin. User, Password should be the same as the login to phpmyadmin (thought for security reasons maybe later create a new user/pass only for the bewelcome db ;-)

Also change the line:

baseuri = "http://localhost/bewelcome/htdocs/"

to:

baseuri = "http://localhost/YOUR FOLDER NAME IN WWW/htdocs/"

go on with step 4.

http://gitorious.org/bewelcome/rox/blobs/master/INSTALL

I hope this helps :-)

posted 2012/08/06 12:56    Visibility: World


Awesome - thanks for all the help everyone.

I'm banning myself from fiddling with this until after a deadline tomorrow.  Then I'll be re-installing wamp (thanks for the offer, christian - graciously declining for now ;)  and seeing how crumbking's instructions go...

If it works, I'll try writing an English version of the install guide for Windows.  Fingers crossed :)

posted 2012/08/08 05:24    Visibility: World


Got to respect you Jon, for taking a big bite of this.

I am really hoping you get this done, because, no offence intended, if you can get this setup and working, as a novice, there are many others who have tried to used imperfect instructions in the past and like me have bad memories and nothing gained for the project or community.  Then I and i believe others would, have another go, knowing that it is possible, without needing to be a WAMP or LAMP expert.

So, by doing this, you are assisting the community, even if you don't get to write a patch.  You will learn a lot either way and if nothing else it will give you info on how things work and can brainstorm with more insight. 

Good luck.

LnP

posted 2012/08/08 07:21    Visibility: World


Mmm, so. PHP 5.3.13 now onboard.

I opened up the phpMyAdmin service as crumbking described, and tried importing the database.  First, I tried importing bewelcome.sql.gz. -- I got this error message:

 

     Error

     SQL query:

     --
     -- Table structure for table `NbMembersByCities`
     --
      DROP TABLE IF EXISTS `NbMembersByCities` ;

      MySQL said: Documentation

      #1046 - No database selected


Is 'NbMembersByCities' another database that I need to import first?

Next, I tried unzipping bewelcome.sql.gz and importing it as bewelcome.sql.  This time I got a different error message:

     No data was received to import. Either no file name was submitted, or the file size exceeded the maximum size permitted by your PHP configuration. See FAQ 1.16.

I hunted around for php.ini and found two instances of it: C:/wamp/bin/php/php5.3.13/php.ini and C:/wamp/bin/apache/apache2.2.22/bin/php.ini and changed the line:

upload_max_filesize = 2M

in both of them to read:

upload_max_filesize = 5M

...but this had no effect. The phpMyAdmin import page still says there's a 2MB file upload limit (this is the year 2012, right??).

Anyhoo. Stumped.

Any suggestions?

x

posted 2012/08/08 07:28    Visibility: World


I think you need to restart your apache server after editing your php.ini.

I'd like to help you more, but i am on the run to my office.

Try to join http://webchat.freenode.net/?channels=bewelcome&uio=d4 you might get help from a developer hanging out there. I will be online later in the evening

 

posted 2012/08/08 09:12    Visibility: World


Garrgh. Baby steps.

I figured that I needed to first make a MySQL user (username = bewelcome, password = password) with an associated database (db name = bewelcome).  So I did.

Then I imported the bewelcome.sql.gz file into the database I just made.  Success!

Back to INSTALL instructions.

I edited /htdocs/.htaccess.example and saved it as ".htaccess".  Here are my changes:

@@ -1,8 +1,8 @@
 php_flag register_argc_argv off
 RewriteEngine On
-RewriteBase /
+RewriteBase /bw/htdocs/
 
 RewriteCond %{REQUEST_FILENAME} !-f
 RewriteCond %{REQUEST_FILENAME} !-d
 RewriteRule ^/*([^/]*).php /bw/$1.php [L,R,QSA]

----------------------------------------------------------------------------

 

Then I edited /rox_default.example.ini and saved it as "rox_default.ini".  Changes are:

@@ -2,11 +2,11 @@
 ; database dsn (see: http://www.php.net/manual/en/ref.pdo.php)

 dsn  = "mysql:host=localhost;dbname=bewelcome"

 ; username

 user     = bewelcome

 ; password

-password = bewelcome

+password = password

 ; dbupdate. Can be

 ;  * "dbupdate = manual" - this means, you need phpmyadmin to do all the db manipulations yourself. or

 ;  * "dbupdate = auto" (default) - then the "htdocs/bw/lib/dbupdate.php" will take care of the updates.

 dbupdate = manual

------------------------------------------------------------------------

And lo and behold, when I go to the Rox project on my WAMP server, I get this nicely descriptive error message:

(Header: "500 Internal Server Error", Address: "localhost/rox/htdocs/"

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, admin@localhost and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

--------------

BLERGH!

Thanks Matthias - I've gotta head off too. But I'll jump on that chat thing whenever I can next.

In the meantime.... :S ideas?

posted 2012/08/08 16:49    Visibility: World


My first ideas:

 

posted 2012/08/08 18:13    Visibility: World


Thanks crumbking.  I did all that - all at once, so I'm not sure which part caused a change, but now I get:

     "Data dir 'C:/wamp/www/rox/htdocs/../data' does not exist!"

I've been scouring through various files trying to find references to this data directory, but no luck.

 

One thing just occurred to me:

Some of the install instructions refer to http://localhost/bw/htdocs/ (like your advised setting for the baseuri variable, or the setting for the rewrite base)

In other places I can see references to /bewelcome/htdocs/

...But there is neither a /bw directory nor a /bewelcome directory in my install.  The repository downloaded into a directory named Rox - so my path would be http://localhost/Rox/htdocs/ ...right?

I tried changing the refernces in both rox_local.ini and .htaccess, but still get the same error message above.  Perhaps there's another file that needs attention?

Confused :S

posted 2012/08/08 18:57    Visibility: World


Mmm... could you create a "data" folder in /Rox/data

Let's se what happens ;-)

Yes you are right it should be in all places your base folder. So you could name it the folder "mybewelcome" than all pathes /mybewelcome/...

I think we have to change that in the install file. I will do that in the evening.

posted 2012/08/08 19:08    Visibility: World


"have you ever checked our gitorious stream"

No, and I've asked several times before - is there one single list/location, of all the resources, mailing lists, alpha sites, dev groups, blogs, wikis, etc.? Subdivide a single page into "user resources" and "dev resources" if you like.  Or is that asking too much? 

"but we can't abandon ship without having a new one, can we?"

Did someone ask for that?


"but [we] need to be pragmatic and realistic right now"

I am that, but I am still not "informed".  And I'm clearly not the only person who feels this way.  I see person after person, with obvious coding skills and enthusiasm, having the same frustrating experience.


"the current website needs to be maintained and updated regularly, even while a rewrite is happening, so the community doesn't get the impression it has been abandoned."

How do you think the community perceives BW currently?  Is the goal you've just described being achieved, or to what degree?

It's also news to me, that migration to Drupal is not being undertaken currently.  I mean, I could see (some amount of) evidence that this is the case, but this is the first time I've heard it directly from the horse's mouth.

posted 2012/08/08 20:37    Visibility: World


This wiki page: http://www.bewelcome.org/wiki/Who_does_what might help.

posted 2012/08/08 22:36    Visibility: World


Thank you, Matthias! :)

posted 2012/08/09 07:38    Visibility: World by matthias
last edited on 2012/08/09 07:40 by matthias


Thanks crumbking.  I did all that - all at once, so I'm not sure which part caused a change, but now I get:

     "Data dir 'C:/wamp/www/rox/htdocs/../data' does not exist!"

I've been scouring through various files trying to find references to this data directory, but no luck.

 

One thing just occurred to me:

Some of the install instructions refer to http://localhost/bw/htdocs/ (like your advised setting for the baseuri variable, or the setting for the rewrite base)

In other places I can see references to /bewelcome/htdocs/

...But there is neither a /bw directory nor a /bewelcome directory in my install.  The repository downloaded into a directory named Rox - so my path would be http://localhost/Rox/htdocs/ ...right?

I tried changing the refernces in both rox_local.ini and .htaccess, but still get the same error message above.  Perhaps there's another file that needs attention?


Your path is http://localhost/Rox/htdocs/ - so it needs to be changed to this in the ini file and .htaccess

You also need to create a folder named "data" right below your rox folder and make sure that it is writable to your webserver.

posted 2012/08/09 16:09    Visibility: World


Ooh, exciting.  I tried making the data folder as crumbking suggested, but it didn't work.   But then I got to look at jsfan's install on linux and noticed the folder structure in /data

So I re-made the /data folder and in it I added

/data/gallery

/data/groups

/data/user  AND

/data/user/avatars

And now..... here's what hapens:

 

It's getting there, eh?

Any obvious things to check out, before I go blindly hacking away at it??

:)

posted 2012/08/09 16:46    Visibility: World


Mmmm...

  • short_open_tag in php.ini on?
  • also check if all no AllowOverride are commented out with # in httpd.conf and that rewrite module is on as suggested in 0. Requirements in the INSTALL

I guess the /data folder should be enough. Everything else will be created if needed by the script.

I also got the idea to create that file in gitorious and later we could add it gitignore.

Will that work? Would be one error message less ;-)

Let's have a party you can see already the main menu structure ;-)

 

posted 2012/08/10 06:28    Visibility: World by jsfan
last edited on 2012/08/10 06:35 by jsfan


I'm pretty sure this would be the short_open_tag. Looks the same for me when I switch those off.

Could someone maybe deliver us from this stupid requirement? :(

EDIT: I decided to make this official: Issue #1700 on trac. :)

posted 2012/08/10 08:33    Visibility: World


Great!

I set short_open_tags value to "On" in both my php.ini files (??) and now the local site looks like the real BW. Yay.

Next step: I tried registering a new user.  The location wasn't recognised.  I noticed that when I searched for users, google told me I didn't have a valid API key.  So I tried following their links, using my own google account key and pasting it into the maps_api_key part of rox_local.ini (no luck) and creating a server key using my local IP address and pasting that in instead (again, same deal).  Then I opened up www.bewelcome.org.ini and copied the key from there into rox_local.ini.

That seemed to kill the error messages from google on the map search page, but I still can't search for a location from the signup page.  Next to the "Set Location" button is just a blank square where there should be a map. Typing in "Melbourne" or "London" or even "London, England, United Kingdom" still results in a "Please provide a valid location" error.

Ideas?

x

posted 2012/08/11 04:56    Visibility: World


OK.  Just documenting a few more bugs in my local install, since I'm probably not going to figure out the one above by myself.  Below is a what happens when I browse a forum thread (Can't paste the formatting correctly.  You get the picture though, right?)

Could this be a problem with my WAMP configuration? It seems more like a glitch in the actual site code to me, but then... you know... two weeks ago I didn't even know what PHP was :D

x

-------------------------------------------------------------------

 

jeanyves

avatar

posted 2009/06/19 23:29

( ! ) Notice: Undefined property: stdClass::$Trad in C:wampwwwRoxbuildforumstemplatessinglepost.php on line 66
Call Stack
#TimeMemoryFunctionLocation
1 0.0013 382168 {main}( ) ..index.php:0
2 0.0014 382168 main( ) ..index.php:78
3 0.0101 662568 RoxLauncher->launch( ) ..index.php:63
4 0.0842 993680 RoxLauncher->chooseAndRunApplication( ) ..roxlauncher.php:22
5 0.0929 1565616 RoxFrontRouter->route( ) ..roxlauncher.php:68
6 0.1039 1886216 RoxFrontRouter->route_normal( ) ..roxfrontrouter.class.php:32
7 0.1198 2268624 RoxFrontRouter->runControllerMethod( ) ..roxfrontrouter.class.php:229
8 0.1413 4811808 call_user_func ( ) ..roxfrontrouter.class.php:346
9 0.1413 4811824 ForumsController->index( ) ..roxfrontrouter.class.php:346
10 0.2557 5686856 ForumsView->showTopic( ) ..forums.ctrl.php:174
11 0.2591 5753224 require( 'C:wampwwwRoxbuildforumstemplatestopic.php' ) ..forums.view.php:190
12 0.2623 5838064 require( 'C:wampwwwRoxbuildforumstemplatessinglepost.php' ) ..topic.php:180

 


( ! ) Notice: Undefined property: stdClass::$Trad in C:wampwwwRoxbuildforumstemplatessinglepost.php on line 116
Call Stack
#TimeMemoryFunctionLocation
1 0.0013 382168 {main}( ) ..index.php:0
2 0.0014 382168 main( ) ..index.php:78
3 0.0101 662568 RoxLauncher->launch( ) ..index.php:63
4 0.0842 993680 RoxLauncher->chooseAndRunApplication( ) ..roxlauncher.php:22
5 0.0929 1565616 RoxFrontRouter->route( ) ..roxlauncher.php:68
6 0.1039 1886216 RoxFrontRouter->route_normal( ) ..roxfrontrouter.class.php:32
7 0.1198 2268624 RoxFrontRouter->runControllerMethod( ) ..roxfrontrouter.class.php:229
8 0.1413 4811808 call_user_func ( ) ..roxfrontrouter.class.php:346
9 0.1413 4811824 ForumsController->index( ) ..roxfrontrouter.class.php:346
10 0.2557 5686856 ForumsView->showTopic( ) ..forums.ctrl.php:174
11 0.2591 5753224 require( 'C:wampwwwRoxbuildforumstemplatestopic.php' ) ..forums.view.php:190
12 0.2623 5838064 require( 'C:wampwwwRoxbuildforumstemplatessinglepost.php' ) ..topic.php:180

During last european election, In France, the green party reach the same level as the Socialist Party.

It as been a surprise, but considering that the Green were almost the only one who really give the feeling of a european concern, it is logical that they grow stronger in a european election

Do you think this make sense ? 

(I know it is not the same in all countries)

posted 2012/08/11 19:51    Visibility: World


It looks like you're making good progress.  I admire your paticence(or however you spell it).

'Any obvious things to check out, before I go blindly hacking away at it??'

sometime blindly hacking is good, sometimes bad and sometimes, the only way.  making a local regular backup makes it easy to roll back to a previously stable position, if you find you have hacked too much, with negative results.

I look forward to testing the procedure for installing.  I'm traveling for at least an extra week, so i'll not have any time at the moment.

Hopefully this effort will grow the available tech resource and give the project more pace.

But, I shamlessly restate that, if the organisational end is not delt with, all this is mostly just 'pissing in the wind'(essentially means, doing something silly that will come back unfavorably on you)

LnP

posted 2012/08/13 11:59    Visibility: World


Well, this is quite a learning experience.

Heading off on a tangent, I've been exploring the option of a LAMP environment running on a virtual machine.  So far, so good.  I've setup a virtual computer running Ubuntu 12.04, PHP5.3, Apache2 and MySql.  Following the INSTALL file instructions, I've managed to get the BW website almost running on my Localhost.  By 'almost' I mean the homepage displays fine.  The only problem at the moment is that when I click a menu item from the top orange header menu (ie, "about") I get a Page Not Found error:

The requested URL /rox/htdocs/about was not found on this server.

This is the same for pretty much all of the menu items ("find members", "explore" etc)

Logging in as a user (i tried "fake51" with no password) worked, but again, most links were dead after that.

I'd love to upload my virtual machine .ova file somewhere for any of you to look at and play with, but it's 2.4GB in size and will take an eternity with our silly Aussie ADSL speeds.

I git-cloned the repository and put the resulting Rox folder into /var/www

I also created the rox/data folder with subfolders as described above.  Not sure what method I used to create them (ie file explorer or command line sudo mkdir) - could this be part of my problem?

Here's my rox_local.ini file:

[db]
dsn = "mysql:host=localhost;dbname=bewelcome"
user = "bewelcome"
password = "password"

[env]
baseuri = "http://localhost/rox/htdocs/"

[google]
maps_api_key = "1234567890"

[phpflickr]
api = "cbc166b80eb3ab04ad27845703752024"
tmpfolder = "/tmp"

----------------------------------------------------------------------------

and my .htaccess file: (i don't think the backslashes work on this forum - anyway, the only line i changed was the rewrite base setting:

php_flag register_argc_argv off
RewriteEngine On
RewriteBase /rox/htdocs/

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^/*([^/]*).php /bw/$1.php [L,R,QSA]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^.* index.php [L,QSA,PT]

------------------------------------------------------------------

Anyhoo.  Hope someone can help...

:)

posted 2012/08/13 12:30    Visibility: World


Hi Jon,

yeah was fighting with this as well in the beginning. It's a rewrite issue...

Here just my settings

RewriteBase /

baseuri = "http://bw/"

 

So try for your case:

RewriteBase /

baseuri = "http://localhost/rox/"

Maybe helps ;-)

posted 2012/08/13 15:16    Visibility: World


Thanks crumbking...

I tried those changes, but no luck.  I noticed that, for example, the 'find members' header menu points to "localhost/rox/htdocs/search", whereas the search.php file is located in "localhost/rox/htdocs/bw/seach.php" - so I tried setting baseuri = "http://localhost/rox/htdocs/bw/".

After that, all the images on the homepage dissappeared.  When I clicked the text hyperlink "Find members", I no longer got a Page Not Found error, instead I got another image-less page with this error on it.

(url=http://localhost/rox/htdocs/bw/search):


ErrorTodoPage

Sorry, the page /rox/htdocs/bw/search.php is not yet ready.

Maybe you can volunteer your services as a programmer to help us complete the page.

-----------------

Well, stumped again... :S

posted 2012/08/13 15:40    Visibility: World


Another thing I've noticed:

In the .htaccess file, on my WAMP intall, I've tried the following two rewrite rules:

RewriteRule ^/*([^/]*)/.php /bw/$1.php [L,R,QSA]

RewriteRule ^/*([^/]*)/.php /rox/$1.php [L,R,QSA]

(that green slash is actually a backslash)

For some reason, I've noticed no difference in behaviour, no matter which rule I use.  Same thing on my VM LAMP install.

Just another little thing I have no understanding of, but which might be of some relevance...

posted 2012/08/13 22:33    Visibility: World


"I git-cloned the repository and put the resulting Rox folder into /var/www"

"RewriteBase /rox/htdocs/"

Is the name of that folder "Rox" or "rox"? the letters should  be the same, both lower case (or upper case)


BTW: do you still have your WAMP installation on? You could edit line 42 in the file htdocs/index.php :

ini_set('display_errors', 1);

to

ini_set('display_errors', 0);


posted 2012/08/14 04:47    Visibility: World


Toni-

Yep, I checked my cases on the LAMP vm - no luck there either, I'm afraid.  I also tried renaming the directory 'rox' to 'bw' (sudo mv rox bw) and changing the relevant refs in .htaccess and rox_local.ini but this had no effect either.

Back to my WAMP Setup:

I tried your suggestion and yes, hurrah, now there are no eror messages.  Next problem is that profiles have no information on them.  All I can see in the main (centre) column is the name, location, age, join date and last login info, then the "Profile Summary" header in a box, with no information below it.  The rest of the profile is blank, except for the left column which contains the links to "send message". "add comment" etc (although none of the profile picures display).  Looks like I might have problems with database access permission perhaps??

posted 2012/08/14 05:01    Visibility: World


So I have both WAMP and LAMP environments going at the same time. Both dysfunctional so far, but WAMP is slightly better resolved.

BUT - what appeals to me about the LAMP setup is that it is a fully packaged virtual computer.  Which means that if I set if up properly, all we need to do is distribute it to whoever would like to be involved in developing BW, and they have an instantly working, fully featured development environment that can be run on ANY operating system, as long as they have VirtualBox installed.  It even has all the required software pre-installed and ready to go - no messy installing required, no endless list of instructions to follow.  Newbies like me will be able to jump straight to actually learning about PHP/HTML/MySql etc and start messing with the site code straight away.  This seems like a really worthwhile project to see through to completion, right?

-----------------------

BW Developers:  Since I'm generally stabbing around in the dark at this stage, would any of you like to volunteer to have me (snail)mail you a USB key with my LAMP virtual machine on it, to see if you can spot something obviously wrong with the Rox installation?  It may be something that you can identify within a few minutes.  I can make copies if more than one person is interested.  After that, send it back and I'll add some online instructions for keeping the Rox code base on the VM up to date using Git (I'll need some help...), links to learning resources, and some simple 'getting started' instructions.

posted 2012/08/16 05:24    Visibility: World


How are you getting on JJ?

I can't do much to help you from here, except if you want to snail mail the USB key to me.  I have 3mb outbound connection, 60Mb inbound and could upload it, but i'm sure there is a better way,

From what I know of linux, it is possible to remotly access a server and I presume this is also possible with a VM.  I believe it is called a Secure SHell SSH http://en.wikipedia.org/wiki/Secure_Shell I found a good number of pages by searching ssh unbuntu on google.

I hope this helps.  Still looking forward to learning from you, when i get a chance to follow in your footsteps. :)

LnP

posted 2012/08/16 05:59    Visibility: World


@Jon: You got this on a laptop? I'm happy to meet up and go through it. I'm not sure if my VirtualBox is actually fit for use (never used it), so a USB key might not do the trick straight away.

posted 2012/08/20 01:33    Visibility: World


Jon,

How are you getting on?

I would really like to start getting to grips with the code base of bW, so that I can asses exactly what is required to get this site up to scratch.  If you are getting there, I would like to help you get there.

To make bW work, we need to get many more people, who are willing AND have the time to work on the code.  The work you are doing I see as a big stepping stone to achieving this.  I hope you haven't run out of steam.  Anything you need, let us know.

If you are stuck, please let us know with what.

Kind Regards

LnP

posted 2012/08/20 11:41    Visibility: World


Tim, I really wasn't planning to ever reply to any of your posts again but this post just pisses me off too much. Instead of talking about how you want to get your head around ROX, and decrying every single aspect of BW, you should put your money where your mouth is and get active. The code is there for you to download. Just like Jon, you will also get assistance from active developers if you need it and maybe you will even be spared of empty promises and useless comments about how hard it all is and how nobody is helping.

Practice what you preach instead of just spamming the forums and show some truly collaborative spirit!

I'm sorry if I'm being too blunt but I needed to get this out of my system!

posted 2012/08/20 13:25    Visibility: World


orrite orrite you two.  deep breaths.

thanks for the concern.  i'm alive and well and too busy to think like a geek these few days.  christian, thanks for the offer mate :) seeya round soon. 

@tim, ignore him. i'll be posting the VM for anyone/everyone to download just as soon as it's got some semblance of functionality.  thanks for offering to help - at the moment i just don't have time to fiddle with the remote software you posted about.  but if there's some way of having others collaborate without the insane upload sizes, i'll be onto it as soon as i can and let you know.  for now, i reckon you can learn a lot from trying to emulate all the steps i did with a windows install (if you use winblows?) - let me know if anything i documented doesn't make sense, and let me know if you get any further than i managed to.  maybe i missed something obvious that you'll be able to turn up easily...

posted 2012/08/20 22:57    Visibility: World by TimLoal
last edited on 2012/08/20 23:00 by TimLoal


jsfan

I'm sorry you had to get pissed off to reply. Never say never.

'Instead of talking about how you want to get your head around ROX, and decrying every single aspect of BW'
I don't decry
'every single aspect of BW', just the poor bits, but that's, almost the same thing. I have many times said that most of the underlying system is 70-80% or more, complete and a great effort, but is that enough?

'you should put your money where your mouth is and get active. The code is there for you to download.'

I downloaded it, just before christmas and found that the install documentation was incomplete, I even spent(read wasted) two weeks trying to install Ubuntu, only to eventually be told on the official Ubuntu IRC channel that since 10.4 Ubuntu had not been stable. When running firefox on a fresh install of Ubuntu put both the CPU and HD at 100% activity and hung and crashed, I spent hours and hours, at a command prompt feeding back and forth to 'experts' in the channel, one who gave me frightening warnings to back up my HD because it was about to die, according Ubuntu diags, I uninstalled it and everything was fine again.

Later in the dev list, it was discovered that the code on GIT was in fact in no shape to work on and needed extensive work to get it in to shape. Fortunately this work was done and I am hoping that a retry at installing will be fruitful. Also I found that I did not get the help I needed, when running into problems. I have not let this put be off forEVER and am willing to give it another go, once it has been proved by Jon.

I will put a great deal of my money(read time and LIFE) where my big mouth is, when I am confident is will not be pissing it away. As I said at the time, there are infinite ways, that I can waste my life, pissing about with a process that can't work, isn't on that I choose. I would have wasted far less time, writing the functionality of bW from scratch, but no one would be happy even if I delivered a fully functioning bW clone. Like these posts, the powers that be, would ignore it also.

'useless comments about how hard it all is and how nobody is helping.'
Yes totally useless to speak the truth, if no one listens! Thouse that have eyes, let them see.

I'm sorry if i'm being blunt, but we need to get attitudes like yours out of this system.

Jon

I have a thick skin and don't mind people throwing daggers at me and have come to expect it around here. People should take my comments with un poco de sal. I know I have an aggressive/passive style, but it saves me from wasting my time with BS.

Thank you greatly for your update. I understand that you have a life, so no worries, take your time. None of this is going anywhere, whenever you are ready, it'll be good. ;) If you have any documentation, it would be interesting to have a look at. Don't worry about it being in draft form, or incomplete. I may be able to spot something you have missed, fresh eye are always good for spotting the woods, with no trees in the way. :) By the sounds of it you have brough this on a good long way. Well done and congrtulations.

LnP

posted 2012/08/23 02:59    Visibility: World by jsfan
last edited on 2012/08/23 03:02 by jsfan


@Jon: I just stumbled over this. It's ancient but maybe there are still useful bits in it? If not, feel free to replace the page with something useful. :)

posted 2012/08/29 05:43    Visibility: World by JonJon
last edited on 2012/08/29 05:45 by JonJon


Owzer!

I just discovered the wiki on how to write a simple "hello word" app for BW-Rox.  And then, along with it, a whole bunch of other wiki pages dedicated to explaining the mechanics of Rox.

Dev team:  Seriously, this is the BEST kind of resource for people like me to learn from, and yet it is so well hidden it has taken me months to find it.  And I like to think I'm the kind of person who is good at tracking down info like that.

I know, much of it looks like it will be out of date by now.  I still don't have any time this week to test it or do more work on this.  But for now, could any of you have a look over stuff like the "hello word" wiki and let me/us know what is still relevant?  And if possible, update the info to reflect the current build?

Secondly, the info needs to be made accessible!  I can put my hand up for linking to these wikis from somewhere more prominent (like the main BW wiki homepage), starting next week when I'll hopefully get some time to do it.  At the very least, we need to make it clear to everyone that there is a whole seperate wiki on trac.bewelcome.org, completely apart from the www.bewelcome.org wiki.  If I'd realised this earlier, I would have found this info much quicker....

And while I'm here: Is there any more info like this flating around some obscure part of cyberspace that someone like me would find useful??

posted 2012/08/29 06:00    Visibility: World


Sounds great!  I also agree it would be great if there was a good go at updating these pages and to linking them from more acessable places.  One of the reasons I really don't like microsoft, is the poor, out-of-date and missing documentation.  It helps greatly to have a clear path, when you are learnign something new and not finding yourself wanting for information that is not publicly available.

I think the documentation, is worth a ticket, on a milestone in itself and will create one.

I hope you're well and in good sprits.

LnP

posted 2012/08/29 06:52    Visibility: World


@JonJon: "At the very least, we need to make it clear to everyone that there is a whole seperate wiki on trac.bewelcome.org, completely apart from the www.bewelcome.org wiki"

done by adding a "Developers" section to http://www.bewelcome.org/wiki. btw: it's a wiki, if you miss something, add it! :)

generally it is agreed to keep forum and wiki on www.bewelcome.org free from developer related things as much as possible and to use mailing list and trac/redmine wikis instead. i think the average bw user does not care much about the lamps and gits of web development. and they shouldn't, they should mainly find things relevant to their travels and sharing here.

posted 2012/08/29 12:48    Visibility: World


I'd be for keeping the found content out of the main site wiki, too much content is almost as bad as no content. The average user just isn't going to care about the found dev content and in fact it might be a turn off the click on a link that links to something that they cannot understand. 

I think the best place for a link to the found content is under the 'getting started' section here:

http://trac.bewelcome.org/

 

 

 

posted 2012/08/29 20:07    Visibility: World


Or make the seperation clearer, by running the software development, as a seperate but related bV project, which would free the developers to make a versatile multiuse, multi instance, networked hospex platform and fulfil part of the bV objective.  Leaving this project clearly focused on hospex and not distracted too much with software development.

LnP

posted 2012/08/30 00:56    Visibility: World


@JonJon (and whoever else wants to know): I've spent an hour or so yesterday to set up a VirtualBox image for "BWbuntu", an Ubuntu with a preinstalled ROX. You can download it here, if you don't mind pulling about 2GB.

I'm sure it's not perfect, yet (and neither is the README.txt), so let me know what I can improve. :)

posted 2012/08/30 02:23    Visibility: World


sounds great.  Thanks for puttin the time in.

I can't get the file and get this instead

Forbidden

You don't have permission to access /BWbuntu.ova on this server.

Any ideas?

LnP

posted 2012/08/30 04:37    Visibility: World


Fixed.

posted 2012/08/30 11:42    Visibility: World


Working now :)

LnP

posted 2012/08/30 17:54    Visibility: World by acidrongeur
last edited on 2012/08/30 18:02 by acidrongeur


Great job jsfan !

My comments:

- Shouldn't test.bewelcome.org be in /etc/hosts ?

it create an error if I accept to join the "X" group.

- Would be cool to have the "xterm" icon more accessible...

- Is the internet supposed to work ? (can't browse  by default or git pull...)

- Where is the admin section ? :)

posted 2012/08/30 19:38    Visibility: World


On bWBuntu ...

How much space is required to import this image into virtualbox?

I have downloaded the and have 2.5 Gig free on the target drive, but it keeps running out of space, I can free more, but how much will it need?

Thanks

LnP

posted 2012/08/30 21:27    Visibility: World


Sorry to duplicate posts.  I found this one that i'd already writen and i feel it is better, than the other one.  Too many open tabs, in too many browsers, on too many pcs. :s

20 mins to download.

1 min to download https://www.virtualbox.org/wiki/Downloads and a few minutes to install

Importing keeps running out of space, but i currently have 2.5 Gb free on D: 500Mb on C:.  How much do i need?

LnP

Failed to import appliance C:BookBWbuntu.ova.

Could not create the clone medium 'D:UsersTimVirtualBox VMsBWbuntuBWbuntu-disk1.vmdk'.

VMDK: cannot write allocated data block in 'D:UsersTimVirtualBox VMsBWbuntu/BWbuntu-disk1.vmdk' (VERR_DISK_FULL).

Result Code: VBOX_E_FILE_ERROR (0x80BB0004)
Component: Appliance
Interface: IAppliance {3059cf9e-25c7-4f0b-9fa5-3c42e441670b}

posted 2012/10/05 11:07    Visibility: World


Not sure if its of any interest / or exactly on topic:

ComeHackWithUs (CHWU)

http://www.ciol.com/Security/Interviews/%E2%80%98ComeHackWithUs-to-take-coders-to-a-remote-island%E2%80%99/164703/0/

- an upcoming hacking event on open source projects. Organizer from the 2008 C$ collective in Alaska.

 

 

 

posted 2012/10/05 12:04    Visibility: World


I haven't read the whole thread but I'd like to add that if you live in some parts of Europe (or Melbourne ;) you can easily find a BW developer in your area to hang out with, or even host you. Like that it becomes much easier to get into hacking on BW Rox or... BW Symfony. I offered my space for people to come over and do exactly that and I think it's been quite successful. Maybe not so much in actual tangible output visible to BW users, but in the long run the personal connections created (and the steps that has been taken with BW symfony) can be quite fruitful.

If you have time and space I can definitely recommend doing something same. It's also a lot of fun of course :)

 

 

posted 2012/10/10 22:44    Visibility: World


As I'm curious as well, I git-cloned rox and gave it a go after installing wampserver with PHP 5.3. (Tried my luck with 5.4 as well to no avail.)

I have the system running but there are some loose ends:

I dig a bit deeper tomorrow.

 

posted 2012/10/11 00:29    Visibility: World


Shevek, lantti is not too far away from you, I'm sure he'll be happy to hitch over to your place and help you further.  And he never had a request on BW yet, so write him a message to see if you can visit him if you have time for that :)

posted 2012/10/11 00:37    Visibility: World


Someone used a symbolic link to point to the latest version of htmlpurifier-4.0.0. Well, that's just not working under windows...

I can't say I'm surprised. There are two symbolic links (the other one being htdocs/bw/memberphotos -> ../memberphotos). I suspect you could just replace them with what they link to. In the latter case you might even be able to live without the link.

Several pages still don't work instead they produce urls like this: http://localhost/rox/htdocs/htdocs/htdocs/htdocs/htdocs/htdocs/htdocs/htdocs/htdocs/htdocs/htdocs/htdocs/htdocs/htdocs/htdocs/htdocs/htdocs/htdocs/htdocs/htdocs/htdocs/

It's probably best to run Rox at the top level of your virtual host, to have http://localhost has your base URI. Everything else will probably lead to problems eventually and this might be one of those already.

Only Firefox works here. Chrome and IE show access forbidden

That's a bit weird. Maybe your web server does not default to using index.php as the directory index and FF uses that automatically? Also, you will need to use mod_rewrite and enable the htdocs/.htaccess to make all the links work.

After login in as fake51 (thanks for the password tip jsfan) I see some differences to the current version on the website. How does that work?

What kinds of differences? While you have the same software, you obviously might have different configuration. That influences things like e.g. the visibility of the donation bar.

posted 2012/10/11 08:01    Visibility: World


@guaka: Actually I planned to come to Brussels and Grimbergen soon ;-)

@jsfan: I'm downloading the Virtualbox now and compare to my configuration later on.

Regarding the difference. I see a donation bar that's right. I also see a Vol menu item.

I also saw a 'my preferences' button next to 'my messages' yesterday if I recall correctly and several additional options in the preferences that I'm not aware of while missing the opt-out for the visitor profile feature.

Several texts aren't translated, that's probably due to the database state (could we update the test database there?).

Cheers, shevek

 

 

posted 2012/10/11 08:48    Visibility: World


The extra items are due to privileges the account has.

The current words table is much larger than the one in the test database which is why I never added it. But maybe it would be a good idea.

If I get around to it, I'll update the VirtualBox image soon as well.

posted 2012/10/11 10:06    Visibility: World


Hi Jsfan,

is there a user in the test database with 'normal' rights?

Another question that bothers me for a while now. Which IDE are you using? I'd go for PDT (based on eclipse) as I could include eGit there as well and would have all in one place. Would give me debugging possibilities as well.

But I'm sure the devs have their setups that might work better. So what are you (devs) using?

Cheers, shevek

posted 2012/10/11 10:21    Visibility: World


I use Eclipse but if you don't want to get into trouble with planetcruiser, you should make sure your indentation is set to 4 spaces (Eclipse default is tabs).

Another option might be phpstorm which is not free software but can be used freely for free software projects. Of course, that would imply switching to the dark side. ;)

posted 2012/10/11 15:33    Visibility: World


I believe that if you log in as sitarane you have no special permissions.

posted 2012/10/11 16:34    Visibility: World


Thanks to the VirtualBox image I got rox running.

I changed the following in the httpd.conf so that rox is running at http://localhost/:

DocumentRoot "c:/wamp/www/rox/htdocs"

#
# Each directory to which Apache has access can be configured with respect
# to which services and features are allowed and/or disabled in that
# directory (and its subdirectories).
#
# First, we configure the "default" to be a very restrictive set of
# features. 
#
<Directory />
    Options FollowSymLinks
    AllowOverride None
</Directory>

<Directory "c:/wamp/rox/row/htdocs">
    Options Indexes FollowSymLinks MultiViews
    AllowOverride All
    Order allow,deny
    allow from all
</Directory>

In rox_local.ini that means the following has to be set:

[env]
baseuri = "http://localhost/"

After that the site works locally.

But I'm still searching for a user with normal rights. sitarane doesn't work in the test db as no password is set. globe-test can translate everything.

The main issue I have is that I don't see the opt-out feature for the profile visitors with any of the users I tried.

Cheers, shevek

posted 2012/10/11 16:36    Visibility: World


I can only apply for phpstorm after I've been active on the project for at least three month. If they mean coding I don't qualify :-)

Anyway could you let me know how you configured Eclipse to work with rox? Did you include eGit? (Maybe better per PM.)

Cheers, shevek

posted 2012/10/13 09:06    Visibility: World


Ok, let's work down the list of questions, shall we?

  1. Opt-out: This requires preferences which I've only just added to the sample database.
  2. Normal user account: You can either reset the passwords of all accounts as suggested in the INSTALL file, or you can add the lines

    [development]
    avoid_https = true
    skip_password_check = true

    to your rox_local.ini to disable SSL (more or less) and switch of password comparison on login.

  3. Eclipse: Can't tell you much there. I'm actually not big on IDEs and used Emacs until very recently. All I did in Eclipse is set the indentation to comply (4 spaces, no tabs). I don't use eGit or any other fancy plug-ins.
  4. phpstorm: Can't help you with details. I've seen people using it but never used it myself.

posted 2012/10/13 11:15    Visibility: World


Hi,

thanks for the DB update looks much nicer now locally :-)

And show visitor profile is visible now as well.

I already fixed my first deviation from my expectation (Trac 1783). Now I would really like to commit...

Cheers, shevek