31
geekwright
Re: Really NOT a stupid php / sql problem

This is an interesting problem. I am not an expect on oledrion, nor multi-thread PHP, but I can see the problem.

I started with the current master of the code here:
https://github.com/mambax7/oledrion.git

I did a quick scan of the code to see this:
grep -r pcntl *
class/
Gateways/Paypal/PaypalGateway.php:                    $pid pcntl_fork();


The takeaway from this is that there is only one 'pcntl' call in the code, and that is a fork. Nothing is waiting or watching for another fork, i.e. a pcntl_wait() call.

The botched mysqli connection is due to the fact that the process was forked, and the first fork that exits closes the database connection, leaving all other forks with a dead database object.

I am not sure how things ended up in this state. It is possible that the mysql and mysqli extensions behave differently in this circumstance. It is also possible something important is just missing.

It will take more research to get a handle on this and determine a plan of action. But, this is not a stupid problem. It is a very interesting problem.



32
geekwright
Re: Which editor do you use ?

Quote:

alain01 wrote:
...
Is there any snippets, extension for XOOPS, for
PhPstorm and Visual Studio Code ? (didnt find)

(XMF words, xoops smarty) ?
...


With VSCode, you will want to install the PHP IntelliSense extension. (It will offer useful extensions when you open a file type for the first time,)

With both PHPStorm and VSCode (and Eclipse as I recall,) you will open a directory (i.e. your XoopsCore25 clone.) The first thing that will happen is the program will build an index of all the files in that directory. From that index, it will know in most cases all the functions, classes, and variables by type and signature. That enables auto-completion, parameter hints and easy access to documentation blocks. Those features are one of the reasons for making the move from simple editors to integrated development environments (IDE)



33
geekwright
Re: Where is the header links ?

Some modules assign $xoops_module_header directly, but in general calls like these
$GLOBALS['xoTheme']->addScript(...);
$GLOBALS['xoTheme']->addStylesheet(...);
$GLOBALS['xoTheme']->addMeta(...);

are the preferred way to interact with it.



34
geekwright
Re: Which editor do you use ?

PhpStorm is my tool of choice for everything XOOPS related. It is awesome!

In the free realm, Visual Studio Code is a very solid and powerful product.



35
geekwright
Re: Upgrade problem going from 2.3.3 to 2.5.10

Quote:

Dhurgan wrote:
...
Checking the error.log it shows the message...
Upgrade required on users table!, referer:
So apparently some step in the upgrade has required a db schema change.
...


The message you mention is not a fatal error, it is informational and occurs at signon when it attempts to update the hash of your password. The hash used to store passwords is much more advanced now, so the 'pass' column was expanded to 255 characters. The system will continue to function, but it will not be able to store the new stronger passwords using the new hash. A later upgrade step will fix that.

Sorry to hear of your troubles. Unfortunately, there are a lot of things that can go wrong. Some things to keep in mind:
- old protector hacks to mainfile.php need to be disabled
- disabling modules before starting the upgrade may help



36
geekwright
Re: 503 Service Unavailable

That is not coming from XOOPS. From the message, it sounds like it comes from a level above.



37
geekwright
Re: XOOPS install write access on folders

Quote:

fabou78 wrote:
...
What about this one xoops_lib/modules/protector/configs/ ?

I can't remember exactly where I got this from but I am pretty sure it caused me some troubles in the past when it was not enabled for write.

As of XOOPS 2.5.10, the protector data moved out of xoops_lib to xoops_data/protector.

This was done to move all writable data out of xoops_lib to simplify security management.



38
geekwright
Re: xswatch

Quote:

Lupin wrote:
Hi geekwright, can I ask for a little help?


When I have customized it for sites, I have always used the source code to recompile the Bootstrap css. There are a lot of calculations done to keep things sane.

See:https://github.com/thomaspark/bootswatch

The master branch has the bootstrap v4 versions in scss.

The v3 branch has the v3 code, in less and scss.

Also, you should be able to switch xSwatch to v4 just by using the v4 css and js found there, and tweaking the xSwatch templates as needed.



39
geekwright
Re: XOOPS 2.5.9 Notes for Theme Creators

The $xoops_page variable only gives the module and script. It was intended to allow adding menus or style variations for a specific function, not specific content.

If I needed the content_id exposed as well, I would probably ask Mage to add it to the smarty variables that xmcontent assigns.



40
geekwright
Re: The Protector module is blocking my IP address.

Protector keeps its list of bad IP addresses in a file names "badips" followed by 6 hex characters unique to your system.

If you are using XOOPS 2.5.9, the "badips" file is found in the "xoops_data/protector/" directory.

In earlier XOOPS versions, the file will be in the "xoops_lib/modules/protector/configs" directory.

Deleting that file, or editing it to remove the line with you IP address should end the ban.




TopTop
« 1 2 3 (4) 5 6 7 ... 22 »



Login

Who's Online

239 user(s) are online (157 user(s) are browsing Support Forums)


Members: 0


Guests: 239


more...

Donat-O-Meter

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

Latest GitHub Commits