#951 Re: Developer Help » Sample Site - Fatal error » October 1, 2012 3:42pm

Everything looks like it's setup properly (assuming that the password and username are correct for MySQL).  Can you verify that there is an entry in the bigtree_modules table with the title "Features"?

#952 Re: Developer Help » Sample Site - Fatal error » September 27, 2012 2:12pm

My best guess is that the database connection is failing. Can you make sure that the connection parameters in /templates/config.php are correct?

#953 Re: Bug Reports » 500 Internal Server Error after Install on HostGator » July 19, 2012 11:19am

I believe the root issue of many of these problems was related to register_globals being on.  That PHP feature has been set to off by default since PHP 4.2 due to it being a security issue and was deprecated in PHP 5.3 and completely removed in PHP 5.4.

Setting it to off in a custom php.ini file in your /site/ directory fixed the redirect problems.  Let use know if you encounter anymore issues and we'll do our best to help.

#954 Re: Bug Reports » 500 Internal Server Error after Install on HostGator » July 18, 2012 3:30pm

I'm not really sure how to direct you -- Internal Server Errors are usually caused by htaccess files.  The mysql_query error may be caused by incorrect configuration information in your /templates/config.php (it might not be connecting to MySQL properly).

#955 Re: Bug Reports » 500 Internal Server Error after Install on HostGator » July 18, 2012 2:17pm

What version of URL routing are you using?  Shared host sites may work best with a fresh install of 4.0 beta 7 using the "Simple" routing scheme since it doesn't use .htaccess.

#956 Re: General » Searching Pages » July 5, 2012 9:47am

You can take two approaches to search in BigTree.  The first is the "search" method in the BigTreeModule class from which all module data classes are sub-classed:

http://www.bigtreecms.org/code-referenc … ule.search

You can just pass in the user's search term as the first parameter and the method will return anything in that module that contains those terms.

If you need to search Pages content instead of a module's content you'll want to use the BigTreeAdmin class's "searchPages" method.  For this method you'll want to pass in the first parameter as your user's search query and the second parameter as an array of fields to search (the default is only the navigation title).  To search the page's content, page title, and navigation title you'd want to the second parameter to be: array("nav_title","title","resources")

The other way that we commonly use is Google's Custom Search -- it leverages Google's index to provide really relevant search results and you can setup custom searches to only search a specific part of your site:
http://www.google.com/cse/

#957 General » BigTree 4.0 beta 5 backwards compatibility breaks. » June 1, 2012 11:28am

timbuckingham
Replies: 0

With the release of beta 5 we're looking forward to release candidates and a feature freeze to knock out remaining bugs. We were also looking forward and saw issues with using a lot of variables with common names in the global namespace that could easily be overwritten by required includes or templates.

The biggest backwards compatibility breaks are the following issues:

  1. $layout no longer controls what layout is loaded from /templates/layouts -- this is now set in $bigtree["layout"]

  2. $content no longer contains your template's outputted code in your layout files -- this now is set in $bigtree["content"]

  3. /site/index.php has been changed considerably and must be updated - if you are upgrading over an existing project.

  4. $config is now $bigtree["config"]. BigTree will still use your $config variable from /templates/config.php but it is no longer addressable as $config from within the BigTree environment.

The example site now advocates for the use of the defined versions of the other global variables (WWW_ROOT vs $www_root, for example). Other previously global-only variables are now available in the $bigtree global array, but continue to remain available in the global scope.

To perform a database update for beta 5's new features, please hit your admin's dashboard after replacing the /core/ folder of your beta 4 installation.
I would like to emphasize that the decision to break backwards compatibility at this point was not taken lightly and there will be no backwards compatibility breaks from the official 4.0 release until 5.0 at the earliest (which will be a year and a half out from the official 4.0 release).

#958 Re: Developer Help » Installation Quirks » May 29, 2012 11:31am

There's a good chance that following the 1and1 or GoDaddy .htaccess instructions will help with other shared hosting providers such as the one you listed. You'll want to modify the .htaccess files in your root directory and your /site/ directory the way they're described in the GoDaddy/1and1 instructions -- the internal server errors are definitely related to .htaccess.

#959 Re: Developer Help » Displaying an admin author » May 23, 2012 11:02am

There are two ways you could go about doing this.  The first way is to use the bigtree_audit_trail table to find out who created a module item by querying for the table, entry id, and the "created" type.  If you wanted to show that in a view you would add a custom view column and add a parser that looks something like:

$f = sqlfetch(sqlquery("SELECT bigtree_users.name FROM bigtree_audit_trail JOIN bigtree_users ON bigtree_audit_trail.user = bigtree_users.id WHERE entry = '".$item["id"]."' AND table = 'whatever_table' AND type = 'created'"));
$value = $f["name"];

