VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: liv on February 21, 2012, 00:23:21 AM

Title: Virtuemart 2.0.1 N and Joomla 2.5.1 config file not found / just white screen
Post by: liv on February 21, 2012, 00:23:21 AM
Virtuemart 2.0.1 N and Joomla 2.5.1   Can´t find config-file: "mydomain.com/administrator/index.php?option=com_virtuemart&view=config" shows a blank screen. So I can´t see the store in frontend. In backend/administrator I can see products and all other things but not configuration file.
Title: Re: Virtuemart 2.0.1 N and Joomla 2.5.1 config file not found / just white screen
Post by: PRO on February 21, 2012, 01:11:45 AM
liv, can you give more information.

Did you upgrade? have you tried the "database" fix in "extension manage"
if it was an upgrade, did you "install or update tables"

also, have you tried to reinstall (NOT UNINSTALL and reinstall)

You can try and install on top of the one you have
Title: Re: Virtuemart 2.0.1 N and Joomla 2.5.1 config file not found / just white screen
Post by: liv on February 21, 2012, 09:20:49 AM
I have joomla 2.5.1. When I use Virtuemart 2.0.1 h it works fine ( a few things that is not working like previous and next item), but when I install (not upgrade) Virtuemart 2.0.1 k the link to "product details" on category browse links to image of the item instead of "product-details"-page. When I install Virtuemart 2.0.1 N then there is a problem with the config-file. In backend I can see the control panel and see all the products and so on, but when I click on configuration a blank screen appears. In frontend I only see a blank screen, I can see nothing of the store.

I have Standard Admin Tools 2.2.0 and fix the tables and so on with this component. But nothing helps.

So I reinstall Virtuemart 2.0.1 h to be able to see the store again and the configuration i bacend. So I still use the "h"-version.

I have multi language site.

Liv
Title: Re: Virtuemart 2.0.1 N and Joomla 2.5.1 config file not found / just white screen
Post by: MaHe29 on February 21, 2012, 10:04:12 AM
I think i have the same issue.
Local the site works like a charm, but when i upload it to a live testing location there are some issues.
The Joomlapart is working fine. But when i try to go to the shop i get blank screens and a http-500 Error.
In the backend i can open the products page and can edit the products. But i cant open the configuration.
This issue started after upgrading from K to N.
So it looks to me that the configuration file causes the problem.
I;ve tried the fix database tools, change the mappermissions, disabeld al lot of components and plugins even reinstall sample data.
Nothing worked, firebug doesnt show any info because you get a blanc page.
Because its working fine localy (with Xampp) which uses:
- Apache/2.2.14 (Win32) DAV/2 mod_ssl/2.2.14 OpenSSL/0.9.8l mod_autoindex_color PHP/5.3.1 mod_apreq2-20090110/2.7.1 mod_perl/2.0.4 Perl/v5.10.1
- MySQL-client versie: 5.1.41
- PHP uitbreiding: mysqli

And my live testing server
-Apache/2.2.3 (CentOS)
-MySQL-client versie: 5.1.41
-PHP uitbreiding: mysql
Title: Re: Virtuemart 2.0.1 N and Joomla 2.5.1 config file not found / just white screen
Post by: Milbo on February 21, 2012, 10:44:11 AM
Quote from: MaHe29 on February 21, 2012, 10:04:12 AM
- MySQL-client versie: 5.1.41
- PHP uitbreiding: mysqli

And my live testing server
-Apache/2.2.3 (CentOS)
-MySQL-client versie: 5.1.41
-PHP uitbreiding: mysql

Do you see the difference?
Title: Re: Virtuemart 2.0.1 N and Joomla 2.5.1 config file not found / just white screen
Post by: MaHe29 on February 21, 2012, 11:06:16 AM
Hey Milbo,

Yes Mysql and Mysqli.
But this didnt cause any issues before.
I found out that the following file causes the error.
/administrator/components/com_virtuemart/models/user

When i replace this file with the old one (update K) evry thing works fine again.
I will try to find out what part causes the issue.
Title: Re: Virtuemart 2.0.1 N and Joomla 2.5.1 config file not found / just white screen
Post by: MaHe29 on February 21, 2012, 11:12:49 AM
Line 129 is marked red in Dreamweaver. It seems there made some changes after line 120.
I'm not in to writing codes so i cant fix this.
PLease let me know if this is a general bug and if there will be a fix?
Title: Re: Virtuemart 2.0.1 N and Joomla 2.5.1 config file not found / just white screen
Post by: Milbo on February 21, 2012, 11:26:11 AM
I would be very intersting to know why this little change make so much trouble. Please provide me your php version. Thx.

Please try this version:

/**
* Returns a user with given vendor Id
*
* @author Max Milbers
* @param int $vendorId
*/
function getVendor($vendorId){
$vendorModel = VmModel::getModel('vendor');
$userId = VirtueMartModelVendor::getUserIdByVendorId($vendorId);
if($userId){
$this->setUserId($userId);
return $this->getUser();
} else {
return false;
}
}
Title: Re: Virtuemart 2.0.1 N and Joomla 2.5.1 config file not found / just white screen
Post by: liv on February 21, 2012, 11:37:14 AM
Hello

May be I should have informed you about my systeminformations too:

I use Mysqli

Database Version    5.1.49-log
Database Collation    utf8_general_ci
PHP Version    5.2.17
Web Server    Apache/2.2.6
Joomla! Version    Joomla! 2.5.1 Stable
Joomla! Platform Version    Joomla Platform 11.4.0 Stable
User Agent    Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7)

Liv
Title: Re: Virtuemart 2.0.1 N and Joomla 2.5.1 config file not found / just white screen
Post by: Milbo on February 21, 2012, 11:43:03 AM
ahh also php 5.2 http://forum.virtuemart.net/index.php?topic=98301.msg324459#msg324459
Title: Re: Virtuemart 2.0.1 N and Joomla 2.5.1 config file not found / just white screen
Post by: MaHe29 on February 21, 2012, 11:45:22 AM
Quote from: Milbo on February 21, 2012, 11:26:11 AM
I would be very intersting to know why this little change make so much trouble. Please provide me your php version. Thx.

Please try this version:

/**
* Returns a user with given vendor Id
*
* @author Max Milbers
* @param int $vendorId
*/
function getVendor($vendorId){
$vendorModel = VmModel::getModel('vendor');
$userId = VirtueMartModelVendor::getUserIdByVendorId($vendorId);
if($userId){
$this->setUserId($userId);
return $this->getUser();
} else {
return false;
}
}


Thanx mate, this fixed my problem!
The PHP MyAdmin version online is 3.3.4 (this one caused a blank page)

The PHP MyAdmin version local is 3.2.4 (this one was working fine)
Title: Re: Virtuemart 2.0.1 N and Joomla 2.5.1 config file not found / just white screen
Post by: Milbo on February 21, 2012, 17:09:54 PM
Not the version of phpmyadmin.
Title: Re: Virtuemart 2.0.1 N and Joomla 2.5.1 config file not found / just white screen
Post by: MaHe29 on February 22, 2012, 09:08:23 AM
The server runs on PHP 5.2.4
Local 5.3.1