WordPress / WordPress/HelpHub

Having trouble setting up Helphub site locally

Open
#282 7 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

dev-settings
Dominant language
PHP
Stars
116
Forks
54
PR merge metrics
No merged PRs in 30d

Description

Issue Description

I am not sure if this is an "issue" or I am the only one having this trouble. As per suggestion of @zzap and @Kenshino I am putting it here.

I am following the instructions listed here under Local Install section.
I have done with steps 1-10. One confusion I have though about item no. 5, i.e. where exactly to run npm install. I ran it inside WPorg Support theme folder, not sure this is the right place to run.

When I activate the above theme, I am getting the following on-screen message.

Broken Themes
The following themes are installed but incomplete.

Name	Description		
wporg	Stylesheet is missing.

Ignoring the above I went on and run the site which resulted to an error:

Warning: require(/var/www/wp-projects/helphub/wp-content/themes/footer.php): failed to open stream: No such file or directory in /var/www/wp-projects/helphub/wp-content/themes/wporg-support/footer.php on line 12

Fatal error: require(): Failed opening required '/var/www/wp-projects/helphub/wp-content/themes/footer.php' (include_path='.:/home/subrara/.phpbrew/php/php-5.6.22/lib/php') in /var/www/wp-projects/helphub/wp-content/themes/wporg-support/footer.php on line 12

The same above this happening for header.php as well (line no. 191 in functions.php of the theme)

I changed theme to twentyseventeen and the site started running without any issue.

Expected Result:

Site should run without issue with the theme activated.

Actual Result:

Site is not running as described above.

Additional Comment:

I know this is the area to create issues and this might not be an issue at all and I am only experiencing it. If this is the case, it would be extremely helpful if I know what I am doing wrong.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the Local Install section of CONTRIBUTING.md, then inspect the WPorg Support theme setup and the reported references to footer.php and functions.php. Check how the theme resolves header.php and footer.php and where npm install is expected to run. Done means the wporg-support theme activates and the site runs without the reported missing-file errors.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.