/    Sign up×
Community /Pin to ProfileBookmark

Database Question

Are wordpress blogs able to run as flat files? If not, can I store my blog inside the database containing my phpbb3 forums? My host only allows me to have one database.

to post a comment
PHP

7 Comments(s)

Copy linkTweet thisAlerts:
@NogDogJun 29.2008 — It looks like Wordpress prefixes each of its table names with "wp_", so if you look at the table names in your PHPBB database and none of them start with "wp_", you should be OK. Below are the table names in my WP installation:

wp_omments

wp_links

wp_options

wp_postmeta

wp_posts

wp_terms

wp_term_relationships

wp_term_taxonomy

wp_usermeta

wp_users
Copy linkTweet thisAlerts:
@bobaljauthorJun 30.2008 — Okay cool. I was able to install it on the database. I have a problem though. When I'm using my blog, I always get this error whenever trying to save, delete, publish, etc:

Warning: array_merge() [function.array-merge]: Argument #2 is not an array in /home/www/nexusoftheinternet.com/wp-includes/widgets.php on line 60

Warning: Cannot modify header information - headers already sent by (output started at /home/www/nexusoftheinternet.com/wp-includes/widgets.php:60) in /home/www/nexusoftheinternet.com/wp-includes/pluggable.php on line 694


Also, this this thing always appears at the top of every page on my blog:

Warning: array_merge() [function.array-merge]: Argument #2 is not an array in /home/www/nexusoftheinternet.com/wp-includes/widgets.php on line 60


What's the problem?
Copy linkTweet thisAlerts:
@NogDogJun 30.2008 — A little googling indicates this has been a problem due to a change in PHP5. If making sure you have the latest version of WordPress as well as any plugins/templates does not fix it, then the kludge is to edit the offending line, type-casting the parameter to an array:
[code=php]
array_merge((array)$arg1, (array)$arg2);
[/code]
Copy linkTweet thisAlerts:
@bobaljauthorJun 30.2008 — Where do I place that code?
Copy linkTweet thisAlerts:
@NogDogJun 30.2008 — As the error message states:

/home/www/nexusoftheinternet.com/wp-includes/widgets.php on line 60
[/quote]
Copy linkTweet thisAlerts:
@bobaljauthorJun 30.2008 — I did place it around line 60 but it still didn't do anything.
Copy linkTweet thisAlerts:
@NogDogJun 30.2008 — Don't insert the line I provided, that was just an example. [i]Change[/i] the line that is causing the error so that each of its arguments for the array_merge() function is cast to an array type via the [b](array)[/b] expression preceding each variable in the argument list.
×

Success!

Help @bobalj spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.6,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...