NSP makes my site break in Chrome

Free responsive Joomla 2.5 and 3.x module to present your content with easy and intuitive way.
Rate this topic: Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.
GK User
Sun Apr 29, 2012 1:01 pm
If you view my site in chrome it is just white:

http://www.fotoforalla.se

But when I deactive all of my NSP GK4 module the site works in Chrome again. If I activate only on NSP module, it doesn´t matter which one, the site breaks again.

The strange thing is if I only have one NSP module active the site breaks in all browsers but if I activate more then one the site only breaks in Chrome. Again it doesn´t matter which one or which content the module shows.
User avatar
Platinum Boarder

GK User
Sun Apr 29, 2012 2:48 pm
When I turn of create thumbnails in the module then everything works in Chrome again, but then I turn in back on and it stops working.

Why doesn´t create thumbnails work in Chrome?

I have Joomla 2.5.4 and NSP GK4 3.1.1.
User avatar
Platinum Boarder

GK User
Sun Apr 29, 2012 3:04 pm
When I told Joomla to show all errors on my page I got this error message in one of my NSP GK4 modules that shows Virtuemart products:
Code: Select all
Notice: Undefined variable: itemid in /var/www/vhosts/ffatest.se/ffatest.se/httpdocs/modules/mod_news_pro_gk4/tmpl/layout.parts.php on line 633 Notice: Undefined variable: news_text in /var/www/vhosts/ffatest.se/ffatest.se/httpdocs/modules/mod_news_pro_gk4/tmpl/layout.parts.php on line 635 Notice: Undefined variable: itemid in /var/www/vhosts/ffatest.se/ffatest.se/httpdocs/modules/mod_news_pro_gk4/tmpl/layout.parts.php on line 633 Notice: Undefined variable: news_text in /var/www/vhosts/ffatest.se/ffatest.se/httpdocs/modules/mod_news_pro_gk4/tmpl/layout.parts.php on line 635 Notice: Undefined variable: itemid in /var/www/vhosts/ffatest.se/ffatest.se/httpdocs/modules/mod_news_pro_gk4/tmpl/layout.parts.php on line 633 Notice: Undefined variable: news_text in /var/www/vhosts/ffatest.se/ffatest.se/httpdocs/modules/mod_news_pro_gk4/tmpl/layout.parts.php on line 635 Notice: Undefined variable: itemid in /var/www/vhosts/ffatest.se/ffatest.se/httpdocs/modules/mod_news_pro_gk4/tmpl/layout.parts.php on line 633 Notice: Undefined variable: news_text in /var/www/vhosts/ffatest.se/ffatest.se/httpdocs/modules/mod_news_pro_gk4/tmpl/layout.parts.php on line 635 Notice: Undefined variable: itemid in /var/www/vhosts/ffatest.se/ffatest.se/httpdocs/modules/mod_news_pro_gk4/tmpl/layout.parts.php on line 633 Notice: Undefined variable: news_text in /var/www/vhosts/ffatest.se/ffatest.se/httpdocs/modules/mod_news_pro_gk4/tmpl/layout.parts.php on line 635 Notice: Undefined variable: itemid in /var/www/vhosts/ffatest.se/ffatest.se/httpdocs/modules/mod_news_pro_gk4/tmpl/layout.parts.php on line 633 Notice: Undefined variable: news_text in /var/www/vhosts/ffatest.se/ffatest.se/httpdocs/modules/mod_news_pro_gk4/tmpl/layout.parts.php on line 635


Could that be what is causing the problem in Chrome?
User avatar
Platinum Boarder

GK User
Sun Apr 29, 2012 4:18 pm
I found it! I was PayPlans 1.4.18 that doesn´t like NSP GK4 3.1.1. I works fine with PayPlans 1.4.17.
User avatar
Platinum Boarder

GK User
Sun Apr 29, 2012 4:28 pm
Ok I was wrong the problem wasn´t PayPlans, it is back again.
User avatar
Platinum Boarder

GK User
Sun Apr 29, 2012 5:54 pm
Ok the problem is when I set the NSP module to show products in Virtuemart categories and I set it to create thumbnails. If I do that then the page that the module is assigned to will be empty in Chrome.

