The vB Geek

Go Back   The vB Geek > vB Geek Products > Geek Gazette

Geek Gazette GAZ is a community newsletter management system.

Advertisement
  Learn how to remove ads

Reply
 
Thread Tools Display Modes
  #1  
Old 12-17-2008, 04:40 AM
KenDude KenDude is offline
Senior Member
 
Join Date: Nov 2006
Posts: 176
GeekMart License Holder Geek Auto-Linker Pro License Holder Geek Advertising Banner License Holder Geek Gazette License Holder 
Exclamation GAZ Settings have disappeared again!

Morgan,

Tonight I went to work up a new newsletter and once again all of the information in the Settings panel had disappeared. I tried typing something in and saving it and it would not save, although I did NOT receive the unserialize message like before. I ran the query you suggested: SELECT unserialize FROM datastore WHERE title = 'GAZ_settings'; and the value came back as ZERO. I was going to check that file to make sure the edit I made last month is still there but FTP is down at my host currently so I couldn't check it. Any idea what might be going on? Is this something you can help me troubleshoot as I'd like to get my newsletter out ASAP it was due out yesterday actually.

Thanks in advance!
Reply With Quote
  #2  
Old 12-17-2008, 04:45 AM
KenDude KenDude is offline
Senior Member
 
Join Date: Nov 2006
Posts: 176
GeekMart License Holder Geek Auto-Linker Pro License Holder Geek Advertising Banner License Holder Geek Gazette License Holder 
Exclamation GAZ Settings have disappeared again!

Morgan,

Tonight I went to work up a new newsletter and once again all of the information in the Settings panel had disappeared. I tried typing something in and saving it and it would not save, although I did NOT receive the unserialize message like before. I ran the query you suggested: SELECT unserialize FROM datastore WHERE title = 'GAZ_settings'; and the value came back as ZERO. I was going to check that file to make sure the edit I made last month is still there but FTP is down at my host currently so I couldn't check it. Any idea what might be going on? Is this something you can help me troubleshoot as I'd like to get my newsletter out ASAP it was due out yesterday actually.

I was going to work on the modules, but when trying to access the modules I can see the number of modules that should be there, but they are all blank so I didn't touch them for fear of screwing something up. I have provided you admin login access to my site before along with FTP access, if you don't still have that information handy let me know and I will email it to you.

Thanks in advance!
Reply With Quote
  #3  
Old 12-17-2008, 05:16 PM
Morgan's Avatar
Morgan Morgan is offline
Administrator
 
Join Date: Jul 2006
Posts: 2,255
Geek Article and Review System License Holder GeekMart License Holder Geek Auto-Linker Pro License Holder Geek Advertising Banner License Holder Geek Gazette License Holder 
Default

It might be that something is reserializing the GAZ datastore settings in the vB datastore table, so that when GAZ goes to unserialize the datastore, it is unserializing something that got serialized twice, so the one unserialization by GAZ produces a string and not the necessary array. I would need to see the values from this query to know for sure:
Code:
SELECT data FROM datastore WHERE title = 'GAZ_settings';
__________________
Please use the forums for support, feature requests, and similar such things. Support does not include custom code, custom template edits, or third-party modifications. PMs and emails to me should be for private information only, such as login information. If you PM or email me a support question, chances are good that I'll ignore it. Thanks.
While the work or play is on, it is a lot of fun if while you are doing one you don't constantly feel that you ought to be doing the other. -- Franklin Pierce Adams
Reply With Quote
  #4  
Old 12-17-2008, 05:25 PM
KenDude KenDude is offline
Senior Member
 
Join Date: Nov 2006
Posts: 176
GeekMart License Holder Geek Auto-Linker Pro License Holder Geek Advertising Banner License Holder Geek Gazette License Holder 
Default

Her are the results:

a:15:{s:7:"modules";N;s:4:"from";s:0:"";s:7:"perpa ge";i:0;s:5:"delay";i:0;s:6:"escape";s:0:"";s:6:"m ailer";s:0:"";s:6:"prefix";i:0;s:4:"test";i:1;s:10 :"scriptname";s:10:"newsletter";s:12:"updatexusers ";i:0;s:9:"tracktime";i:604800;s:8:"dumptest";i:0; s:8:"dumppath";s:0:"";s:8:"dumptime";i:0;s:6:"sear ch";N;}
Reply With Quote
  #5  
Old 12-17-2008, 06:11 PM
Morgan's Avatar
Morgan Morgan is offline
Administrator
 
Join Date: Jul 2006
Posts: 2,255
Geek Article and Review System License Holder GeekMart License Holder Geek Auto-Linker Pro License Holder Geek Advertising Banner License Holder Geek Gazette License Holder 
Default

That is so not right, but it's not the double serialization thing. That translates into this:
Code:
Array
(
    [modules] => 
    [from] => 
    [perpage] => 0
    [delay] => 0
    [escape] => 
    [mailer] => 
    [prefix] => 0
    [test] => 1
    [scriptname] => newsletter
    [updatexusers] => 0
    [tracktime] => 604800
    [dumptest] => 0
    [dumppath] => 
    [dumptime] => 0
    [search] => 
)
Which means that all the GAZ datastore values have been reset. This shouldn't just happen. I've been though the code and there is nothing that randomly wipes out the GAZ datastore. The file edit in this thread should not be necessary.

Something changed last time and my guess is that same something changed this time, whether it be an upgrade of something, added another modification, uninstalled/disabled another modification, some file edit, a custom module, something.

Note: This edit has been added to GAZ as of 19 January 2009.

