phpbb DB Includes not found

Need some custom code changes to the phpBB core simple enough that you feel doesn't require an extension? Then post your request here so that community members can provide some assistance.

NOTE: NO OFFICIAL SUPPORT IS PROVIDED IN THIS SUB-FORUM
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

NOTE: NO OFFICIAL SUPPORT IS PROVIDED IN THIS SUB-FORUM
Post Reply
jbmorrisonjr
Registered User
Posts: 2
Joined: Wed May 16, 2018 5:05 pm

phpbb DB Includes not found

Post by jbmorrisonjr »

Hi.

I'm sure I'm doing something wrong....
I'm getting the following errors from the include for db.

Code: Select all

<b>[phpBB Debug] PHP Warning</b>: in file <b>[ROOT]/addpost.php</b> on line <b>134</b>: <b>include(./includes/db/phpbb/db/driver/mysqli.php): failed to open stream: No such file or directory</b><br />
<b>[phpBB Debug] PHP Warning</b>: in file <b>[ROOT]/addpost.php</b> on line <b>134</b>: <b>include(): Failed opening './includes/db/phpbb/db/driver/mysqli.php' for inclusion (include_path='C:/xampp/php/PEAR')</b><br />

Ignore the line numbers. Here is a snippet of code

Code: Select all


<?php
define('IN_PHPBB', true);

$dbms = 'mysql';
global $sql_db;

$phpbb_root_path = (defined('PHPBB_ROOT_PATH')) ? PHPBB_ROOT_PATH : './';
$phpEx = substr(strrchr(__FILE__, '.'), 1);

include_once($phpbb_root_path . 'common.' . $phpEx);
include_once($phpbb_root_path . 'config.' . $phpEx);
include_once($phpbb_root_path . 'includes/functions_posting.' . $phpEx);
include_once($phpbb_root_path . 'includes/db/' . $dbms . '.' . $phpEx);

// other stuff here but is not important.

?>
Ultimately what I want to do is issue a query against the topic table to get the topic_id of a specific topic so I can later reply to it via submit_post.

What am I doing wrong?

Thanks
John Morrison
User avatar
stevemaury
Support Team Member
Support Team Member
Posts: 52768
Joined: Thu Nov 02, 2006 12:21 am
Location: The U.P.
Name: Steve
Contact:

Re: phpbb DB Includes not found

Post by stevemaury »

There is no addpost.php file in phpBB.
I can stop all your spam. I can upgrade or update your Board. PM or email me. (Paid support)
User avatar
Brf
Support Team Member
Support Team Member
Posts: 53400
Joined: Tue May 10, 2005 7:47 pm
Location: {postrow.POSTER_FROM}
Contact:

Re: phpbb DB Includes not found

Post by Brf »

There is no need for that include, or the one for config.php. They are already included in common.php.
Post Reply

Return to “phpBB Custom Coding”