If I change the module to show Joomla articles instead then everything works fine.
User avatar
Platinum Boarder

GK User
Sun Apr 29, 2012 9:47 pm
The "create thumbnails" function seems to be the problem, if I enable it the site breaks, if I turn it off the site works again.
User avatar
Platinum Boarder

GK User
Mon Apr 30, 2012 3:38 pm
Hi,

I now can't access your backend to check with the old credentials anymore, can you please provide backend and FTP access again for me to debug further?

Thanks,
User avatar
Platinum Boarder

GK User
Tue May 01, 2012 5:23 pm
You can now go here to see the problem (with Chrome):

http://www.ffatest.se/

And you should now be able to login to the back-end! If you need FTP then you will have to install a FTP component since I have a problem with the FTP on my server, you need root access to operate it.
User avatar
Platinum Boarder

GK User
Wed May 02, 2012 2:19 pm
Have you gotten a chance to look at this problem? It is important that this gets fixed as fast as possible.
User avatar
Platinum Boarder

GK User
Wed May 02, 2012 2:37 pm
Hi,

I have just checked and it seems to not a problem of creating thumbnails feature. At first I saw the site not working in Chrome, I want to disable all NSP modules and the site worked. Then I enabled one NSP module named "Utvalt" with Thumbnails mode turned on and the site worked too.
User avatar
Platinum Boarder

GK User
Wed May 02, 2012 2:43 pm
Yes that is beacuse that module is assigned to a differnt menu item. If you enable the module "utvalt" then http://www.ffatest.se/shop won´t work in Chrome since that module is assinged to that page.

One module doesn´t get the whole site to break in Chrome just the page it is showned on.
User avatar
Platinum Boarder

GK User
Wed May 02, 2012 2:52 pm
This is debug result:
Code: Select all
JDatabaseMySQLi::query: 1146 - Table 'ffatest.krt_vm_product' doesn't exist SQL=SELECT content.product_id AS id, COUNT(comments.product_id) AS count    FROM krt_vm_product AS content LEFT JOIN krt_vm_product_reviews AS comments ON comments.product_id = content.product_id WHERE comments.published AND ( content.product_id = 26 OR content.product_id = 19 OR content.product_id = 16 OR content.product_id = 25 OR content.product_id = 23 OR content.product_id = 2 ) GROUP BY comments.product_id ;
Call stack
#   Function   Location
1   JSite->render()   JROOT/index.php:48
2   JDocumentHTML->render()   JROOT/includes/application.php:272
3   JDocumentHTML->_renderTemplate()   JROOT/libraries/joomla/document/html/html.php:433
4   JDocumentHTML->getBuffer()   JROOT/libraries/joomla/document/html/html.php:655
5   JDocumentRendererModules->render()   JROOT/libraries/joomla/document/html/html.php:371
6   JDocumentRendererModule->render()   JROOT/libraries/joomla/document/html/renderer/modules.php:39
7   JModuleHelper::renderModule()   JROOT/libraries/joomla/document/html/renderer/module.php:106
8   include()   JROOT/libraries/joomla/application/module/helper.php:175
9   NSP_GK4_Helper->getDatas()   JROOT/modules/mod_news_pro_gk4/mod_news_pro_gk4.php:28
10   NSP_GK4_VM_Source->getComments()   JROOT/modules/mod_news_pro_gk4/helper.php:438
11   JDatabase->loadObjectList()   JROOT/modules/mod_news_pro_gk4/gk_classes/gk.source.vm.php:385
12   JDatabaseMySQLi->query()   JROOT/libraries/joomla/database/database.php:1071
13   JError::raiseError()   JROOT/libraries/joomla/database/database/mysqli.php:396
14   JError::raise()   JROOT/libraries/joomla/error/error.php:251

So I need FTP access to check further into the code, please provide.

Thanks,
User avatar
Platinum Boarder

GK User
Wed May 02, 2012 2:55 pm
Ok I don´t understand what that mean. But can I PM you FTP access?

Becuase of a problem on my server you will only be able to download files with the FTP, if you want to upload or change files let me now and I will fix it!
User avatar
Platinum Boarder