Undo the file edit from this thread and then replace this:
Code:
		if ($this->vb->GAZ_settings != '')
		{
			if ($this->vb->GAZ_settings !== null)
			{
				$this->settings = unserialize($this->vb->GAZ_settings);
			}
			else
			{
				$this->settings =& $this->db->GAZ_settings;
			}
		}
With this:
Code:
		if (!empty($this->vb->GAZ_settings))
		{
			if (is_array($this->vb->GAZ_settings))
			{
				$this->settings =& $this->db->GAZ_settings;
			}
			else
			{
				$this->settings = unserialize($this->vb->GAZ_settings);
			}
			if (!is_array($this->settings))
			{
				$result = $this->db->query_first_slave("
					SELECT data FROM " . TABLE_PREFIX . "datastore
					WHERE title = 'GAZ_settings'
				");

				$this->vb->GAZ_settings = $result['data'];
				$this->settings = unserialize($result['data']);
				$this->db->free_result($result);
			}
		}
In the gaz_class_core.php file, and that'll hopefully prevent whatever is screwing this GAZ from messing up the GAZ datastore again.

The other thing you need to do is get your most recent database backup, and in that backup, look for the vB datastore table, and then pick off the GAZ_settings row from the backup, and then use phpMyAdmin to replace the value currently in the data field with the data value from the backup.

This can be a bit tricky because the data value is serialized and cannot have extra space or breaks where they shouldn't be located, so if you want me to do this last step for you, PM me only the relevant GAZ_settings row from the backup, not the entire backup, and also provide me with phpMyAdmin access and ACP admin level login so I can change the datastore in the database table and check via the ACP that things look okay.
__________________
Please use the forums for support, feature requests, and similar such things. Support does not include custom code, custom template edits, or third-party modifications. PMs and emails to me should be for private information only, such as login information. If you PM or email me a support question, chances are good that I'll ignore it. Thanks.
While the work or play is on, it is a lot of fun if while you are doing one you don't constantly feel that you ought to be doing the other. -- Franklin Pierce Adams
Reply With Quote
  #6  
Old 12-17-2008, 08:34 PM
KenDude KenDude is offline
Senior Member
 
Join Date: Nov 2006
Posts: 176
GeekMart License Holder Geek Auto-Linker Pro License Holder Geek Advertising Banner License Holder Geek Gazette License Holder 
Default

Morgan,

I am not currently able to access my server via FTP to effect the change in that file, nor do I know how to access my backups so I am going to forward this to my ISP who handles all of that and see if he can help fix this issue. If he needs to contact you, what is the best way?

Sincerely,
Ken
Reply With Quote
  #7  
Old 12-18-2008, 10:50 AM
KenDude KenDude is offline
Senior Member
 
Join Date: Nov 2006
Posts: 176
GeekMart License Holder Geek Auto-Linker Pro License Holder Geek Advertising Banner License Holder Geek Gazette License Holder 
Default

Morgan,

I have not been able to reach the support from my ISP so I have sent you a PM with the information needed to access my site in the hopes that you can help me. If you need anything else PLEASE let me know and I will do my best to provide it to you ASAP.

Thanks!
Reply With Quote
  #8  
Old 12-18-2008, 03:44 PM
KenDude KenDude is offline
Senior Member
 
Join Date: Nov 2006
Posts: 176
GeekMart License Holder Geek Auto-Linker Pro License Holder Geek Advertising Banner License Holder Geek Gazette License Holder 
Default

Morgan,

I was able to get access to the server and I made the changes to gaz_class_core.php that you requested. I still need help with the rest of it though!
Reply With Quote
  #9  
Old 12-19-2008, 03:49 PM
Morgan's Avatar
Morgan Morgan is offline
Administrator
 
Join Date: Jul 2006
Posts: 2,255
Geek Article and Review System License Holder GeekMart License Holder Geek Auto-Linker Pro License Holder Geek Advertising Banner License Holder Geek Gazette License Holder 
Default

Do you have the relevant GAZ_settings row from the backup?
__________________
Please use the forums for support, feature requests, and similar such things. Support does not include custom code, custom template edits, or third-party modifications. PMs and emails to me should be for private information only, such as login information. If you PM or email me a support question, chances are good that I'll ignore it. Thanks.
While the work or play is on, it is a lot of fun if while you are doing one you don't constantly feel that you ought to be doing the other. -- Franklin Pierce Adams
Reply With Quote
  #10  
Old 12-19-2008, 06:26 PM
KenDude KenDude is offline
Senior Member
 
Join Date: Nov 2006
Posts: 176
GeekMart License Holder Geek Auto-Linker Pro License Holder Geek Advertising Banner License Holder Geek Gazette License Holder 
Default

I have asked the host to provide this from backup but as of yet they haven't sent it to me or provided the information. You can try them directly at support@digitalcrowd.com if you want to see if they can provide it straight to you instead. Not only is the setting info missing, but the module info is missing as well. As I mentioned earlier if I try to manually type some things into the settings now and click save, it isn't saving those items, not sure if you want to try to troubleshoot that in the mean time or not.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
My modules disappeared. strike3forumsmh Geek Gazette 5 10-29-2009 11:01 PM
Types are disappeared stckhlm Geek Article and Review System 1 03-17-2009 07:53 PM
GAZ settings not showing up in AdminCP pixie Geek Gazette 1 06-04-2007 08:18 AM
Einstellungen / Settings stargesicht Geek Auto-Linker 5 01-04-2007 01:51 PM
disappeared from admincp truCido Geek Advertising Banner System 1 01-06-2006 08:17 AM


All times are GMT. The time now is 10:50 AM.


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.