The other way to do it would be to create a custom field type to manually save the author (and if you want to display it in the form as well, you'll need a custom field type) by setting the returned value to $admin->ID (or if you just want to store their name you could query for their name and store that).

Let me know if this doesn't make any sense or it's not a good solution and I'll do some more thinking smile

#960 Re: General » Installing on Windows / WAMP » May 18, 2012 12:33pm

This problem is currently fixed in the development branch on GitHub which you can download here:
https://github.com/bigtreecms/BigTree-C … evelopment

The issue should be fixed when beta 5 is released.  Keep in mind that the development branch may also have other issues, but we just tested it in a WAMP environment and those issues you encountered should be fixed.

#961 Re: General » Enhancing `Array of Items` field » April 27, 2012 11:54am

That's a great idea that we'll try to get into beta 4.  Ben's going to work on the UI (which I think is the biggest challenge to having different field types inside an array of items).  We'll need to limit what field types you assign to the different elements of the "Items" but we'll be sure to get date/time and all the basics in there!

We're always up for seeing what other people have done as different perspectives on the same problem are always valuable so if you want to make a branch with your changes in it that would be great.  If you want to sit back and wait for beta 4 with the feature that would be fine as well, of course smile

#962 Developer Help » Upgrading to BigTree 4.0 beta 3 from earlier betas. » April 27, 2012 11:30am

timbuckingham
Replies: 0

There has been a change in SQL structure for two tables in BigTree 4.0 beta 3.  You'll want to execute the following SQL commands on an older installation to avoid any quirks:

ALTER TABLE `bigtree_callouts` ADD COLUMN `display_default` varchar(255) NULL AFTER `description`;
ALTER TABLE `bigtree_callouts` ADD COLUMN `display_field` varchar(255) NULL AFTER `display_default`;
ALTER TABLE `bigtree_module_actions` ADD COLUMN `level` int(11) NOT NULL AFTER `class`;

#963 Re: Developer Help » Installation Quirks » April 18, 2012 2:08pm

Thanks! Those screenshots definitely helped and we'll be sure to roll out a fix for that in the next beta release!

#964 Re: Developer Help » Installation Quirks » April 18, 2012 1:58pm

Could you send us or post a screenshot of the warnings in the admin after the first failed installation?

We'll definitely address the notices problem in the installer, thanks for pointing that out!

#965 Re: Developer Help » Critical Error: Could not load class BIGTREE_CUSTOM_BASE_CLASS. » April 12, 2012 11:30am

The unstyled page sounds like there is an .htaccess error (your host isn't allowing the .htaccess directives that route the CSS and images).

The BIGTREE_CUSTOM_BASE_CLASS issue sounds like /templates/config.php has had BIGTREE_CUSTOM_BASE_CLASS changed (it should be false in most cases unless you're extending the BigTreeCMS class).

What hosting provider are you attempting to install BigTree on?

#966 Re: Bug Reports » In which the hero is forsaken by the tags. » April 6, 2012 8:03pm

This bug should be fixed in the 4.0 beta 2 release that is now available for download.

#967 Re: Developer Help » Generated Route? » April 6, 2012 8:02pm

Just to clarify, http://www.example.com/news/details/breaking-news/ would render details.php with "breaking-news" as the first element of $bigtree["commands"].

If you want more information about the route you're currently at, you can also access $bigtree["path"] that has each URL piece included.  In http://www.example.com/news/details/breaking-news/ it would include "news", "details" and "breaking-news".

If you need to know the individual routes used to find the currently drawn file, you may use $bigtree["routed_path"] which would contain only "details".

#968 Re: Developer Help » Many-to-many fields » April 5, 2012 12:23pm

To setup a many-to-many field you'll want to create a table that relates one set of content to the other.  So let's say we have a btx_news table and a btx_categories table and we want to relate a news article to multiple categories.

We'll create a btx_news_categories table to tie them together.  Let's say it looks something like:

CREATE TABLE `btx_news_categories` (
  `news` int(11) unsigned NOT NULL,
  `category` int(11) unsigned NOT NULL
);

If we wanted to allow priority / sorting to the many-to-many relationship we could also add a "position" column that is also int(11).

Once this intermediary table is setup, edit the News module's form and click the "Many To Many" button in the header of the fields table.  It should add a blank row to table with Many To Many as the type.  You'll want to throw in a Title there, in this case "Categories" would be appropriate.

Next, click the Edit icon to pull up the options for the Many To Many field.  Choose "btx_news_categories" for the "Connecting Table" and the My ID and Other ID fields should now be filled with fields from that table.  In this instance we would choose "news" as My ID (since it relates to the table the form currently relates to) and "category" for Other ID.  For "Other Table" we would choose "btx_categories".  That should now populate "Other Descriptor" and "Sort By" with fields from btx_categories.  We'd choose whatever the title field in btx_categories was for "Other Descriptor" and probably use the same field for "Sort By" so it's easy to choose categories.

After that, save the field options and the form and you should now have a selector widget in your form that lets you choose categories to relate to the news item.  It'll populate the btx_news_categories table with the news item's ID and the category's ID for you to query against on the front end of your site.


Let me know if you have any questions!

#969 Developer Help » Installation Quirks » April 2, 2012 11:50am

timbuckingham
Replies: 17

I've noticed there's a lot of installation quirks since BigTree relies heavily on .htaccess for rewrites.  A few things to keep in mind if you have issues (most specifically, a white screen after installation completes at 500 Internal Server errors when trying to access your site after):
- You must be allowed to use mod_rewrite rules in .htaccess for BigTree to work.
- You need to have magic_quotes_gpc turned off in php.ini OR be allowed to turn it off at runtime in .htaccess

If you run into the 500 Internal Server error, check out the different install guides for server setups here:
http://www.bigtreecms.org/documentation … tallation/

If your host isn't included there, post a reply here and I'll try to work through the server setup with you and put together another install guide for new users.

Board footer

Powered by FluxBB

The Discussion Forum is not available on displays of this size.