GK User
Wed May 02, 2012 3:48 pm
I have sent a PM now with FTP access.
User avatar
Platinum Boarder

GK User
Thu May 03, 2012 12:37 pm
Is there something you need me to do?
User avatar
Platinum Boarder

GK User
Thu May 03, 2012 4:50 pm
Hi,

The account hasn't been granted permission to edit files, I tried making some changes and uploaded the file back without success. Please check to correct the permission then I can debug further, otherwise I can't help because I can't make changes and give you file to upload because I would make many changes in many times, it wouldn't be only one time change when we debug error, I think you understand, so I need to upload the file myself to fix the bug.

Thanks,
User avatar
Platinum Boarder

GK User
Thu May 03, 2012 6:13 pm
Try it now!
User avatar
Platinum Boarder

GK User
Fri May 04, 2012 4:36 pm
Hi,

I haven't changed anything but it seems to work now, really strange. Please check.
User avatar
Platinum Boarder

GK User
Fri May 04, 2012 4:53 pm
It worked now but that seems to be bacuse I clicked "sync domains" in my EHCP control panel for the server. I have to do that in order to give the FTP writing permissions. But when I do that all Joomla folders will be not writeable. So now I have made them writeable and now the problem is back again.
User avatar
Platinum Boarder

GK User
Sat May 05, 2012 4:12 pm
So, I can't debug the error anymore as I can't edit files now. Do you think that the problem is probably related to your server setting? Please check by downloading it to your localhost, backing up data, and installing it to run on localhost to see if it works.

You also should contact your admin to fix the problem with server which is causing I can't edit files.

Cheers,
User avatar
Platinum Boarder

GK User
Sat May 05, 2012 4:20 pm
Now you can edit files again! But as before the problem dissapears when I reset the permissions on the server and all Joomla folders gets not writeable. But you can edit files.

I have a VPS server so I am the admin, there is no one I can contact.

Yes the problem is clearly realted to the server, it seemes to be some code in the NSP module that doesn´t like my server. So what I need to know is what problem NSP have with my server so I can fix it?

I guess it has something to do with permissions since it works when I reset the permissions, which also means that all Joomla folders gets not writeable. So to get them writeable I have to run this command:

chown -R www-data:www-data /var/www/vhosts/ffatest.se/ffatest.se/httpdocs

And when I do that alla Joomla folders will be writeable but the site also stops working in Chrome.

The strange thing is that it is only NSP that have problems with my server and it is only in Chrome.
User avatar
Platinum Boarder

GK User
Sat May 05, 2012 4:37 pm
Or could it be a ownership problem?

I use apache2handler as apache php interface, maybe it is better to use cgi-fcgi?
User avatar
Platinum Boarder

GK User
Wed May 09, 2012 1:27 pm
Hi friend,

I said I couldn't check anymore because when you make files rewritable I can edit files but the problem disappears so I can't see problem to debug; however when you make the files unrewritable I can see problem but I can't edit files so I can't debug.

To be honest, I'm not really good at server things.. but if it's something related to writing files problem, just try adding FTP account access to your Joomla setting page to check if it helps.

http://docs.joomla.org/File:Global.Config_Server.png

Cheers,
User avatar
Platinum Boarder

GK User
Wed May 09, 2012 10:47 pm
I may have a solution in the works but if it doesn´t my fix will at least fix the FTP issue so you can debug the problem properly.

I will let you know!
User avatar
Platinum Boarder

GK User
Thu May 10, 2012 12:18 am
I don't understand what you meant but am looking forward to hearing from you for any news.

cheers,
User avatar
Platinum Boarder

GK User
Thu May 10, 2012 9:00 pm
Yes I found the solution! It was harder than I thought. Basicly it was a server problem, I had to change the server setup so I use fcgi instead of apache2handlar as PHP interface. That way I avoid ownership problems.

It should work with suphp also but I choosed fcgi.
User avatar
Platinum Boarder

GK User
Fri May 11, 2012 12:18 am
I'm very glad to know that, also thanks for sharing the experience and if you still need my help, feel free to let me know.

Cheers,
User avatar
Platinum Boarder


cron