21
kerkyra
Is xoops having problems with a large amount of blocks-sql queries?
  • 2011/7/19 14:30

  • kerkyra

  • Just can't stay away

  • Posts: 553

  • Since: 2005/2/14


Hallo there, i'm having a problem which i cannot figure out.

In www.mykerkyra.gr if i add one more block to the front page, it just shows a white screen.

I have tried to figure out what was causing the problems and I think it has to do with the number of sql queries above 110 or something like that.

If i deactivate a block (anyone) it works fine. If i activate it again and comment out the sql queries in it it works fine (with no data of course) - but it loads the block.

So right now i deactivated the comments block to make the site working again.

Any ideas on how this can be fixed? Or why this is happening?

Thanks



22
kerkyra
Re: Contact Module does only mail to admin/webmaster
  • 2011/4/6 0:18

  • kerkyra

  • Just can't stay away

  • Posts: 553

  • Since: 2005/2/14


edit index.php file

find the line

Quote:

$xoopsMailer->setToEmails($xoopsConfig['adminmail']);


change it to

Quote:

$xoopsMailer->setToEmails("new_email@something.com");
www.guidemap.gr - Beta is out...



23
kerkyra
Re: xoops.org hosting specs and statistics
  • 2011/3/16 9:41

  • kerkyra

  • Just can't stay away

  • Posts: 553

  • Since: 2005/2/14


thanks guys. I think the problem was the plesk cron jobs (i.e webalizer) running every 30 minutes or so . right now it seems to be doing well (after deactivating it) the server load seems to be around 0.5 to 1 occasionally. So perhaps that was it. I'm monitoring right now to check. Thanks for the info again. :)
www.guidemap.gr - Beta is out...



24
kerkyra
xoops.org hosting specs and statistics
  • 2011/3/15 12:27

  • kerkyra

  • Just can't stay away

  • Posts: 553

  • Since: 2005/2/14


could someone please post the server specifications of xoops.org and the montly statistics? pageviews and bandwidth usage...

I'm asking cause i have a server with a few websites from which two of them are having 140 thousand pageviews.

The server load is at 2.4 to 5 and as a result the server is getting slow.

I would like to compare, so that perhaps identify why this is happenning.

thanks



25
kerkyra
new xoopsMailer
  • 2011/3/10 16:20

  • kerkyra

  • Just can't stay away

  • Posts: 553

  • Since: 2005/2/14


hallo there

i have set my mail setup to php mail

trying to send an email when a user submits a form and i get the following error

Warning: implode() [function.implode]: Invalid arguments passed in file /class/mail/xoopsmultimailer.php line 164

any ideas guys?

the code i use to create the mail and send it is the following

Quote:


$xoopsMailer =& xoops_getMailer();
$xoopsMailer->reset();

$xoopsMailer->useMail();
$member_handler =& xoops_gethandler('member');
$xoopsMailer->setToGroups($member_handler->getGroup($xoopsConfigUser['activation_group']));
$xoopsMailer->setFromEmail($xoopsConfig['adminmail']);
$xoopsMailer->setFromName($xoopsConfig['sitename']);
$xoopsMailer->setSubject($xoopsConfig['sitename']);
$xoopsMailer->setBody('body');
$xoopsMailer->send();


the line in which the error comes up reads this (in multimailer class)

$this->Host = implode(';', $xoopsMailerConfig['smtphost']);

why is it using the smtphost since i have php mail in my setup??



26
kerkyra
Re: Good News from Mowaffaq
  • 2011/3/9 12:35

  • kerkyra

  • Just can't stay away

  • Posts: 553

  • Since: 2005/2/14


at least he and his family are ok. Too bad there are not so many lucky families down there :( . We humans act very stupidely
www.guidemap.gr - Beta is out...



27
kerkyra
Re: Banner afther post 3
  • 2011/3/4 11:47

  • kerkyra

  • Just can't stay away

  • Posts: 553

  • Since: 2005/2/14


hi mate i think you will have to alter the system_comments template instead of news_index.html using the <{}> smarty tags instead of {} as jlm69 pointed out.

have in mind that this will change the way comments are displayed EVERYWHERE in your site though.

if you dont mind that give it a go otherwise,

if you want this to happen ONLY in news section

you will have to replicate the comments html template.
Copy that in your news/templates folder perhaps?
and THEN include that file in your news_index.html file instead of the original system comments file.

[b]Notice that if you include it from the db like that
Quote:
<{include file='db:news_comments.html'}>

you will also have to alter modinfo.php file of news module and add the template you just created[b] - then update the module to add the new template in the db.

hope it helps
www.guidemap.gr - Beta is out...



28
kerkyra
Re: Knowing what language you are using...
  • 2011/3/3 4:25

  • kerkyra

  • Just can't stay away

  • Posts: 553

  • Since: 2005/2/14


@ zyspec: it happens to everybody mate :)

@redheadedrod: one more thing, in case you are using your module in a multilanguage site (with xlanguage for example) you should read the cookie to get the users selected language.
www.guidemap.gr - Beta is out...



29
kerkyra
Re: XOOPS 2.5.0 Bug Hunting
  • 2011/3/2 16:57

  • kerkyra

  • Just can't stay away

  • Posts: 553

  • Since: 2005/2/14


in admin when the default language is set to other than english the constants are shown as constant names if there is no admin language files for that particular language.

I think there should be a check whether the default language exists or not and if it doesnt use the english language files.
www.guidemap.gr - Beta is out...



30
kerkyra
Re: Knowing what language you are using...
  • 2011/3/2 16:50

  • kerkyra

  • Just can't stay away

  • Posts: 553

  • Since: 2005/2/14


you should get the language like this

global $xoopsConfig;
$xoopsConfig['language']
www.guidemap.gr - Beta is out...




TopTop
« 1 2 (3) 4 5 6 ... 40 »



Login

Username:
Password:

Lost Password? Register now!

Who's Online

56 user(s) are online (35 user(s) are browsing Support Forums)


Members: 0


Guests: 56


more...

Donat-O-Meter

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

Latest GitHub Commits