1
xjih78
Re: cp1251 encoding problem
  • 2007/3/29 10:58

  • xjih78

  • Just popping in

  • Posts: 5

  • Since: 2007/3/28


I edited the database.php file, added this to the function so it's like that:
Quote:

function prefix($tablename='')
{
return $this->prefix .'_'. $tablename;
$this->prefix = $table_prefix;
@mysql_query("SET NAMES 'cp1251'", $this->_resource);
if ( $tablename != '' ) {
return $this->prefix .'_'. $tablename;
} else {
return $this->prefix;
}
}
}
}

and added the lines in php.ini, restarted the server and it is the same.



2
xjih78
cp1251 encoding problem
  • 2007/3/28 19:21

  • xjih78

  • Just popping in

  • Posts: 5

  • Since: 2007/3/28


I entered my encoding in the global.php and the same is with the database for the portal and there's no problem with displaying these characters except when i submit text and what comes out are "?" which replace the letters. any ideas?



3
xjih78
Login problem
  • 2007/3/28 16:02

  • xjih78

  • Just popping in

  • Posts: 5

  • Since: 2007/3/28


"Sorry, no corresponding user info was found."
this message appears and the page refreshes infinitely.



4
xjih78
Re: problem: everything is blank
  • 2007/3/28 13:52

  • xjih78

  • Just popping in

  • Posts: 5

  • Since: 2007/3/28


Yeah! I found the problem, but how to turn debug mode on?
There it is:

Quote:

To turn on debugging try the following things:
=
1. If you can get to admininstration menu, go to Preferences, select 'Main', and find the section on debugging options. Choose "PHP Debugging"

2. If you can't get to the administration page, but have access to mysql, try the query "UPDATE xoops_config SET conf_value=1 WHERE conf_name = 'debug_mode'". Be sure to make sure "xoops_config" matches the name of the config table in your installation. (NOTE: This does not work with XOOPS 2.2, see 2a)

2a. In XOOPS 2.2, go to your site's root file "recovery.php" and set the debug settings through the interface here

3. If you can't get to the administration page, and don't want to mess with mysql, but don't mind messing with PHP, then edit the file "include/common.php". Near line 83, change "error_reporting(0);" to "error_reporting(E_ALL);".

4. If this still doesn't work, your server or hoster may have turned off debugging in "/etc/php.ini" (linux) or "WIN_DIRECTORY/php.ini" (windows). Make sure there is a line in there "display_errors On".

5. If you don't have access to change this file (e.g. on shared hosting), then if the server uses the "apache" webserver, you can create a file called ".htaccess" to override the settings locally. This file should contain the line: "php_flag display_errors on". The tricky part is WHERE to put this file. Look at the URL you are having problems with. Put the file in the corresponding directory. e.g. If it is "someplace.com/xoops/" or "someplace.com/xoops/index.php" then you need to put the file in the main XOOPS directory. If it is something like "someplace.com/xoops/modules/system/admin.php" then put it in "modules/system" subdirectory of your XOOPS installation. etc.

I found this onhttps://xoops.org/modules/smartfaq/faq.php?faqid=80

I forgot to say that the problem really was in the languages file.



5
xjih78
problem: everything is blank
  • 2007/3/28 13:08

  • xjih78

  • Just popping in

  • Posts: 5

  • Since: 2007/3/28


The page loads but it's completely blank. I'm using 2.0.16. I checked permissions and everything is ok. This problem occurred after I changed languages. How can I fix this?




TopTop



Login

Who's Online

139 user(s) are online (83 user(s) are browsing Support Forums)


Members: 0


Guests: 139


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: May 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits