Znote / ZnoteAAC

Developement repository for the Znote AAC project. A website portal to represent and manage your Open Tibia server.
MIT License
146 stars 127 forks source link

Problem with guild management #377

Closed htc16 closed 4 years ago

htc16 commented 4 years ago

Hello! I am having trouble with guild management, I can only create the guild after creation, when I click to manage guild the page is all white, as in the photo below. How to fix?

Sem título

htc16 commented 4 years ago

Someone to help me with this problem?

Znote commented 4 years ago

I think you have some weird url rewrite rules, the url should be website.com/guild.php, not website.com/index.php/guild.php

htc16 commented 4 years ago

Your help was critical! Already solved, I just remove two-line URL in guild.php.

htc16 commented 4 years ago

I just have another problem that I don't know how to solve, can you help me here? It's about "changelog", it doesn't load my changelos on the main page.

5Zr3tu4

if I post his script in header.php can you help me?

Znote commented 4 years ago

Its most likely a cache problem. You should have a cache file that stores the changelog after you create or update them.

The file should be located in /engine/cache/ folder and the name should be changelog.cache.php Your web user might not have create access to the folder, or write access to the file. What you might wanna try is to:

  1. Create the file manually (as a blank file)
  2. Make sure the file permissions are correct, not owned by root. In most configurations, it should be www-data, if your running ots hosting provisional scripts, otsmanager might also work.
  3. Refreshing home page wont fix the issue, to test if whatever you are trying is actually working, create a new changelog, that should refresh the changelog system.

This is a common issue, probably because most of the cache files already have default files in engine/cache, or because other cached files are created in a way that doesn't require the use of caching, which the changelog does.

Hopefully, the new cache system (which stores cache in memory and not in a flatfile) will solve these issues once and for all.

htc16 commented 4 years ago

Still not able to reach this solution, access my site and you can see, maybe can find the problem of looking, is it possible?

Do I have to leave the file as the root owner? because the current owner of this cache file is www-data.

http://empireserver.servegame.com/index.php

Znote commented 4 years ago

Ohh, I see: http://empireserver.servegame.com/changelog.php

Your changelog cache files are working properly. Perhaps it is a layout issue. Could you link me the layout download your using, and I will take a look at it.

htc16 commented 4 years ago

Can I send in your email? I made some modifications, I didn't want to create public at the moment ... If so, which email?

Znote commented 4 years ago

My email address is in my github profile: https://github.com/Znote

htc16 commented 4 years ago

Hello, I sent! Thank you so much for helping!

Znote commented 4 years ago

Your layout file was trying to load the wrong file:

$changelogCache = new Cache('engine/cache/changelognews');

The correct file is:

$changelogCache = new Cache('engine/cache/changelog');
htc16 commented 4 years ago

Brother, thank you so much for your help, it has been crucial so far! I'm really enjoying your site, if you need anything let me know!