1
WickedLogic
DB insert/updates fail, admin.php won't load, but reads work.

At a particular *nix host where I run several XOOPS sites, after some period of time with the site working fine, the sites stop doing updates/inserts and the admin.php starts not loading. It still reads content fine and lets me login etc., I know about db query quotas with the host.

This has happened on several installations on different domains, on at least 2 servers. In the past I just took the opportunitity to update, but I'd like to get to the bottom of this.

Anyone experience anything similiar?

One server is a shared host w/ a seperate db server and the other a dedicated server w/ the db on the same box. I set them all up, so it might be something I am doing wrong across them during setup, or it might be the hosts setup (fairly standard FreeBSD setup).

The admin page also keeps repeating (This is your first time to enter the administration section. Press the button below to proceed.), so I'm guessing it is a permissions issues of some sort. Just so strange that it was working fine, and now fails.

--
Matt



2
WickedLogic
Re: Simple Association Hack

We ended up going another direction, where users can create users in a table outside of XOOPS for a different purpose (outside application that wanted to know about association). The site was only a way of purchasers of the software to group themselves.

However the concept was, users would register, then would associate with other users to form a group. So members from a company would each register their own user, then associate with one person who would be the leader (usually the one who purchased our software for the company). The website was just a new portal for the software.

It could have been done with a group hack, that would allow users to create/join/manage their own groupings. Not sure which makes more/less sense, but we went an entirely different direction either way.

I'm looking forward to the next xoops, you guys do great work. Hopefully I'll be less busy in the future, so I can offer some hand/eyes, just heavily over scheduled at the moment.



3
WickedLogic
Re: Simple Association Hack

For those who are interested, the path I decided on was to extend the kernel/user.php to include my new field, and then adjust userinfo.php to add a button for my interface, and edituser.php to code my screens and update routines.



4
WickedLogic
Simple Association Hack

I'm in need of an ability to allow users to self-associate with other users.

A user who knows the username/password for another user, can establish the relationship. The associate can always undo the association. I only need a single grouping, so once you are associated you cannot join another grouping, unless you undo the original association.

Users can either be not associated (default) or associated. Users who are associated with themselves are the leader of other users associated with them.

I've done the database side of things by extending the xoopx_user table with a single field.

There are only two interfaces that I need to do initially: the undo association and the username/password form to establish the association.

I'm looking for recommendations on where would be the wisest place to extend the interface on a code/long term support position. This is something I need for a particular site and will be a long term hack for me.

Should I just create my own file mimicing edituser.php or extend edituser.php?



5
WickedLogic
Delay pages between actions

I'm not quite sure I understand the purpose of the delay pages between actions. For example, when you login, it sends you to a page that just waits a little bit then redirects you back. If you succesfully logged in, why bother?

Just looking for some insight as to the reason of adding those additional steps?

Also, the Finish button on user registration adds a confirmation type step. (I have a simple javascript mod to register to hit finish on page load automatically, but am curious about these types of pages in general.)

For us developers and coders, I'd really like to start a TheWayThingsAre type of document containing why things are done a certain way and the thought/reason behind it (even if it isn't a good reason).



6
WickedLogic
Re: admin.php won't let me login

Ok, it happened again, so maybe I didn't have anything to do with it the first time. It's a pretty standard shared server setup, with php running as nobody. The cache directory is worldwritable (rwxrwxrwx) so it should be able to create the file itself (if that is what it does).

Is there a reason this file isn't regenerating, should it regenerate? I suppose the better question is why is it being erased, but I'll tackle that once I get it working again.

It normally gets generated on the first login to admin, but it seems be be failing to create it...



7
WickedLogic
Re: admin.php won't let me login

Got it.

I copied the adminmenu.php over from another installation and everything is fine now. Guess I shouldn't have cleaned out the cache directory.



8
WickedLogic
Re: admin.php won't let me login

No firewall between the me and the server worth speaking of, and `nobody` has permissions on the cache folder which is the php user, although there are no files in the cache folder (caching was turned off for all the modules I have installed).

I'll keep digging around and will post if I find anything. If you think there is anywhere/anything else I should check please post.



9
WickedLogic
admin.php won't let me login

I've got a strange issue. The site was setup and working literally minutes ago, I was playing around with some theme changes, which all are working fine.

However, not admin.php keeps leaving me on the "This is your first time to enter the administration section. Press the button below to proceed."

It is not the first time, but something somewhere must have changed. I did a diff on my files vs the normal files and there is virtually no difference (theme changes).

Anyone got a suggestion on where in the db I should start looking?

I can login as admin, but none of the admin actions or pages seem to work.

<-scratches head.



10
WickedLogic
Re: OOP and echo

Oh, I see, so it mostly echos the first time around. Just based on a general looking at the themes, they all seem to echo. Hmm... are there any architecture guides as to how/why the core is setup.
<edit>
nm, found it. I'll stop posting silly stuff until I have read up...




TopTop
(1) 2 3 »



Login

Who's Online

252 user(s) are online (174 user(s) are browsing Support Forums)


Members: 0


Guests: 252


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: May 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits