PHP-Nuke Titanium HQ
     
HEADSHOT DOMAIN - GAMING SINCE 2003
PHP-Nuke Titanium v4.0.4 / PHP v8.2.17
Sponsor Tron for PHP-Nuke Titanium
::: There is so much more here to see, it takes 30 seconds to register an account and we don't even verify with e-mail! Just register we promise you won't be sorry... ::: Login or Register
IPHub is an IP lookup website featuring Proxy/VPN detection. A free API is available, so you can perform fraud checks on online stores, detect malicious players on online games and much more! Look at this! Click here Look at this! to sign up for FREE today at ipHub ::: Country Music: The Soul Circus Cowboys ::: Sponsor: Brandon Maintenance Management, LLC Phone: 813-846-2865 ::: Sponsor: Big Country Radio - The EJ Morning Show :::

Warning: Undefined array key "session_logged_in" in /home/dev4/public_html/includes/auth.php on line 268

Warning: Undefined array key "session_logged_in" in /home/dev4/public_html/includes/auth.php on line 268

Warning: Undefined array key "session_logged_in" in /home/dev4/public_html/includes/auth.php on line 268

Warning: Undefined array key "session_logged_in" in /home/dev4/public_html/includes/auth.php on line 268

Warning: Undefined array key "session_logged_in" in /home/dev4/public_html/includes/auth.php on line 276

Warning: Undefined array key "session_logged_in" in /home/dev4/public_html/includes/auth.php on line 276

Warning: Undefined array key "session_logged_in" in /home/dev4/public_html/includes/auth.php on line 268

Warning: Undefined array key "session_logged_in" in /home/dev4/public_html/includes/auth.php on line 268

Warning: Undefined array key "session_logged_in" in /home/dev4/public_html/includes/auth.php on line 268

Warning: Undefined array key "session_logged_in" in /home/dev4/public_html/includes/auth.php on line 268

Warning: Undefined array key "session_logged_in" in /home/dev4/public_html/includes/auth.php on line 328

Warning: Undefined array key "session_logged_in" in /home/dev4/public_html/modules/Forums/viewtopic.php on line 406

Warning: Undefined array key "session_logged_in" in /home/dev4/public_html/modules/Forums/viewtopic.php on line 536

Warning: Undefined array key "session_logged_in" in /home/dev4/public_html/modules/Forums/viewtopic.php on line 788

Warning: Undefined array key "session_id" in /home/dev4/public_html/includes/functions.php on line 1015

 
Recent Topics   Next 5 >>  
Forum Replies Last Post
Oh yes ! Now here is some Northern fried wierd shit! 💩
Started by RECTOR
PHP-Nuke Titanium - Modules (Root) 13 Thu Oct 26, 2023 5:33 pm
by Technocrat
What year is it!?
Started by Technocrat
PHP-Nuke Titanium - Community 0 Thu Oct 26, 2023 5:05 pm
by Technocrat
Dragonfly
Started by Critical
PHP-Nuke Titanium - Community 2 Thu Apr 20, 2023 6:50 am
by Critical
Can you PM me the private link to the PHP 9 Repo
Started by YuckFou
PHP-Nuke Titanium - PHP 1 Tue Apr 18, 2023 11:08 am
by CodeBuzzard
Your_Account Module question?
Started by CyBorg
PHP-Nuke Titanium - Modules (Root) 1 Thu Apr 06, 2023 7:39 am
by Negan

WARNING: Running Rector in a shared hosting environment will not work (Temp Fix) 👻
Post new topic Reply to topic printer-friendly view List users that have viewed this topic Thank Post   Forum Index Rector PHP
View previous topic View next topic
TheGhost Reply with quote
Administrator
Developer
VIP Member
Joined Aug 23, 2022
Reputation: 15.1
votes: 3
online
WARNING: Running Rector in a shared hosting environment will not work (Temp Fix) 👻
by TheGhost Mon Dec 26, 2022 11:58 am

It seems that the sys_get_temp_dir() function in PHP 8.x currently has a bug!

In order to run Rector in a shared hosting environment you must make the following changes to your config files!


open:

Code: [ Select all ]

vendor/rector/rector/config/config.php


goto line 68:

replace line 68 with the following:

PHP:  [ Select all ]

$rectorConfig->cacheDirectory(__DIR__ '/rector_cached_files'); 



Then Open:

Code: [ Select all ]

vendor/rector/rector/packages/NodeTypeResolver/DependencyInjection/PHPStanServicesFactory.php



goto line 45:

replace line 45 with the following:

PHP:  [ Select all ]

$this->container $containerFactory->create(__DIR__$existingAdditionalConfigFiles, []); 


If you have tried to run Rector before making these changes you must delete your vendor directory
and then run composer update from your root dir.



Back to top
View user's profile Send TheGhost a private message Send TheGhost an email. Visit user's website Visit user's Facebook: ernest.buffington.1
Thankful People
3 user(s) is/are thankful for this post.
CyBorg Reply with quote
Developer
Developer
Joined Oct 15, 2022
Reputation: 17.9
votes: 1
online
WARNING: Running Rector in a shared hosting environment will not work (Temp Fix) 👻
by CyBorg Mon Dec 26, 2022 12:24 pm

I was having the same problem...

I did what you said and it did not work because I had already tried to run rector before updating the config files.

So I did what you said and deleted the vendor dir and ran composer update and all works fine.

Thanks Ghost



Back to top
View user's profile Send CyBorg a private message
Sponsor
CyBorg Reply with quote
Developer
Developer
Joined Oct 15, 2022
Reputation: 17.9
votes: 1
online
WARNING: Running Rector in a shared hosting environment will not work (Temp Fix) 👻
by CyBorg Tue Jan 24, 2023 2:25 pm

— TheGhost
It seems that the sys_get_temp_dir() function in PHP 8.x currently has a bug!

In order to run Rector in a shared hosting environment you must make the following changes to your config files!


open:


Code: [ Select all ]

vendor/rector/rector/config/config.php


goto line 68:

replace line 68 with the following:


PHP:  [ Select all ]

$rectorConfig->cacheDirectory(__DIR__ '/rector_cached_files'); 



Then Open:


Code: [ Select all ]

vendor/rector/rector/packages/NodeTypeResolver/DependencyInjection/PHPStanServicesFactory.php



goto line 45:

replace line 45 with the following:


PHP:  [ Select all ]

$this->container $containerFactory->create(__DIR__$existingAdditionalConfigFiles, []); 


If you have tried to run Rector before making these changes you must delete your vendor directory
and then run composer update from your root dir.


I figured out the problem and why Tom never responded.

He must know people running it in a shared environment that were not having the same problem. (He could have told you this)

Anyway, Cannot execute /tmp/tmp.lt4iSNPv0v/rustup-init (likely because of mounting /tmp as noexec).

This has also stopped Rector from working properly.

It has taken me a while to figure out why vendor scripts are unable to use mkdir and handle their cache files correctly.

Whoever mounted my tmp dir must have done this. When running a shared hosting environment for developers this can't be that way for us or anyone else running a shared hosting environment.

I mounted the tmp location as executable:


Code: [ Select all ]

[root@venomous ~]# cat /proc/mounts |grep /tmp
/dev/sda4 /tmp ext4 rw,seclabel,relatime,data=ordered 0 0

using mount -o remount,exec /tmp



Back to top
View user's profile Send CyBorg a private message
TheGhost Reply with quote
Administrator
Developer
VIP Member
Joined Aug 23, 2022
Reputation: 15.1
votes: 3
online
WARNING: Running Rector in a shared hosting environment will not work (Temp Fix) 👻
by TheGhost Tue Jan 24, 2023 3:06 pm

— CyBorg


I figured out the problem and why Tom never responded.

