saguaroib / saguaro

saguaro imgboard software
14 stars 5 forks source link

Index Generation #206

Closed Yushe closed 8 years ago

Yushe commented 8 years ago

Index generation still seems to not be working.

RePod commented 8 years ago

Is your board running from a subfolder of the root? Like, mysite.com/board? I had a problem recently where running it directly on the site root messed it up due to one of the automated config options.

Yushe commented 8 years ago

I run it in a regular folder like all of my boards.

RePod commented 8 years ago

What's the redirected URL after accessing imgboard.php?

Yushe commented 8 years ago

It just goes to index.html like usual.

Apogate commented 8 years ago

What board?

Yushe commented 8 years ago

A secret test board that I use for testing stuff before updating the boards.

RePod commented 8 years ago

I would highly suggest forking this repository (by clicking the Fork button fork in the top-right corner of the page) to work on instead of mirroring our commits into your own (in favor of you other, outdated fork).

The direct benefit of doing this is you can fetch all our commits without mirroring them yourself.

It's hard to discern how you are modifying/tampering with the software and I refuse to support it otherwise starting now. And no, we simply cannot "trust you" to mirror our commits.

Yushe commented 8 years ago

The reason I have it there is so it is easier to update the site without having to keep adding my own code back to it, also I have tried the one on this repo and mine they both have the same issue.

RePod commented 8 years ago

What modifications are you making that can be integrated with Saguaro natively? I'll look into adding them.

Yushe commented 8 years ago

There just minor things like the footer and redtext that if you want I can make a pull for it.

RePod commented 8 years ago

I can whip up something for a custom footer. I don't know what redtext is referring to though.

Yushe commented 8 years ago

The footer is the disclaimer and the link to the credits I use.

Redtext: https://github.com/Yushe/3ch/commit/a9c0a878015d763f51a00ba6b9888507d60e936a

RePod commented 8 years ago

[b][size=4][color=darkred]text[/color][/size][/b] should product similar results.
Might need to shuffle around the order, since they're processed by how they're ordered in the actual file and not the string.

Apogate commented 8 years ago

I'm going to bet this is safe to close? Probably. Yeah.

Yushe commented 8 years ago

@Apogate Index generation is still not working for me for whatever reason.

RePod commented 8 years ago

Check server logs.

Yushe commented 8 years ago

@RePod I found the problem, I don't know how to update to mysqli so it is having problems connecting to the database because "mysql_connect()" is deprecated.

RePod commented 8 years ago

Try changing these lines in imgboard.php to:

require_once(CORE_DIR . "/mysql/mysqli.php");
$mysql = new SaguaroMySQLi;
Yushe commented 8 years ago

Warning: mysqli::query() expects parameter 1 to be string, object given in /var/www/html/test/_core/mysql/mysqli.php on line 41

Catchable fatal error: Object of class mysqli_result could not be converted to string in /var/www/html/test/_core/mysql/mysqli.php on line 44

@RePod I got these errors on imgboard.php

RePod commented 8 years ago

Mind you, it hasn't been tested thoroughly. I need more information (like what's calling it, or what you're doing) to see why it's doing that.

Yushe commented 8 years ago

The myql_connect() errors appear on admin.php. mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /var/www/html/test/_core/mysql/mysql.php on line 13

Also the ipnotes table hasn't been created yet because mysql error 1071.