Popup Mode Option Not Displaying as Checkbox

39 views
Skip to first unread message

Blake Galbreath

unread,
Jan 20, 2016, 1:44:16 PM1/20/16
to Guide on the Side discussion
Hello,

On a previous thread, Graham clued me in on the fact that my Popup Mode option is not displaying properly. That is, the Popup Mode option is displaying, but not as a checkbox (see attached pic). Based on the readme, I have checked the following

dependencies:

php: 5.3.10
ubuntu: 12.04.2
mysql: 5.5.29
apache: 2.2.22

php modules:

gd
tidy
mbstring
json

freetype: does not show up as a separate module, but the readme notes imply that it comes along with gd. I reinstalled gd and freetype* anyway.

Can anyone suggest a fix for this? 

Thanks,
Blake
popup_mode_iss.jpg

William Simpson

unread,
Jan 27, 2016, 10:56:30 AM1/27/16
to Guide on the Side discussion
Hi Graham,

Is this a fresh installation or Guide on the Side or did you upgrade from a previous version?

Thanks,
-Will

Blake Galbreath

unread,
Jan 27, 2016, 11:15:07 AM1/27/16
to Guide on the Side discussion
Will,

This was an upgrade.

Blake

William Simpson

unread,
Jan 27, 2016, 11:30:30 AM1/27/16
to Guide on the Side discussion
Hi Blake (not Graham, sorry!),

It sounds to me like the database update weren't run.  If you have command line access to the server, I would suggest going to the apps/ folder of your Guide on the Side installation and running:

../lib/Cake/Console/cake Migrations.migration run all

Let me know how it works out!

-Will

Blake Galbreath

unread,
Jan 27, 2016, 11:51:52 AM1/27/16
to Guide on the Side discussion
No worries!

I ran the migrations before, but I just ran them again anyway.

/var/www/app$ ../lib/Cake/Console/cake Migrations.migration run all
Cake Migration Shell
---------------------------------------------------------------
Running migrations:
All migrations have completed.

/var/www/app$ ../lib/Cake/Console/cake Migrations.migration status
Cake Migration Shell
---------------------------------------------------------------
Application

Current version:
  #1424196975 1424196975_make_tutorials_and_revisions_columns_nullable
Latest version:
  #1424196975 1424196975_make_tutorials_and_revisions_columns_nullable
---------------------------------------------------------------
Migrations Plugin

Current version:
  #003 003_increase_class_name_length
Latest version:
  #003 003_increase_class_name_length
---------------------------------------------------------------
Tags Plugin

Current version:
  #003 003_occurrence_fields_for_tags
Latest version:
  #003 003_occurrence_fields_for_tags

So, not sure. I guess I will try the whole process over again at some point, but probably not in the middle of the term.

Thanks,
Blake

William Simpson

unread,
Jan 27, 2016, 5:28:15 PM1/27/16
to Guide on the Side discussion
Blake,

Two things to try:

* Delete the contents of app/tmp/cache/models/
* What happens if you log into the MySQL CLI and run "DESCRIBE tutorials" on your GotS database?

-Will

Blake Galbreath

unread,
Jan 27, 2016, 5:54:19 PM1/27/16
to Guide on the Side discussion
Deleting the contents of the /models/ dir resulted in checkbox!

DESCRIBE tutorials resulted in

mysql> DESCRIBE tutorials;
+-----------------------------+---------------+------+-----+---------+----------------+
| Field                       | Type          | Null | Key | Default | Extra          |
+-----------------------------+---------------+------+-----+---------+----------------+
| id                          | int(11)       | NO   | PRI | NULL    | auto_increment |
| user_url                    | varchar(255)  | YES  |     | NULL    |                |
| title                       | varchar(1024) | NO   |     | NULL    |                |
| url                         | varchar(1024) | YES  |     |         |                |
| content                     | text          | YES  |     | NULL    |                |
| certificate                 | tinyint(1)    | NO   |     | 1       |                |
| certificate_email           | varchar(255)  | YES  |     | NULL    |                |
| certificate_email_self      | tinyint(1)    | NO   |     | 1       |                |
| contact_name                | varchar(255)  | YES  |     | NULL    |                |
| contact_email               | varchar(255)  | YES  |     | NULL    |                |
| contact_phone               | varchar(255)  | YES  |     | NULL    |                |
| published                   | tinyint(1)    | NO   |     | 0       |                |
| created                     | datetime      | YES  |     | NULL    |                |
| modified                    | datetime      | YES  |     | NULL    |                |
| deleted                     | tinyint(1)    | NO   |     | 0       |                |
| in_index                    | tinyint(1)    | NO   |     | 1       |                |
| link_toc                    | tinyint(1)    | NO   |     | 1       |                |
| description                 | text          | YES  |     | NULL    |                |
| dot_creation_timestamp      | datetime      | YES  |     | NULL    |                |
| dot_last_revision_timestamp | datetime      | YES  |     | NULL    |                |
| licensing                   | varchar(40)   | YES  |     | NULL    |                |
| dot_source_path             | varchar(2048) | YES  |     | NULL    |                |
| tutorial_type_id            | int(11)       | NO   |     | 1       |                |
| external_identifier         | text          | YES  |     | NULL    |                |
| author                      | varchar(1024) | YES  |     | NULL    |                |
| format                      | varchar(1024) | YES  |     | NULL    |                |
| updater                     | varchar(1024) | YES  |     | NULL    |                |
| update_priority             | varchar(255)  | YES  |     | NULL    |                |
| update_notes                | text          | YES  |     | NULL    |                |
| accessible_version_url      | varchar(1024) | YES  |     | NULL    |                |
| accessible_version_format   | varchar(255)  | YES  |     | NULL    |                |
| for_credit                  | tinyint(1)    | NO   |     | 0       |                |
| url_title                   | varchar(1024) | YES  |     | NULL    |                |
| popup                       | tinyint(1)    | NO   |     | 0       |                |
| custom_feedback_link_text   | varchar(255)  | YES  |     | NULL    |                |
| show_feedback_link          | tinyint(1)    | NO   |     | 1       |                |
| show_chapter_progress       | tinyint(1)    | NO   |     | 1       |                |
+-----------------------------+---------------+------+-----+---------+----------------+
37 rows in set (0.03 sec)

Sorry - not so easy to read, but you can see that popup is = tinyint (1), NO, 0

However, when I actually try to use the functionality, the checkbox for popup mode does not stick. I check the box, save and when I come back in, it is unchecked again.

Do you have any tutorials that actually use this functionality? Would you be willing to share so that I can at least see how it is supposed to behave. Or could you make a quick test tutorial that uses this functionality?

Thanks again!
Blake

William Simpson

unread,
Jan 27, 2016, 6:22:44 PM1/27/16
to Guide on the Side discussion
Hi Blake,

No problem!  You can see pop up mode in action by visiting http://code.library.arizona.edu/gots/ and clicking on the "Google Scholar - Popup Demo" link.  The problem your having with the value not "sticking" sounds familiar, but I can't recall what the solution was.  Out of curiosity, are you using a custom theme?

-Will

Blake Galbreath

unread,
Jan 27, 2016, 6:44:22 PM1/27/16
to Guide on the Side discussion
I wasn't around when they originally set this up, but I am pretty sure that our theme is OTB. It looks the same as the Google tutorial you pointed me to anyway. I think there is a larger problem. I can't get the Page Title or Show Chapter Progress to stick either. Scanning the posts for something related...

Blake
Reply all
Reply to author
Forward
0 new messages