Keyword

Blank K2 Category and Item pages-tried everything

  • Michael Siemers
  • Michael Siemers's Avatar Topic Author
  • Offline
  • New Member
More
11 years 1 month ago #116610 by Michael Siemers
Blank K2 Category and Item pages-tried everything was created by Michael Siemers
If you go to Components > K2 > Items or Categories, you will get a blank page.

What I have read online is that it is a PHP error. Of course, turning on error
reporting doesn't seem to help identify the problem.

Some have suggested enabling multibyte support on the server. I have no idea
how to do this.

I have also considered upgrading the PHP from 5.4 to the new 5.5.1. Can this be
done, and if so, do you think it will help?

I've tried disabling all unnecessary plugins.

I have created a php.ini file and put in every K2 and related administrator folders.

This is a major issue for me being able to complete my customer's project. I am
desperate and willing to try anything at this point.

Would upgrading the site from Joomla 2.5 to 3 fix it?

It was working fine until I created a huge number of new categories and items.
Could this be some sort of memory problem? I increased the memory in the
php.ini to 30M (I think).

Any help would be greatly appreciated.

Mike

P.S. I am even willing to give my site's admin login information to a trustworthy person.

P.S.S. Below is the contents of my php.ini file:

register_globals = Off
upload_max_filesize = 30M
post_max_size = 30M
memory_limit = 30M
upload_tmp_dir = /homepages/11/d469650143/htdocs/Autoport.US/tmp
max_execution_time = 180
extension=php_curl.dll
extension=php_mbstring.dll
mbstring.internal_encoding = UTF-8

@ route.php, lines 56 & 59:
mb_internal_encoding("UTF-8");
// mb_regex_encoding("UTF-8");
$alias = trim(strtolower($user->name));
$alias = str_replace('-', ' ', $alias);
// $alias = mb_ereg_replace(':space:+', ' ', $alias);


@ k2category.php, lines 50 & 53:
mb_internal_encoding("UTF-8");
// mb_regex_encoding("UTF-8");
$this->alias = trim(strtolower($this->alias));
$this->alias = str_replace('-', ' ', $this->alias);
// $this->alias = mb_ereg_replace(':space:+', ' ', $this->alias);

@ k2item.php, lines 75 & 78:
mb_internal_encoding("UTF-8");
// mb_regex_encoding("UTF-8");
$this->alias = trim(strtolower($this->alias));
$this->alias = str_replace('-', ' ', $this->alias);
// $this->alias = mb_ereg_replace(':space:+', ' ', $this->alias);

Please Log in or Create an account to join the conversation.

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
11 years 1 month ago #116611 by Krikor Boghossian
Replied by Krikor Boghossian on topic Re: Blank K2 Category and Item pages-tried everything
Hello Michael,

I don't think Joomla! 2.5.x has been tested thoroughly with PHP 5.5 so I would stick with PHP 5.4 for the moment.

The error reporting and error_logs will provide you with some insight so you have to enable them. I suggest however you let your hosting provider know about this issue since manually uploading php.ini files is not a good practise.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

  • Michael Siemers
  • Michael Siemers's Avatar Topic Author
  • Offline
  • New Member
More
11 years 1 month ago #116612 by Michael Siemers
Replied by Michael Siemers on topic Re: Blank K2 Category and Item pages-tried everything
Yeah - the funny thing is my hosting provider said they can't help since they don't support Joomla.

Thanks anyhow.

Anyone else have any ideas?

Please Log in or Create an account to join the conversation.

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
11 years 1 month ago #116613 by Krikor Boghossian
Replied by Krikor Boghossian on topic Re: Blank K2 Category and Item pages-tried everything
Check for any permission errors, you can also use an extension called Admin Tools to do this.

Also make sure you have the correct path to your /tmp and /logs folders

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

  • Michael Siemers
  • Michael Siemers's Avatar Topic Author
  • Offline
  • New Member
More
11 years 1 month ago #116614 by Michael Siemers
Replied by Michael Siemers on topic Re: Blank K2 Category and Item pages-tried everything
This is how I fixed it.

1. Download php.ini to local computer. If no such file exists, create one in Wordpad. Name it php.ini.
2. Open in WordPad.
3. Change (or add) the following lines:
a. display_errors = Off
b. error_reporting = E_ALL & ~E_NOTICE & ~E_DEPRECATED
4. Save changes.
5. Delete all php.ini files currently on your hosting server.
6. Upload new php.ini file to root directory, administrator folder root, and administrator>components>com_k2 folder.
7. Change the php.ini file permissions to give full control to Owner, Group, and Public.

This may be an overkill solution, but it worked for me after all other attempts at solutions presented on the Internet failed.

Now I may work backwards and scale back the extreme measures to make it the most minimally invasive solution possible.

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum