xiaomlove / nexusphp

A private tracker application base on NexusPHP
https://nexusphp.org
GNU General Public License v2.0
888 stars 180 forks source link

addition problem stylesheets #140

Closed Stargaterom closed 1 year ago

Stargaterom commented 1 year ago

hello, had deleted the styles from the database that did not need to display the problem when I wanted to put them back it no longer works. here is my page.

Screenshot_1

in domain error log i have this line :

PHP Warning: Undefined array key 7 in /xxxxx/xxxxx/xxxxx/include/functions.php on line 2368PHP message:

PHP Warning: Trying to access array offset on value of type null in /xxxxx/xxxxxxx/xxxxxx/include/functions.php on line 2396PHP

PHP Warning: Undefined variable $defcss in /home/weshmygood/tctg.pm/include/functions.php on line 2375" while reading response header from upstream.

so I don't know at all what I have to do to be able to remove this error linked to my creation of new styles.

Screenshot_2

Screenshot_3

I want to make a style on halloween hihih so if you can help to be able to display it I could work on the css thank you in advance.

xiaomlove commented 1 year ago

default records:

INSERT INTO `stylesheets` VALUES (2,'styles/BlueGene/','Blue Gene','','Zantetsu','HDBits clone'),(3,'styles/BlasphemyOrange/','Blasphemy Orange','','Zantetsu','Bit-HDTV clone'),(4,'styles/Classic/','Classic','','Zantetsu','TBSource original mod'),(6,'styles/DarkPassion/','Dark Passion','','Zantetsu',''),(7,'styles/BambooGreen/','Bamboo Green','','Xia Zuojie','Baidu Hi clone');
Stargaterom commented 1 year ago

hello, I put your line back in sql in the database my themes that were deleted the first time are not displayed correctly

is there something else to do because in the database they are well recorded in stylesheet and in the public/styles folder all the folders are there in chmod 777 or do you have to restart the total server to take the styles into account Screenshot_1

here are the errors that domain log gives me :

PHP Warning: Trying to access array offset on value of type null in /include/functions.php on line 2373PHP message: PHP Warning: Undefined variable $defcss in /include/functions.php on line 2375 GET /usercp.php?action=tracker&type=saved HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php8.1-fpm.sock:", host: "tctg.pm", referrer: "https://xxxxxxx/usercp.php?action=tracker"

Screenshot_3