1
magowiz
weblog 1.45 doesn't seem to work after upgrading from 1.30
  • 2009/9/13 15:45

  • magowiz

  • Just popping in

  • Posts: 18

  • Since: 2009/9/11


Hi,
I upgraded weblog module from 1.30 to 1.45 on XOOPS 2.3.3 but now weblog it doesn't seem to work , If I activate the module I get a blank page on home page and a lot of errors (I have enabled debug) :
NoticeUndefined offset6 in file /modules/weblog/blocks/weblog_recent.php line 126 NoticeUndefined offset7 in file /modules/weblog/blocks/weblog_recent.php line 127 NoticeUndefined offset8 in file /modules/weblog/blocks/weblog_recent.php line 128 Warning: include_once(/modules/10/config.php) [function.include-once]: failed to open streamNo such file or directory in file /modules/weblog/blocks/weblog_recent.php line 143 Warning: include_once() [function.include]: Failed opening '/modules/10/config.php' for inclusion (include_path='.:/php5/lib/php/'in file /modules/weblog/blocks/weblog_recent.php line 143


what should it be ?

2
magowiz
Re: weblog 1.45 doesn't seem to work after upgrading from 1.30
  • 2009/9/13 16:01

  • magowiz

  • Just popping in

  • Posts: 18

  • Since: 2009/9/11


I found a solution,
the problem was in file modules/weblog/blocks/weblog_recent.php , as the error message says on lines 126,127,128 there was an access at offset 6 , 7 and 8 in a array that wasn't big enough ( array of 5 objects) ,
so I commented out those lines
//$link_entries = $options[6];      
//$show_contents = intval($options[7]);      
//$max_size_contents = intval($options[8]);


Probably older posts haven't got this column.
I also modified line 143 from this
include_once(sprintf('%s/modules/%s/config.php'XOOPS_ROOT_PATH$mydirname ));


to this :
include_once(sprintf('%s/modules/weblog/config.php'XOOPS_ROOT_PATH$mydirname ));


because there was another error about not finding config.php file .

So I wrote a test blog post , I de-commented lines 126~128 again an then it continued working, also after I deleted the test post.

I hope this trick would be useful to someone

3
magowiz
Re: weblog 1.45 doesn't seem to work after upgrading from 1.30
  • 2009/9/17 11:09

  • magowiz

  • Just popping in

  • Posts: 18

  • Since: 2009/9/11


that problem was caused by MySQL 4 I think , since I reinstalled the original module after an upgrade to MySQL 5 and the module works.

The problem is that module config page at : modules/weblog/admin/index.php gives a blank page, I enabled debug but I don't see any error message , I can see anyway this under queries :
SET NAMES 'utf8' SELECT FROM config WHERE (conf_modid '0' AND conf_catid '1'ORDER BY conf_order ASC 
SELECT sess_data
sess_ip FROM session WHERE sess_id 'e2cabd79de3ee51883b981bbd3b1580d' 
DELETE FROM session WHERE sess_updated 1221649659 SELECT FROM users WHERE uid '1' DELETE FROM protector_access WHERE expire UNIX_TIMESTAMP() 
SELECT COUNT(*) FROM protector_access WHERE ip='93.36.122.71' AND request_uri='/modules/weblog/admin/index.php' 
SELECT COUNT(*) FROM protector_access WHERE ip='93.36.122.71' 
INSERT INTO protector_access SET ip='93.36.122.71',request_uri='/modules/weblog/admin/index.php',expire=UNIX_TIMESTAMP()+'60' 
SELECT FROM modules WHERE dirname 'weblog' SELECT FROM config WHERE (conf_modid '8'ORDER BY conf_order ASC Total11 queries


What should it be?

Login

Who's Online

236 user(s) are online (168 user(s) are browsing Support Forums)


Members: 0


Guests: 236


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