He must know people running it in a shared environment that were not having the same problem. (He could have told you this)

Anyway, Cannot execute /tmp/tmp.lt4iSNPv0v/rustup-init (likely because of mounting /tmp as noexec).

This has also stopped Rector from working properly.

It has taken me a while to figure out why vendor scripts are unable to use mkdir and handle their cache files correctly.

Whoever mounted my tmp dir must have done this. When running a shared hosting environment for developers this can't be that way for us or anyone else running a shared hosting environment.

I mounted the tmp location as executable:



Code: [ Select all ]

[root@venomous ~]# cat /proc/mounts |grep /tmp
/dev/sda4 /tmp ext4 rw,seclabel,relatime,data=ordered 0 0


using mount -o remount,exec /tmp


That is awesome thanks, my brother! It will be nice to not have any more cache issues...


Back to top
View user's profile Send TheGhost a private message Send TheGhost an email. Visit user's website Visit user's Facebook: ernest.buffington.1
Sponsor
TheGhost Reply with quote
Administrator
Developer
VIP Member
Joined Aug 23, 2022
Reputation: 15.1
votes: 3
online
WARNING: Running Rector in a shared hosting environment will not work (Temp Fix) 👻
by TheGhost Wed Jan 25, 2023 9:42 am

Still having the same problem! I have to manually delete the cache ever so often...


Back to top
View user's profile Send TheGhost a private message Send TheGhost an email. Visit user's website Visit user's Facebook: ernest.buffington.1
CyBorg Reply with quote
Developer
Developer
Joined Oct 15, 2022
Reputation: 17.9
votes: 1
online
WARNING: Running Rector in a shared hosting environment will not work (Temp Fix) 👻
by CyBorg Wed Jan 25, 2023 1:12 pm

— TheGhost
Still having the same problem! I have to manually delete the cache ever so often...


Yea, turns out I am also. I guess the only way to use rector is with the files you modified.


Back to top
View user's profile Send CyBorg a private message
Sponsor
fabpot Reply with quote
Developer
VIP Member
Joined Jan 12, 2023
Reputation: 3.2
Hidden
WARNING: Running Rector in a shared hosting environment will not work (Temp Fix) 👻
by fabpot Mon Mar 13, 2023 9:12 am

Will that zip file work for the current Rector Build?


Back to top
View user's profile Send fabpot a private message Visit user's website
TheGhost Reply with quote
Administrator
Developer
VIP Member
Joined Aug 23, 2022
Reputation: 15.1
votes: 3
online
WARNING: Running Rector in a shared hosting environment will not work (Temp Fix) 👻
by TheGhost Mon Mar 13, 2023 9:14 am

— fabpot
Will that zip file work for the current Rector Build?


No, I will send you a new attachment in a private message.


Back to top
View user's profile Send TheGhost a private message Send TheGhost an email. Visit user's website Visit user's Facebook: ernest.buffington.1
Sponsor
Display posts from previous:

Post new topic Reply to topic printer-friendly view List users that have viewed this topic Thank Post   Forum Index Rector PHP All times are UTC - 5 Hours

Page 1 of 1


 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum

Related topics
 Topics   Replies   Author   Views   Last Post 
No new posts Where is rectorphp storing cache files? 🧰 6 CyBorg 2200 Sat Mar 25, 2023 8:12 am
HiJacker View latest post
No new posts Blogs Module - Commenting does not work! 2 DeezNuts 954 Sat Feb 11, 2023 11:36 pm
DeezNuts View latest post
No new posts function is_mod_admin($module_name='super') 0 RECTOR 1045 Wed Dec 21, 2022 7:46 pm
RECTOR View latest post
No new posts root/includes/iphub.novpn.php line 35 2 GazJ 1228 Sun Nov 06, 2022 9:08 pm
GazJ View latest post
No new posts I need a hosting module? 5 Cobalt74 2026 Sat Sep 24, 2022 11:07 am
TheGhost View latest post