431
Mazarin
Re: Blank admin.php on 2.3.2b - no errors - tried all the FAQ fixes
  • 2008/12/23 13:19

  • Mazarin

  • Just can't stay away

  • Posts: 533

  • Since: 2008/12/10


Solved. It actually turned out to be the language file of a completely different module, which I had uploaded by accident and which had a ) missing in a line.

Sorry for taking your time with this stupid mistake, but I guess I learned even module language files can have far reaching consequences. Anyway, thanks for your help.



432
Mazarin
Re: Blank admin.php on 2.3.2b - no errors - tried all the FAQ fixes
  • 2008/12/23 12:56

  • Mazarin

  • Just can't stay away

  • Posts: 533

  • Since: 2008/12/10


Agreed that that was the problem with piCal. However, I haven't even touched the general XOOPS translation files. Just to be sure, I reinstalled the Swedish translation of Xoops, but still the same.

Update: I went into the db and changed the language back to English, which made things work again. So it seems that the language files actually are the problem here. I'll continue to try and find the needle in the haystack that's causing this.



433
Mazarin
Re: Blank admin.php on 2.3.2b - no errors - tried all the FAQ fixes
  • 2008/12/23 11:51

  • Mazarin

  • Just can't stay away

  • Posts: 533

  • Since: 2008/12/10


It's all there in the mainfile, and I haven't touched that so I don't see how it could have changed it.

Also, yes, the language file for piCal wasn't the greatest, that's why I was working on changing it - both changing certain translations and adding the use of htmlentities for Scandinavian characters to display correctly.

However, it doesn't seem to me that any of these things should cause what I'm experiencing now as I a) checked mainfile and b) have uninstalled piCal. Also, the site has been up and running for some time before this happened, and I had no problems with it before this.



434
Mazarin
Blank admin.php on 2.3.2b - no errors - tried all the FAQ fixes
  • 2008/12/23 8:19

  • Mazarin

  • Just can't stay away

  • Posts: 533

  • Since: 2008/12/10


Yesterday I ran into the problem of the admin.php just returning a blank page. I turned on error logging, but no error messages. I run 2.3.2b and had just done the following when the problem occurred:

I had some problems with the language files in the piCal module corrupting things, so I decided to uninstall the module. I changed from my local language (Swedish) to English and uninstalled the module, which went fine. After uninstalling successfully, I once again went into the system preferences, changed my default language to Swedish and klicked "Go".

Now the language on the main page has changed, but I cannot access the admin.php page. As stated above, the only thing I did was change language back to english, uninstall piCal, and change it back to Swedish, which did work with admin.php before. I touched no other files than the piCal language files, which have now been removed.

This is driving me crazy. I stayed up half the night trying to fix it with all possible fixes, but to no avail. Anyone have any suggestion? As you can probably understand, I'd rather not make a clean install of my site. Also, I would like to understand what caused the problem so I can avoid it in future.

Any help is greatly appreciated.



435
Mazarin
Re: Possible to write custom code in news post?
  • 2008/12/13 11:54

  • Mazarin

  • Just can't stay away

  • Posts: 533

  • Since: 2008/12/10


Both of them worked fine!

So it seems that for writing php in the html file, all that was needed was a different tag to specify the php code, i.e. <{php}>php code here<{/php}>. With this method, there was no need to create a .htaccess file.

Once again, thanks a lot for your help.



436
Mazarin
Re: Possible to write custom code in news post?
  • 2008/12/12 21:24

  • Mazarin

  • Just can't stay away

  • Posts: 533

  • Since: 2008/12/10


It turned out it wasn't as simple as that. No matter how I try, I can't get the server to parse the embeded php in the html page news_item.html.

I've tried enabling it by putting a .htaccess file with "addtype application/x-httpd-php .html" in each and every directory from the one containing the file to the root web directory, without it having any effect on the news module. However, it works perfectly fine on custom html page in the root, i.e. it shouldn't be the server config file preventing the execution of the .htaccess.

Is there anything in the XOOPS folder/files that prevents the local .htaccess files override?

I've tried putting garbage in both the .htaccess files and the php code, so it seems something is preventing the override. Also, I have module cache turned off in the system settings.

Any ideas as to what could be the problem?



437
Mazarin
Re: Possible to write custom code in news post?
  • 2008/12/11 12:47

  • Mazarin

  • Just can't stay away

  • Posts: 533

  • Since: 2008/12/10


Oh, it's as simple as that. Thanks a lot for your help :)



438
Mazarin
Re: Possible to write custom code in news post?
  • 2008/12/11 9:21

  • Mazarin

  • Just can't stay away

  • Posts: 533

  • Since: 2008/12/10


I thought about this a bit more this morning. Would a possible solution be to have a custom php block displayed in the news module, that retrieves a parameter (e.g. post ID) from the news post and based on that displays the relevant stats in the block? Is it even possible to retrieve such a parameter from a news post?



439
Mazarin
Possible to write custom code in news post?
  • 2008/12/10 21:27

  • Mazarin

  • Just can't stay away

  • Posts: 533

  • Since: 2008/12/10


I've searched for an answer to my question, but haven't been able to find one. However, I do apologize if this has been asked before and then kindly ask you to please point out where I can find it.

I'm using the News 1.63 module and would like to be able to insert custom php code at the bottom of news posts. The reason behind my wish is that I'm running a site for a sports team, and for each news post in a specific category (game reports, but no other categories) I would like to display stats from the game in question from a db table.

Is this at all possible? If so, what would be the general, high-level approach to doing this? If not, are there any other options available to achieve the same results?




TopTop
« 1 ... 41 42 43 (44)



Login

Who's Online

147 user(s) are online (98 user(s) are browsing Support Forums)


Members: 0


Guests: 147


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